* libSegFault.so crashing on Daisy
@ 2016-09-02 19:36 Daniel.
2016-09-04 22:18 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Daniel. @ 2016-09-02 19:36 UTC (permalink / raw)
To: yocto@yoctoproject.org
Hi everybody,
I was trying to use libSegFault.so to capture stacktraces but the
libSegFault it self is crashing? Can someone try to reproduce this?
1) Install libc6-dbg. This will give you access to libSegFault.so at
/lib/.debug/libSegFault.so
2) Set LD_PRELOAD: export LD_PRELOAD=/lib/.debug/libSegFault.so
3) Running any executable results in a crash for me :/
root@localhost:/media/card2# export LD_PRELOAD=/lib/.debug/libSegFault.so
root@localhost:/media/card2# ls
Segmentation fault (core dumped)
root@localhost:/media/card2#
The core dump gives-me this backtrace:
#0 _dl_relocate_object (scope=0x76fc2898, reloc_mode=1,
consider_profiling=consider_profiling@entry=0) at dl-reloc.c:238
#1 0x76fa1428 in dl_main (phdr=<optimized out>, phnum=<optimized
out>, user_entry=<optimized out>, auxv=<optimized out>) at rtld.c:2204
#2 0x76fb4418 in _dl_sysdep_start
(start_argptr=start_argptr@entry=0x7eb39cf0, dl_main=0x0) at
../elf/dl-sysdep.c:249
#3 0x76fa2cc0 in _dl_start_final (arg=0x7eb39cf0, arg@entry=0x0,
info=0x7eb39a70, info@entry=0x7eb39a68) at rtld.c:332
#4 0x76fa2f50 in _dl_start (arg=0x0) at rtld.c:560
#5 0x76f9ed50 in _start () from /lib/ld-linux-armhf.so.3
#6 0x76f9ed50 in _start () from /lib/ld-linux-armhf.so.3
I'm on ARMv7, i.MX6q
Regards,
--
"Do or do not. There is no try"
Yoda Master
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libSegFault.so crashing on Daisy
2016-09-02 19:36 libSegFault.so crashing on Daisy Daniel.
@ 2016-09-04 22:18 ` Richard Purdie
2016-09-05 2:17 ` Daniel.
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2016-09-04 22:18 UTC (permalink / raw)
To: Daniel., yocto@yoctoproject.org
On Fri, 2016-09-02 at 16:36 -0300, Daniel. wrote:
> Hi everybody,
>
> I was trying to use libSegFault.so to capture stacktraces but the
> libSegFault it self is crashing? Can someone try to reproduce this?
>
> 1) Install libc6-dbg. This will give you access to libSegFault.so at
> /lib/.debug/libSegFault.so
> 2) Set LD_PRELOAD: export LD_PRELOAD=/lib/.debug/libSegFault.so
> 3) Running any executable results in a crash for me :/
I suspect you want a /lib/libSegFault.so rather than the file in a
.debug directory since the .debug version is just the debug symbols.
Try the libsegfault package itself?
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libSegFault.so crashing on Daisy
2016-09-04 22:18 ` Richard Purdie
@ 2016-09-05 2:17 ` Daniel.
0 siblings, 0 replies; 3+ messages in thread
From: Daniel. @ 2016-09-05 2:17 UTC (permalink / raw)
To: Richard Purdie; +Cc: yocto@yoctoproject.org
Ohhh you may be right, I'll try it
Thanks Richard!
2016-09-04 19:18 GMT-03:00 Richard Purdie <richard.purdie@linuxfoundation.org>:
> On Fri, 2016-09-02 at 16:36 -0300, Daniel. wrote:
>> Hi everybody,
>>
>> I was trying to use libSegFault.so to capture stacktraces but the
>> libSegFault it self is crashing? Can someone try to reproduce this?
>>
>> 1) Install libc6-dbg. This will give you access to libSegFault.so at
>> /lib/.debug/libSegFault.so
>> 2) Set LD_PRELOAD: export LD_PRELOAD=/lib/.debug/libSegFault.so
>> 3) Running any executable results in a crash for me :/
>
> I suspect you want a /lib/libSegFault.so rather than the file in a
> .debug directory since the .debug version is just the debug symbols.
> Try the libsegfault package itself?
>
> Cheers,
>
> Richard
--
"Do or do not. There is no try"
Yoda Master
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-05 2:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-02 19:36 libSegFault.so crashing on Daisy Daniel.
2016-09-04 22:18 ` Richard Purdie
2016-09-05 2:17 ` Daniel.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.