Subject: bin/5824: ldd quits with signal 11 if lib is not found
To: None <gnats-bugs@gnats.netbsd.org>
From: Mario Kemper <magick@bundy.lip.owl.de>
List: netbsd-bugs
Date: 07/23/1998 20:43:52
>Number: 5824
>Category: bin
>Synopsis: ldd quits with signal 11 if lib is not found
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 23 11:50:00 1998
>Last-Modified:
>Originator: Mario Kemper
>Organization:
Mario Kemper
magick@bundy.lip.owl.de
>Release: NetBSD-current from 19.07.98
>Environment:
System: NetBSD bundy 1.3F NetBSD 1.3F (BUNDY) #2: Sun Jul 19 21:18:32 CEST 1998 magick@bundy:/usr/src/sys/arch/i386/compile/BUNDY i386
>Description:
if ldd can't find a shared library for a given file, it exits with a signal 11
which is not very helpful.
Actually it seems to be a problem in ld.so as ldd only sets a few LD_
variables. (maybe category lib would be more appropriate?).
Example: /usr/local/bin/faxalter was linked against libjepeg.so.7.0 wich i
deleted, as the package was updatet to libjpeg.so.0.62..
magick@bundy:/usr/local/bin>faxalter
/usr/libexec/ld.so: faxalter: libjpeg.so.7.0: No such file or directory
magick@bundy:/usr/local/bin>ldd faxalter
faxalter:
faxalter: signal 11
magick@bundy:/usr/local/bin>setenv LD_TRACE_LOADED_OBJECTS 1
magick@bundy:/usr/local/bin>faxalter
Segmentation fault
setenv
>How-To-Repeat:
delete a lib which somebin is linked against
ldd somebin
>Fix:
Print out what is missing if thats possible. (Solaris prints an lib not found)
>Audit-Trail:
>Unformatted: