[LEDE-DEV] [PATCH 2/2] strace: add option for enabling stack trace support
Yousong Zhou
yszhou4tech at gmail.com
Mon Jun 13 20:13:42 PDT 2016
On 10 June 2016 at 21:43, Yousong Zhou <yszhou4tech at gmail.com> wrote:
> On 10 June 2016 at 20:52, Sergey Zakharchenko <doublef.mobile at gmail.com> wrote:
>> Hello Yousong,
>>
>> The libunwind-enabled strace builds fine but I'm getting a "Can't
>> initiate libunwind: Invalid argument" error when trying to use it
>> (this is on an Atheros, i.e. MIPS chip). This is just a report, I'm
>> not urging you to anything...
>>
>
> Yeah, the stack trace dump feature seems really fragile. I noticed
> that once on qemu/malta, then did "make clean" and rebuilt, the
> 'invalid argument' error disappeared later and along with it the -k
> option does not have said effect at all. But it works partly on
> qemu/x86_64 though at the moment the traces cannot go past libc.
>
> yousong
I tried yesterday building a x86_64 firmware with glibc and strace -k
works quite well there. However the situation of the glibc-mips
combination is the same as with musl-mips.
My current guess is that libunwind may need some patching to work with
musl-libc.
Regards,
yousong
More information about the Lede-dev
mailing list