readme 1.18 KB
Newer Older
zhanggen committed
1 2
please download the latest version of objcopy and the crash input file.
COMMAND LINE: ./objcopy crash\ input a.elf
zhanggen committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Then you will see the segmentation fault.

The stack trace is as follows from gdb:

#0  aout_32_swap_std_reloc_out (abfd=abfd@entry=0x7482f0, g=0x74a730, natptr=natptr@entry=0x748658)
    at aoutx.h:1971
#1  0x000000000048980f in aout_32_squirt_out_relocs (abfd=abfd@entry=0x7482f0, section=<optimized out>)
    at aoutx.h:2444
#2  0x00000000004840a1 in i386linux_write_object_contents (abfd=0x7482f0) at i386linux.c:77
#3  0x000000000043066a in bfd_close (abfd=0x7482f0) at opncls.c:731
#4  0x000000000040bd36 in copy_file (
    input_filename=input_filename@entry=0x7fffffffe284 "./crashes/id:000024,sig:11,src:002665,op:flip1,pos:52", output_filename=output_filename@entry=0x7fffffffe2ba "a.elf",
    input_target=input_target@entry=0x0, output_target=<optimized out>, output_target@entry=0x0,
    input_arch=input_arch@entry=0x0) at objcopy.c:3530
#5  0x0000000000404924 in copy_main (argv=<optimized out>, argc=<optimized out>) at objcopy.c:5478
#6  main (argc=3, argv=0x7fffffffdef8) at objcopy.c:5582

So the crash happens in aoutx.h, a header file in Binary File Descriptor library.