Subject: Re: Error in pthread_mutex_unlock when Apache2 authenticates against an LDAP backend
To: Jean-Luc Wasmer <jl+netbsd@lists.wasmer.ca>
From: Quentin Garnier <cube@cubidou.net>
List: current-users
Date: 09/21/2005 18:07:17
--cCEKa9UdY3MtHM1R
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Sep 21, 2005 at 11:48:14AM -0400, Jean-Luc Wasmer wrote:
> Adrian Portelli wrote:
>=20
> >Jean-Luc Wasmer wrote:
> >
> >>I get the username/password prompt, then nothing.
> >>Here's the error log:
> >>
> >>httpd: Error detected by libpthread: Unlocking unlocked mutex.
> >>Detected by file "/usr/src/lib/libpthread/pthread_mutex.c", line 345,=
=20
> >>function "pthread_mutex_unlock".
> >>See pthread(3) for information.
> >>[Wed Sep 21 10:56:35 2005] [notice] child pid 28571 exit signal Abort=
=20
> >>trap (6)
> >>
> >>
> >>I'm running:
> >>NetBSD 3.99.8
> >>Apache/2.0.54 (apache-2.0.54nb5)
> >>ap2-auth-ldap-3.3
> >>OpenLDAP 2.2.27 (openldap-2.2.27nb1)=20
> >
> >
> >FWIW:
> >
> >apache-2.0.54nb5
> >openldap-2.2.20nb2
> >ap2-auth-ldap-3.3
> >
> >is solid for me on 2.0.2.
>=20
> so I guess it's a pthread issue in current.
There are two issues at stake here.
1. The builtin Apache LDAP authentication module is broken. I have the
same issue you have when using it, thus I have put:
export PTHREAD_DIAGASSERT=3DAEL
in ${LOCALBASE}/sbin/envvars, to have apache not exit when getting
pthreads-related assertions.
2. You're not using the LDAP authentication module you apparently
intend to use. To actually use ap2-auth-ldap, the directives are
different, and are not the ones described in Apache 2.0
documentation.
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
--cCEKa9UdY3MtHM1R
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQzGFNdgoQloHrPnoAQIsRQgAm8UXcQLRegm9OMslwlP8M/1onrFP//VY
BoPi894jXpKaN4D7O4KyfdDh+f4BvW/3TVPanJux5WJfnx+EVSDbufVMf3yQeXHS
JoRoEmMw8u6qE70ZF+4Qg+sQLo5fdgayPM5DHJqqhmBS3TsHMogJbBHwdhw8hTM7
LbSTa08WgfJg8dri/OjROExrpNgo7GcoceROjSR5+18rvAhteoQ9/V1//eBsmIr6
QGfN3pW7qajMgnnG3+/1LPIgeQcIIsM5NCiZlFoq+Zen6dCGoFZh6o3mKmXRz8fO
C9OZrRhF1mgCydHiNdvN9o0ofHhYOIU/2Tq3nDslnXSqmRdmXgR5tw==
=e9Pb
-----END PGP SIGNATURE-----
--cCEKa9UdY3MtHM1R--