This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

eu-strip segfaults on archives


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]