[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 (the 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
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,
    at ../../bfd/elf.c:6069
#3  0x000000000040579d in setup_bfd_headers (ibfd=0x60fbd0, obfd=0x610d40) at
#4  0x00000000004040f6 in copy_object (ibfd=0x60fbd0, obfd=0x610d40) at
#5  0x000000000040551a in copy_file (input_filename=0x7a0570f68042
    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
#7  0x0000000000407fef in main (argc=4, argv=0x7a0570f67cd8) at

           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


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]