[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: current CVS libpthread makes trivial programs linked to it hang
From: |
Neal H. Walfield |
Subject: |
Re: current CVS libpthread makes trivial programs linked to it hang |
Date: |
Sat, 27 Sep 2008 09:15:25 +0200 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/22.2 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Sat, 27 Sep 2008 00:55:31 +0200,
Samuel Thibault wrote:
> There seems to be at least two issues:
>
> if (_pthread_self ())
>
> doesn't actually make sense since _pthread_self() already asserts(self),
> so the assertion will be triggered inside it.
This is true for the Hurd on Mach implementation of _pthread_self,
however, this is not the case for the Viengoos implementation.
> in the case of a normal mutex, now libpthread checks the owner when
> NDEBUG is not defined. The problem is that libc uses mutexes that have
> to be compatible with cthread mutexes, so we shouldn't use the owner
> field at all (since libc won't have allocated it).
You're right, I forgot about that.
I'll have to rethink this bit.
Neal