[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/3609] New: `objcopy --only-keep-debug` segfaults in curren
From: |
vapier at gentoo dot org |
Subject: |
[Bug binutils/3609] New: `objcopy --only-keep-debug` segfaults in current cvs |
Date: |
29 Nov 2006 01:23:24 -0000 |
noticed after upgrading to 2.17.50.0.7 (the 2.17.50.0.6 and older work fine):
$ mkdir build
$ cd build
$ CFLAGS='-pipe -O0 -g' ../configure
$ make all-binutils
$ ./binutils/objcopy --only-keep-debug ./binutils/objcopy ./binutils/objcopy.out
Segmentation fault
$ gdb --args ./binutils/objcopy --only-keep-debug ./binutils/objcopy
./binutils/objcopy.out
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /usr/local/src/gnu/sourceware/build/binutils/objcopy
--only-keep-debug ./binutils/objcopy ./binutils/objcopy.out
Program received signal SIGSEGV, Segmentation fault.
0x0000000000462f5f in rewrite_elf_program_header (ibfd=0x60fbd0, obfd=0x610d40)
at ../../bfd/elf.c:5433
5433 if (first_section->output_section != NULL)
(gdb) bt
#0 0x0000000000462f5f in rewrite_elf_program_header (ibfd=0x60fbd0,
obfd=0x610d40) at ../../bfd/elf.c:5433
#1 0x0000000000464cad in copy_private_bfd_data (ibfd=0x60fbd0, obfd=0x610d40)
at ../../bfd/elf.c:5952
#2 0x000000000046508e in _bfd_elf_copy_private_header_data (ibfd=0x60fbd0,
obfd=0x610d40)
at ../../bfd/elf.c:6069
#3 0x000000000040579d in setup_bfd_headers (ibfd=0x60fbd0, obfd=0x610d40) at
../../binutils/objcopy.c:2130
#4 0x00000000004040f6 in copy_object (ibfd=0x60fbd0, obfd=0x610d40) at
../../binutils/objcopy.c:1389
#5 0x000000000040551a in copy_file (input_filename=0x7a0570f68042
"./binutils/objcopy",
output_filename=0x7a0570f68055 "./binutils/objcopy.out", input_target=0x0,
output_target=0x4de188 "elf64-x86-64") at ../../binutils/objcopy.c:2019
#6 0x0000000000407d16 in copy_main (argc=4, argv=0x7a0570f67cd8) at
../../binutils/objcopy.c:3348
#7 0x0000000000407fef in main (argc=4, argv=0x7a0570f67cd8) at
../../binutils/objcopy.c:3438
(gdb)
--
Summary: `objcopy --only-keep-debug` segfaults in current cvs
Product: binutils
Version: 2.18 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: vapier at gentoo dot org
CC: bug-binutils at gnu dot org
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=3609
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/3609] New: `objcopy --only-keep-debug` segfaults in current cvs,
vapier at gentoo dot org <=