On Sun, Mar 08, 2020 at 07:32:47PM +0100, Guido Aulisi wrote:
> Hi,
> I'm trying to debug a build failure of package lilv on ppc64le and arm
> platforms, x86 builds fine.
>
> [0] is the status of lilv package on Koschei
>
> The build core dumps while executing tests, in particular lilv_test,
> which uses sord library.
>
> Dmesg output:
>
> [292790.757364] lilv_test[603241]: segfault (11) at 8 nip 7fffaaaf59b0 lr
> 7fffaaaf59b8 code 1 in libsord-0.so.0.16.4[7fffaaaf0000+10000]
> [292790.757375] lilv_test[603241]: code: 2e2a0000 3b800000 3b600000 60420000
> 419200b0 83be0000 7bba26e4 7efed214
> [292790.757378] lilv_test[603241]: code: 83370010 eb170008 7b291f24 7d384a14
> <e8690008> 4bffc52d e8410018 a1180000
>
> Debugging is difficult because it must be done in the chroot of a ppc64le
> machine and no gdb is available.
Another way to debug these is to add this line:
export LD_PRELOAD=%{_libdir}/libSegFault.so
at the beginning of your %check section. It will preload the glibc
libSegFault library which usually manages to dump a stack trace
whenever a program crashes. For example:
$ cat test.c
char main[] = { 0 };
$ gcc test.c
$ LD_PRELOAD=/lib64/libSegFault.so ./a.out
produces the attached output. (Hopefully the ‘Backtrace’ section
being a little bit more informative for your programs!)
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
*** Segmentation fault
Register dump:
RAX: 000000000040401d RBX: 0000000000000000 RCX: 00007f89370b6578
RDX: 00007ffce572b818 RSI: 00007ffce572b808 RDI: 0000000000000001
RBP: 0000000000401110 R8 : 0000000000000000 R9 : 00007f8937110f30
R10: 0000000000000008 R11: 0000000000000012 R12: 0000000000401020
R13: 00007ffce572b800 R14: 0000000000000000 R15: 0000000000000000
RSP: 00007ffce572b728
RIP: 000000000040401d EFLAGS: 00010246
CS: 0033 FS: 0000 GS: 0000
Trap: 0000000e Error: 00000015 OldMask: 00000000 CR2: 0040401d
FPUCW: 0000037f FPUSW: 00000000 TAG: 00000000
RIP: 00000000 RDP: 00000000
ST(0) 0000 0000000000000000 ST(1) 0000 0000000000000000
ST(2) 0000 0000000000000000 ST(3) 0000 0000000000000000
ST(4) 0000 0000000000000000 ST(5) 0000 0000000000000000
ST(6) 0000 0000000000000000 ST(7) 0000 0000000000000000
mxcsr: 1f80
XMM0: 00000000000000000000000000000000 XMM1: 00000000000000000000000000000000
XMM2: 00000000000000000000000000000000 XMM3: 00000000000000000000000000000000
XMM4: 00000000000000000000000000000000 XMM5: 00000000000000000000000000000000
XMM6: 00000000000000000000000000000000 XMM7: 00000000000000000000000000000000
XMM8: 00000000000000000000000000000000 XMM9: 00000000000000000000000000000000
XMM10: 00000000000000000000000000000000 XMM11: 00000000000000000000000000000000
XMM12: 00000000000000000000000000000000 XMM13: 00000000000000000000000000000000
XMM14: 00000000000000000000000000000000 XMM15: 00000000000000000000000000000000
Backtrace:
./a.out[0x40401d]
Memory map:
00400000-00401000 r--p 00000000 fd:01 1443549
/var/tmp/a.out
00401000-00402000 r-xp 00001000 fd:01 1443549
/var/tmp/a.out
00402000-00403000 r--p 00002000 fd:01 1443549
/var/tmp/a.out
00403000-00404000 r--p 00002000 fd:01 1443549
/var/tmp/a.out
00404000-00405000 rw-p 00003000 fd:01 1443549
/var/tmp/a.out
01df1000-01e12000 rw-p 00000000 00:00 0 [heap]
7f8936ed6000-7f8936ed9000 r--p 00000000 fd:01 25723268
/usr/lib64/libgcc_s-10-20200126.so.1
7f8936ed9000-7f8936eeb000 r-xp 00003000 fd:01 25723268
/usr/lib64/libgcc_s-10-20200126.so.1
7f8936eeb000-7f8936eef000 r--p 00015000 fd:01 25723268
/usr/lib64/libgcc_s-10-20200126.so.1
7f8936eef000-7f8936ef0000 r--p 00018000 fd:01 25723268
/usr/lib64/libgcc_s-10-20200126.so.1
7f8936ef0000-7f8936ef1000 rw-p 00019000 fd:01 25723268
/usr/lib64/libgcc_s-10-20200126.so.1
7f8936ef1000-7f8936ef4000 rw-p 00000000 00:00 0
7f8936ef4000-7f8936f19000 r--p 00000000 fd:01 25171150
/usr/lib64/libc-2.30.so
7f8936f19000-7f8937068000 r-xp 00025000 fd:01 25171150
/usr/lib64/libc-2.30.so
7f8937068000-7f89370b2000 r--p 00174000 fd:01 25171150
/usr/lib64/libc-2.30.so
7f89370b2000-7f89370b3000 ---p 001be000 fd:01 25171150
/usr/lib64/libc-2.30.so
7f89370b3000-7f89370b6000 r--p 001be000 fd:01 25171150
/usr/lib64/libc-2.30.so
7f89370b6000-7f89370b9000 rw-p 001c1000 fd:01 25171150
/usr/lib64/libc-2.30.so
7f89370b9000-7f89370bd000 rw-p 00000000 00:00 0
7f89370f7000-7f89370f8000 r--p 00000000 fd:01 25166796
/usr/lib64/libSegFault.so
7f89370f8000-7f89370fb000 r-xp 00001000 fd:01 25166796
/usr/lib64/libSegFault.so
7f89370fb000-7f89370fc000 r--p 00004000 fd:01 25166796
/usr/lib64/libSegFault.so
7f89370fc000-7f89370fd000 r--p 00004000 fd:01 25166796
/usr/lib64/libSegFault.so
7f89370fd000-7f8937100000 rw-p 00000000 00:00 0
7f8937100000-7f8937102000 r--p 00000000 fd:01 25171057
/usr/lib64/ld-2.30.so
7f8937102000-7f8937122000 r-xp 00002000 fd:01 25171057
/usr/lib64/ld-2.30.so
7f8937122000-7f893712a000 r--p 00022000 fd:01 25171057
/usr/lib64/ld-2.30.so
7f893712b000-7f893712c000 r--p 0002a000 fd:01 25171057
/usr/lib64/ld-2.30.so
7f893712c000-7f893712d000 rw-p 0002b000 fd:01 25171057
/usr/lib64/ld-2.30.so
7f893712d000-7f893712e000 rw-p 00000000 00:00 0
7ffce570b000-7ffce572d000 rw-p 00000000 00:00 0 [stack]
7ffce578a000-7ffce578d000 r--p 00000000 00:00 0 [vvar]
7ffce578d000-7ffce578e000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]