https://sourceware.org/bugzilla/show_bug.cgi?id=34097
Bug ID: 34097
Summary: eu-strip on i586: Program received signal SIGSEGV,
Segmentation fault.
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tools
Assignee: unassigned at sourceware dot org
Reporter: vt at altlinux dot org
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
Created attachment 16696
--> https://sourceware.org/bugzilla/attachment.cgi?id=16696&action=edit
gzipped file that crashed eu-strip
After starting to compile Linux with gcc15 eu-strip crashes on i586 (there was
not such effect with gcc14).
builder@i586:~/tmp/kernel-image-6.18-buildroot$ eu-strip --strip-all
--reloc-debug-sections --keep-section=.BTF --remove-comment -f
./usr/lib/debug/lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko.debug
./lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko
Segmentation fault (core dumped)
builder@i586:~/tmp/kernel-image-6.18-buildroot$ gdb -q --args eu-strip
--strip-all --reloc-debug-sections --keep-section=.BTF --remove-comment -f
./usr/lib/debug/lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko.debug
./lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko
Reading symbols from eu-strip...
Reading symbols from /usr/lib/debug/usr/bin/eu-strip.debug...
(gdb) r
Starting program: /usr/bin/eu-strip --strip-all --reloc-debug-sections
--keep-section=.BTF --remove-comment -f
./usr/lib/debug/lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko.debug
./lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
gelf_getsymshndx (symdata=0x565db73c, shndxdata=0x0, ndx=0, dst=0xffffb65c,
dstshndx=0xffffb634) at ../../libelf/gelf_getsymshndx.c:100
100 COPY (st_name);
(gdb) bt
#0 gelf_getsymshndx (symdata=0x565db73c, shndxdata=0x0, ndx=0, dst=0xffffb65c,
dstshndx=0xffffb634) at ../../libelf/gelf_getsymshndx.c:100
#1 0x5656997d in remove_debug_relocations (ebl=0x565a8d30, elf=0x565aa760,
ehdr=0xffffd09c, fname=0xffffd563
"./lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko",
shstrndx=47) at ../../src/strip.c:690
#2 0x5657c248 in handle_elf.constprop.0 (fd=<optimized out>, fd@entry=3,
elf=elf@entry=0x565a7450, fname=fname@entry=0xffffd563
"./lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko",
mode=<optimized out>, tvp=<optimized out>, prefix=0x0)
at ../../src/strip.c:2460
#3 0x5655fc4f in process_file (fname=0xffffd563
"./lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_torturetest.ko")
at ../../src/strip.c:799
#4 0x5655b94b in main (argc=8, argv=0xffffd324) at ../../src/strip.c:269
(gdb) p src
$1 = (Elf32_Sym *) 0x0
(gdb) list
95
96 /* This might look like a simple copy operation but it's
97 not. There are zero- and sign-extensions going on. */
98 #define COPY(name) \
99 dst->name = src->name
100 COPY (st_name);
101 /* Please note that we can simply copy the `st_info' element
since
102 the definitions of ELFxx_ST_BIND and ELFxx_ST_TYPE are the
same
103 for the 64 bit variant. */
104 COPY (st_info);
(gdb) p *symdata
$2 = {d_buf = 0x0, d_type = ELF_T_SYM, d_version = 1, d_size = 1904, d_off = 0,
d_align = 4}
eu-strip (elfutils) 0.191
--
You are receiving this mail because:
You are on the CC list for the bug.