misc/103271: crash inside dlclose() on shared library unload

Stefan Esser sesser at hardened-php.net
Thu Sep 14 09:20:21 PDT 2006


>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:


More information about the freebsd-bugs mailing list