Subject: bin/61: ld core dumps
To: None <gnats-admin>
From: None <jimj@miller.cs.uwm.edu>
List: netbsd-bugs
Date: 01/07/1994 21:50:10
>Number: 61
>Category: bin
>Synopsis: ld core dumps
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 7 21:50:07 1994
>Originator: James Jegers
>Organization:
>Release: current
>Environment:
System: NetBSD na1.cs.uwm.edu 0.9a JIMJ#1 i386
>Description:
Running ld (or cc) on an executable, causes ld to core dump.
>How-To-Repeat:
-> cat > foo.c
main()
{}
-> cc foo.c
-> ld a.out
Bus error (core dumped)
-> gdb /usr/obj/gnu/usr.bin/ld/ld
Reading symbol data from /usr/obj/gnu/usr.bin/ld/ld...done.
(gdb) run a.out
Starting program: /usr/obj/gnu/usr.bin/ld/ld a.out
Program received signal 10, Bus error
Reading in symbols for /usr/src/gnu/usr.bin/ld/ld.c...done.
0x3f45 in enter_file_symbols (entry=(struct file_entry *) 0x15000) (/usr/src/gnu/usr.bin/ld/ld.c line 1163)
1163 } else if (p->n_un.n_strx &&
(gdb) bt
#0 0x3f45 in enter_file_symbols (entry=(struct file_entry *) 0x15000) (/usr/src/gnu/usr.bin/ld/ld.c line 1163)
#1 0x8373 in read_shared_object (...)
#2 0x3d15 in read_file_symbols (entry=(struct file_entry *) 0x15000) (/usr/src/gnu/usr.bin/ld/ld.c line 1082)
#3 0x3b66 in load_symbols () (/usr/src/gnu/usr.bin/ld/ld.c line 1044)
#4 0x194f in main (argc=2, argv=(char **) 0xf7bfdbc0) (/usr/src/gnu/usr.bin/ld/ld.c line 274)
(gdb) quit
>Fix:
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------