[PATCH 1/2] unwind: accept fake files like [vdso] as map entries

Dmitry V. Levin ldv at altlinux.org
Thu Jun 12 22:15:28 UTC 2014

On Thu, Jun 12, 2014 at 03:44:53AM +0900, Masatake YAMATO wrote:
> For making caches for process memory mapping, /proc/$pid/maps files
> are scanned. When scanning an entry which file name is started from
> `[' was ignore as fake files. As the result a system call using
> [vdso] causes `unexpected_backtracing_error'.
> This patch accepts the fake files as cache entries if they have
> both readable and executable attributes. ([stack] and [heap] does
> not have such attributes.)

Shouldn't we just accept all mappings that have X bit set,
and filter out all the rest?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140613/02c988eb/attachment.bin>

More information about the Strace-devel mailing list