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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 14 16:20:20 GMT 2006
>Originator:     Stefan Esser
>Release:        FreeBSD 5.5/6.1 x86/amd64
Hardened-PHP Project
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.

Install lang/php5
Install lang/php5-extension  (only pspell extension)
Install security/php-suhosin
Load suhosin.so before pspell.so inside /usr/local/etc/php/extensions.ini

More information about the freebsd-bugs mailing list