Subject: new httpd and mod_auth_ldap pthread probleb
To: NetBSD Current <current-users@netbsd.org>
From: Dick Davies <rasputnik@hellooperator.net>
List: tech-pkg
Date: 09/22/2004 10:28:09
Bumped apache to 2.0.51 today, and am now seeing :

rasputin@lb:rasputin$ tail -f /var/log/httpd/error.log
httpd: Error detected by libpthread: Unlocking unlocked mutex.
Detected by file "/usr/src/lib/libpthread/pthread_mutex.c", line 345, function "pthread_mutex_unlock".
See pthread(3) for information.
[Wed Sep 22 10:14:52 2004] [notice] child pid 16950 exit signal Abort trap (6)
[Wed Sep 22 10:14:52 2004] [notice] child pid 14759 exit signal Abort trap (6)
[Wed Sep 22 10:17:00 2004] [debug] util_ldap.c(1430): INIT global mutex /var/run/ldapcache.shm.lck in child 2608
httpd: Error detected by libpthread: Unlocking unlocked mutex.
Detected by file "/usr/src/lib/libpthread/pthread_mutex.c", line 345, function "pthread_mutex_unlock".
See pthread(3) for information.
[Wed Sep 22 10:20:11 2004] [notice] child pid 27932 exit signal Abort trap (6)
 a[Wed Sep 22 10:21:16 2004] [debug] util_ldap.c(1430): INIT global mutex /var/run/ldapcache.shm.lck in child 19166
httpd: Error detected by libpthread: Unlocking unlocked mutex.
Detected by file "/usr/src/lib/libpthread/pthread_mutex.c", line 345, function "pthread_mutex_unlock".
See pthread(3) for information.
httpd: Error detected by libpthread: Unlocking unlocked mutex.
Detected by file "/usr/src/lib/libpthread/pthread_mutex.c", line 345, function "pthread_mutex_unlock".
See pthread(3) for information.
[Wed Sep 22 10:21:25 2004] [notice] child pid 2608 exit signal Abort trap (6)
[Wed Sep 22 10:21:25 2004] [debug] util_ldap.c(1430): INIT global mutex /var/run/ldapcache.shm.lck in child 28411
[Wed Sep 22 10:21:25 2004] [notice] child pid 7023 exit signal Abort trap (6)

When I try to access any mod_auth_ldap protected resource.  The child doesn't stay up long enough to log to 
the vhosts own log,  and it's not getting anywhere near opening a connection to LDAP either...

rasputin@lb:rasputin$ uname -a
NetBSD lb 2.0F NetBSD 2.0F (LITTLEBIRD) #0: Sun Jun 27 20:48:32 BST 2004  rasputin@lb:/usr/obj/usr/src/sys/arch/i386/compile/LITTLEBIRD i386
rasputin@lb:rasputin$ 

rasputin@lb:rasputin$ pkg_info|egrep '(openldap|apache-2)'
openldap-2.2.13     Lightweight directory access protocol server and client package
apache-2.0.51       Apache HTTP (Web) server, version 2

 anyone seen this before? I don't think it's LDAP specific, for some reason this just happens to trigger the pthread bug...
-- 
Barth's Distinction:
	There are two types of people: those who divide people into two
types, and those who don't.
Rasputin :: Jack of All Trades - Master of Nuns