This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix bug in x86-64 pthread_cond_wait
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Luca Barbieri <luca dot barbieri at gmail dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Sun, 02 Sep 2007 09:54:06 -0700
- Subject: Re: [PATCH] Fix bug in x86-64 pthread_cond_wait
- References: <1188724799.13436.10.camel@localhost>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Luca Barbieri wrote:
> This bug should not affect applications that always manipulate the
> condvar under an external mutex, but applications that sometimes access
> the condvar without a mutex may deadlock.
>
> Please confirm the bug and apply the patch below.
The patch is correct but your description is not. No correct program
can ever hit that code. The mutex unlocking has to fail and this is not
possible unless the programmer makes a bad mistake.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFG2uqu2ijCOnn/RHQRAphLAKCDxKxi20JMd9pj2jCAJIivMJxzxQCfYOWE
Ym1hFgGVAjaWzAwG5jreA+c=
=969X
-----END PGP SIGNATURE-----