Subject: Re: Unlocking an unlocked mutex
To: Vincent <10.50@free.fr>
From: Rui Paulo <rpaulo@fnop.net>
List: tech-kern
Date: 10/12/2005 22:08:54
--F8dlzb82+Fcn6AgP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2005.10.12 22:12:16 +0200, Vincent wrote:
| Hi,
|=20
| I am more or less trying to evaluate a new version of the vlc player=20
| (0.8.2). It works fine, except that it generates a lot of errors of this=
=20
| type:
|=20
| wxvlc: Error detected by libpthread: Unlocking unlocked mutex.
| Detected by file "pthread_mutex.c", line 345, function=20
| "pthread_mutex_unlock". See pthread(3) for information.
|=20
| I was wondering if unlocking an (already) unlocked mutex *really*=20
| deserves an error, or if it could just be turned into a non-fatal=20
| warning or whatever. Obviously, this is not as critical as trying to=20
| unlock another thread's mutex.

Unlocking an unlocked mutex is, obviously, not correct :-) The point
of that message is to detect mutex problems.
You can ignore it by setting the environmental variable
PTHREAD_DIAGASSERT to 'A'. See pthread(3) for more info.

		-- Rui Paulo

--F8dlzb82+Fcn6AgP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iD8DBQFDTXtmZPqyxs9FH4QRAhbtAJ9Xg7XD5S55SVowUxsYdNcBxmyhXACgh8Pk
Kviwwq5yhDX1PrllRW3UE7o=
=Vgee
-----END PGP SIGNATURE-----

--F8dlzb82+Fcn6AgP--