Subject: Re: Error in pthread_mutex_unlock when Apache2 authenticates against an LDAP backend
To: Jean-Luc Wasmer <jl+netbsd@lists.wasmer.ca>
From: Martin Husemann <martin@duskware.de>
List: current-users
Date: 09/21/2005 18:50:16
On Wed, Sep 21, 2005 at 12:10:09PM -0400, Jean-Luc Wasmer wrote:
> Program received signal SIGABRT, Aborted.
> [Switching to LWP 1]
> 0xbd86071b in kill () from /usr/lib/libc.so.12
> (gdb) backtrace
> #0  0xbd86071b in kill () from /usr/lib/libc.so.12
> #1  0xbd91c009 in pthread__errorfunc () from /usr/lib/libpthread.so.0
> #2  0xbd919047 in pthread_mutex_unlock () from /usr/lib/libpthread.so.0
> #3  0xbd965e6f in apr_thread_mutex_unlock () from /usr/pkg/lib/libapr-0.so.0
> #4  0xbd964eb5 in apr_global_mutex_unlock () from /usr/pkg/lib/libapr-0.so.0
> #5  0x0806c656 in util_ldap_cache_checkuserid ()
> #6  0x0806f27a in mod_auth_ldap_check_user_id ()
> #7  0x080e1e8c in ap_run_check_user_id ()

Maybe you should forward this to the developers of this ldap module and tell
them that unlocking mutexes that have not been locked before (or have been
unlocked already) is invoking undefined behaviour, according to POSIX.

Martin