[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: NPTL: pthread_condtimedwait hang or mutex_lock hang



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Srikrishnan Sundararajan wrote:
>  The following program is a simpler illustration of the problem posted
> by me earlier.  It fails and succeeds in the same environments as the
> first program.

The reason for the lockup is that the cleanup handlers pthread_cond_wait
and the cleanup handler your code register are not executed in the
correct order.  And this happens because you are using the LinuxThreads
headers.  If you'd use the NPTL headers everything would work fine.

Since we unfortunately cannot pull the plug on the LT headers yet Jakub
came up with a patch which should handle this case.  The current CVS has
it, as will future releases and updates.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/qc732ijCOnn/RHQRAicvAKC6X8Dyk0p17/7xSR0EFgcgSrZZ+wCgzW2W
y8K0mr4MGcjOcJu0rIW+YMw=
=Bwg0
-----END PGP SIGNATURE-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]