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 -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
