Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 1999 09:37:14 -0800 (PST)
From:      deraison@cybercable.fr
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   misc/10009: dlopen will crash when opening some stripped shared libs
Message-ID:  <199902101737.JAA24892@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         10009
>Category:       misc
>Synopsis:       dlopen will crash when opening some stripped shared libs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 10 09:40:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Renaud Deraison
>Release:        3.0-RELEASE
>Organization:
>Environment:
FreeBSD prof.nain.org 3.0-RELEASE FreeBSD 3.0-RELEASE #0: Sat Oct 17 17:45:06 GMT 1998     jkh@kickme.freebsd.org:/usr/src/sys/compile/GENERIC  i386
>Description:
The dlopen() function will crash when opening stripped 
shared libraries which are linked against some other
shared librairies.
Linking shared libs against shared libs is a useful
way to make modules for an application.

gdb output :
#0  0x400048d0 in reloc_plt ()
(gdb) bt
#0  0x400048d0 in reloc_plt ()
#1  0x4000306b in find_symdef ()
#2  0x4000339d in dlopen ()

And the program dies with a signal 10 received.

>How-To-Repeat:
This is non-trivial. The easiest way is to download nessus-990201
(see http://www.nessus.org/download/unix.html for the locations)
to compile it, to install it, and to run the nessus daemon (nessusd)
which will happily crash when loading _some_ of those shared libs
(this is apparently random).
>Fix:
Do not use stripped out shared libraries with dlopen().
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902101737.JAA24892>