Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 81418 invoked from network); 28 Oct 2009 20:29:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Oct 2009 20:29:10 -0000 Received: (qmail 47181 invoked by uid 500); 28 Oct 2009 20:29:10 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 47089 invoked by uid 500); 28 Oct 2009 20:29:10 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 47079 invoked by uid 99); 28 Oct 2009 20:29:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 20:29:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [188.40.99.202] (HELO eru.sfritsch.de) (188.40.99.202) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 20:29:01 +0000 Received: from [10.1.1.6] (helo=k.localnet) by eruneu.sfritsch.de with esmtp (Exim 4.69) (envelope-from ) id 1N3F8L-0006va-2J; Wed, 28 Oct 2009 21:28:41 +0100 From: Stefan Fritsch To: Viktor Griph Subject: Re: DBD mysql driver segfault on cleanup when used together with legacy modules in apache using mysql Date: Wed, 28 Oct 2009 21:28:39 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.30-1-686; KDE/4.3.2; i686; ; ) Cc: dev@apr.apache.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200910282128.39883.sf@sfritsch.de> X-Virus-Checked: Checked by ClamAV on apache.org On Wednesday 28 October 2009, Viktor Griph wrote: > There is a possiblility that the mysql library has been unloaded by > the DSO loader before the cleanup function that tries to call > mysql_thread_end() is called, casusing a segmentation fault. In my > particular usecase I've been trying to use a module using a dbd > backend for mysql together with the module mod_auth_mysql. The > mysql library is dynamically linked when the mod_auth_mysql is > loaded, and is unlikned before the cleanup in mod_dbd_mysql is > called, leaving a call to an unloaded library. Not very likely in this case, but it may make sense to check it: You do use libmysqlclient_r.so for both mod_dbd_mysql and mod_auth_mysql? If you use libmysqlclient_r.so for one and libmysqlclient.so for the other, you will get strange segfaults.