apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject Re: DBD mysql driver segfault on cleanup when used together with legacy modules in apache using mysql
Date Wed, 28 Oct 2009 20:28:39 GMT
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.

View raw message