[PATCH 0/9] using libdw as an alternative unwinder

Dmitry V. Levin ldv at altlinux.org
Tue Mar 13 17:46:15 UTC 2018


On Wed, Mar 14, 2018 at 02:28:05AM +0900, Masatake YAMATO wrote:
> This patch set make strace utilize libdw of elfutils as an alternative
> unwinder. This is mostly based on
> 
> https://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=dfefa9f057857735a073ea655f5cb34351032c8e
> 
> written by Mark Wielaard <mjw at redhat.com>.
> 
> If both unwinders(libunwind and libdw) are linked to strace, you can
> choose one with -klibunwind or -klibdw option.
> 
> Example output:
> 
>     [yamato at master]~/var/strace% ./strace  -e open -klibunwind ls > /dev/null
>     open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
>      > /usr/lib64/libc-2.26.so(_nl_load_locale_from_archive+0x433) [0x2e333]
>      > /usr/lib64/libc-2.26.so(_nl_find_locale+0xf4) [0x2cef4]
>      > /usr/lib64/libc-2.26.so(setlocale+0x1ee) [0x2c6de]
[...]
>     [yamato at master]~/var/strace% ./strace  -e open -klibdw ls > /dev/null
>     open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
>      > /usr/lib64/libc-2.26.so(_nl_load_locale_from_archive+0x433) [0x2e333]
>      > /usr/lib64/libc-2.26.so(_nl_find_locale+0xf3) [0x2cef3]
>      > /usr/lib64/libc-2.26.so(setlocale+0x1ed) [0x2c6dd]

I wonder where does this off-by-one difference come from?
They cannot be both correct at the same time, can they?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20180313/40ffee35/attachment.bin>


More information about the Strace-devel mailing list