Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 2006 16:11:17 GMT
From:      Stefan Esser <sesser@hardened-php.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/103271: crash inside dlclose() on shared library unload
Message-ID:  <200609141611.k8EGBHEq065062@www.freebsd.org>
Resent-Message-ID: <200609141620.k8EGKKpf047469@freefall.freebsd.org>

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

>Number:         103271
>Category:       misc
>Synopsis:       crash inside dlclose() on shared library unload
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 14 16:20:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Esser
>Release:        FreeBSD 5.5/6.1 x86/amd64
>Organization:
Hardened-PHP Project
>Environment:
>Description:
There seems to be a problem in dlclose()
When the shared library from security/php-suhosin is loaded AFTER pspell.so from lang/php5-extensions apache won't start because it will dlclose() suhosin.so and crash inside _fini of suhosin.

This only happens when suhosin.so is loaded AFTER pspell.so. This only happens on FreeBSD (not on linux) and it seems that only pspell.so is affected. Because of this I suspect that this combination triggers a bug inside the dynamic linker.


>How-To-Repeat:
Install lang/php5
Install lang/php5-extension  (only pspell extension)
Install security/php-suhosin
>Fix:
Load suhosin.so before pspell.so inside /usr/local/etc/php/extensions.ini
>Release-Note:
>Audit-Trail:
>Unformatted:



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