Subject: bin/6140: ldd gets signal 11 error if it can't find a library
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 09/11/1998 00:39:49
>Number:         6140
>Category:       bin
>Synopsis:       ldd gets signal 11 error if it can't find a library
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 10 22:50:01 1998
>Last-Modified:
>Originator:     Dave Huang
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 22 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD-current as of September 10, 1998
>Environment:
	
System: NetBSD dahan.metonymy.com 1.3H NetBSD 1.3H (SPIFF) #249: Wed Sep 9 16:25:32 CDT 1998 khym@dahan.metonymy.com:/usr/src.local/sys/arch/i386/compile/SPIFF i386


>Description:
	If an executable depends on a shared library that isn't
installed, running ldd on it will just print "signal 11" and exit.
>How-To-Repeat:
	a.out depends on libstdc++.so.0.1. I only have libstdc++.so.2.0.
% ldd a.out
a.out:
a.out: signal 11
>Fix:
	I don't know, but it has something to do with the call to
alloc_link_map at line 453 of rtld.c. dp is null, but it tries to look
at dp->d_version (line 594).
>Audit-Trail:
>Unformatted: