This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix bug in x86-64 pthread_cond_wait


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]