apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Viktor Griph <vik...@griph.se>
Subject Re: DBD mysql driver segfault on cleanup when used together with legacy modules in apache using mysql
Date Wed, 28 Oct 2009 21:13:57 GMT
2009/10/28 Stefan Fritsch <sf@sfritsch.de>:
> 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.
>
>

Actually that was the case. Gentoo links mod_auth_mysql to
libmysqlclient, and apr-util with libmysqlclient_r. Manually
rebuilding  mod_auth_mysql linked to libmysqlclient_r solves the
problem. Thanks. I'll file a bug to Gentoo.

/Viktor

Mime
View raw message