From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 14 16:20:21 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0F7516A49E for ; Thu, 14 Sep 2006 16:20:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1396643D46 for ; Thu, 14 Sep 2006 16:20:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8EGKK7Z047476 for ; Thu, 14 Sep 2006 16:20:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8EGKKpf047469; Thu, 14 Sep 2006 16:20:20 GMT (envelope-from gnats) Resent-Date: Thu, 14 Sep 2006 16:20:20 GMT Resent-Message-Id: <200609141620.k8EGKKpf047469@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan Esser Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CE7C16A494 for ; Thu, 14 Sep 2006 16:11:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5027A43D79 for ; Thu, 14 Sep 2006 16:11:21 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8EGBHtJ065064 for ; Thu, 14 Sep 2006 16:11:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k8EGBHEq065062; Thu, 14 Sep 2006 16:11:17 GMT (envelope-from nobody) Message-Id: <200609141611.k8EGBHEq065062@www.freebsd.org> Date: Thu, 14 Sep 2006 16:11:17 GMT From: Stefan Esser To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/103271: crash inside dlclose() on shared library unload X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 16:20:21 -0000 >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: