Subject: port-sparc/14989: "ld.elf_so" broken on sparc
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 12/18/2001 12:01:15
>Number: 14989
>Category: port-sparc
>Synopsis: "ld.elf_so" broken on sparc
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-sparc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 18 03:02:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5Z 2001-12-17 sources
>Organization:
Matthias Scheler http://scheler.de/~matthias/
>Environment:
System: NetBSD douglas.zhadum.de 1.5Z NetBSD 1.5Z (DOUGLAS) #0: Mon Dec 17 23:35:37 CET 2001 tron@lyssa.zhadum.de:/src/sys/compile/DOUGLAS sparc
Architecture: sparc
Machine: sparc
>Description:
After installin a new "ld.elf_so" on my SPARCStation LX all dynamically
linked binaries start crashing with a segmentation fault. Here is the
output of "ktrace":
# ktrace /usr/X11R6/bin/resize
zsh: segmentation fault (core dumped) ktrace /usr/X11R6/bin/resize
# kdump
39 ktrace EMUL "netbsd"
39 ktrace RET ktrace 0
39 ktrace CALL execve(0xeffffc33,0xeffffbb8,0xeffffbc0)
39 ktrace NAMI "/usr/X11R6/bin/resize"
39 ktrace NAMI "/usr/libexec/ld.elf_so"
39 resize EMUL "netbsd"
39 resize RET execve JUSTRETURN
39 resize PSIG SIGSEGV SIG_DFL
39 resize NAMI "resize.core"
>How-To-Repeat:
cd src/libexec/ld.elf_so
make dependall
cp -p /usr/libexec/ld.elf_so /usr/libexec/ld.elf_so.works
make install (*)
cp -p /usr/libexec/ld.elf_so.works /usr/libexec/ld.elf_so
(*) You'll see this at this point:
tron@douglas:/usr/src/libexec/ld.elf_so#make install
STRIP=/src/tools/bin/sparc--netbsdelf-strip /src/tools/bin/nbinstall -c -r -o root -g wheel -m 555 ld.elf_so /usr/libexec/ld.elf_so
Segmentation fault
STRIP=/src/tools/bin/sparc--netbsdelf-strip /src/tools/bin/nbinstall -c -r -o root -g wheel -m 444 ld.elf_so.1 /usr/share/man/man1/ld.elf_so.1
Segmentation fault
*** Error code 139
Stop.
>Fix:
None provided.
>Release-Note:
>Audit-Trail:
>Unformatted: