eu-strip segfaults on archives

Mike Frysinger vapier at gentoo.org
Fri Nov 4 22:57:47 UTC 2011


seems like eu-strip segfaults on any archive given it.  a simple example, run
strip on the libar.a in the src/ subdir.  current master with glibc-2.14 + gcc-4.6:

$ LD_LIBRARY_PATH=../libelf/ gdb --args ./strip libar.a 
Reading symbols from /usr/local/src/elfutils/src/strip...done.
(gdb) r
Starting program: /usr/local/src/elfutils/src/strip libar.a

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bcc7b3 in elf_end (elf=0x60f520) at elf_end.c:119
119               while (child->next != elf)
(gdb) bt
#0  0x00007ffff7bcc7b3 in elf_end (elf=0x60f520) at elf_end.c:119
#1  0x0000000000403273 in handle_elf (fd=0x7, elf=<optimized out>, prefix=<optimized out>, mode=0x0, tvp=0x0) at strip.c:2036
#2  0x00000000004067d2 in handle_ar (fd=0x7, elf=0x60e050, prefix=<optimized out>, fname=0x7fffffffd68c "libar.a", tvp=0x0) at strip.c:2111
#3  0x0000000000406b7d in process_file (fname=0x7fffffffd68c "libar.a") at strip.c:380
#4  0x000000000040233b in main (argc=0x2, argv=0x7fffffffd308) at strip.c:208
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : https://fedorahosted.org/pipermail/elfutils-devel/attachments/20111104/96320849/attachment.bin 


More information about the elfutils-devel mailing list