Bug 16574

Summary: missing aout shared libs -> panic
Product: Base System Reporter: root <root>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   

Description root 2000-02-08 00:10:00 UTC
The System panics when an aout bin with missing shared libs is executed.
Sorry, no further logs.

How-To-Repeat: 
execute or `ldd` the described binary.
The panic occurs within seconds.
Comment 1 iedowse freebsd_committer freebsd_triage 2001-08-12 22:18:36 UTC
State Changed
From-To: open->feedback


Does this still occur in more recent releases?
Comment 2 matt 2001-11-08 01:48:08 UTC
I'm running 4.3-RELEASE-p15.  I grabbed the Zeus FreeBSD-aout search cgi
(http://support.zeus.com/security/search/search.cgi.FreeBSD-aout.gz) and
tried to run it on my ELF-only system (no compat22 or aout libs installed.)

Doing a 'ldd' on it and trying to run it gave:
gabby# ldd search.cgi.FreeBSD-aout
search.cgi.FreeBSD-aout:
Couldn't open /usr/libexec/ld.so.
search.cgi.FreeBSD-aout: exit status 1
gabby# ./search.cgi.FreeBSD-aout
Couldn't open /usr/libexec/ld.so.
gabby#

After installing compat22 to get a.out compatibility:

gabby# ldd search.cgi.FreeBSD-aout
search.cgi.FreeBSD-aout:
        -lc.3 => /usr/lib/compat/aout/libc.so.3.1 (0x2002f000)
gabby# ./search.cgi.FreeBSD-aout
Content-Type: text/html

<html>
<head><title>Error</title></head>
<body bgcolor=#ffffff>
<font size=+5>Error:</font><br>Method not supported</body></html>
gabby#

And, then after removing /usr/lib/compat/aout/libc.so.3.1 (to force a
"missing library" condition):

gabby# ldd search.cgi.FreeBSD-aout
search.cgi.FreeBSD-aout:
        -lc.3 => not found (0x0)
gabby# ./search.cgi.FreeBSD-aout
ld.so failed: Can't find shared library "libc.so.3.1"
gabby#

So to me, it looks like missing aout libraries are handled gracefully now.

--
Matt Emmerton
Comment 3 Boris Staeblow 2001-11-08 09:55:52 UTC
On Wed, Nov 07, 2001 at 08:48:08PM -0500, Matthew Emmerton wrote:

> So to me, it looks like missing aout libraries are handled gracefully now.

I agree. This PR can be closed.

B.Staeblow
root@dva.in-berlin.de
Comment 4 bill fumerola freebsd_committer freebsd_triage 2001-11-08 10:32:05 UTC
State Changed
From-To: feedback->closed

submitter reports that this problem has been fixed in 
recent release.