https://sourceware.org/bugzilla/show_bug.cgi?id=19629

            Bug ID: 19629
           Summary: crash in ld.bfd - possible null pointer dereference
           Product: binutils
           Version: 2.26
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: alaa.mubaied at gmail dot com
  Target Milestone: ---

Created attachment 8983
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8983&action=edit
crasher1

I'd like to report a crash in ld.bfd. (crasher1 attached)

bash-4.2$ gdb /opt/binutils/bin/ld.bfd
Reading symbols from /opt/binutils/bin/ld.bfd...done.
(gdb) r crasher1
Starting program: /opt/binutils/bin/ld.bfd crasher1

Program received signal SIGSEGV, Segmentation fault.
bfd_hash_lookup (table=0xc77630, string=string@entry=0x1492390 <Address
0x1492390 out of bounds>, create=create@entry=1, copy=0) at hash.c:467
467       hash = bfd_hash_hash (string, &len);
Missing separate debuginfos, use: debuginfo-install
glibc-2.17-55.el7_0.5.x86_64
(gdb) bt
#0  bfd_hash_lookup (table=0xc77630, string=string@entry=0x1492390 <Address
0x1492390 out of bounds>, create=create@entry=1, copy=0) at hash.c:467
#1  0x000000000055ac76 in bfd_link_hash_lookup (follow=0, copy=<optimized out>,
create=1, string=0x1492390 <Address 0x1492390 out of bounds>, 
    table=<optimized out>) at linker.c:507
#2  bfd_wrapped_link_hash_lookup (abfd=abfd@entry=0xc86cc0,
info=info@entry=0xc5da60 <link_info>, string=<optimized out>, 
    string@entry=0x1492390 <Address 0x1492390 out of bounds>,
create=create@entry=1, copy=copy@entry=0, follow=follow@entry=0) at
linker.c:602
#3  0x0000000000564f02 in _bfd_generic_link_add_one_symbol
(info=info@entry=0xc5da60 <link_info>, abfd=abfd@entry=0xc86cc0,
name=name@entry=0xc89096 "", 
    flags=flags@entry=8194, section=section@entry=0xc52a08
<_bfd_std_section+840>, value=24, string=string@entry=0x1492390 <Address
0x1492390 out of bounds>, 
    copy=0, collect=0, hashp=hashp@entry=0xc86fe8) at linker.c:1457
#4  0x000000000075bfcc in linux_add_one_symbol (info=info@entry=0xc5da60
<link_info>, abfd=abfd@entry=0xc86cc0, name=<optimized out>,
name@entry=0xc89096 "", 
    flags=8194, section=0xc52a08 <_bfd_std_section+840>, value=<optimized out>,
string=0x1492390 <Address 0x1492390 out of bounds>, copy=copy@entry=0, 
    collect=collect@entry=0, hashp=hashp@entry=0xc86fe8) at i386linux.c:357
#5  0x000000000075ea0b in aout_link_add_symbols (abfd=abfd@entry=0xc86cc0,
info=info@entry=0xc5da60 <link_info>) at aoutx.h:3132
#6  0x000000000077644f in aout_link_add_object_symbols (info=0xc5da60
<link_info>, abfd=0xc86cc0) at aoutx.h:3196
#7  aout_32_link_add_symbols (abfd=0xc86cc0, info=0xc5da60 <link_info>) at
aoutx.h:3457
#8  0x00000000004564ef in load_symbols (entry=0xc5f270, place=<optimized out>)
at ldlang.c:2867
#9  0x0000000000462337 in open_input_bfds (s=0xc5f270,
mode=mode@entry=OPEN_BFD_NORMAL) at ldlang.c:3325
#10 0x0000000000470da8 in lang_process () at ldlang.c:6726
#11 0x0000000000409141 in main (argc=2, argv=0x7fffffffe5e8) at ./ldmain.c:414

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to