Subject: bin/11785: ld.so and ld.elf_so crash when called directly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mkb@mukappabeta.de>
List: netbsd-bugs
Date: 12/19/2000 19:36:14
>Number:         11785
>Category:       bin
>Synopsis:       ld.so and ld.elf_so crash when called directly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 19 19:36:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Buelow
>Release:        1.5
>Organization:

>Environment:
System: NetBSD altair.mayn.de 1.5 NetBSD 1.5 (ALTAIR) #0: Mon Dec 4 18:48:50 CET 2000 root@altair.mayn.de:/usr/src/sys/arch/i386/compile/ALTAIR i386

>Description:

When /usr/libexec/ld.so (or ld.elf_so) is invoked with a file argument,
it simply will crash with memory fault (ld.so) or an abort (the latter),
in both cases a very unclean exit which generally involves writing a
corefile.
In the light of promoting clean executables which will never crash
but gracefully exit with an error message, however they are invoked or
what data they are being fed, the dynamic linker should be made to exit
cleanly aswell.

>How-To-Repeat:

$ /usr/libexec/ld.so
Memory fault (core dumped) 
$ /usr/libexec/ld.elf_so
assertion "pAUX_base != NULL
" failed: file "rtld.c", line 376
Abort (core dumped) 

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: