[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: current CVS libpthread makes trivial programs linked to it hang
From: |
Samuel Thibault |
Subject: |
Re: current CVS libpthread makes trivial programs linked to it hang |
Date: |
Sat, 27 Sep 2008 00:55:31 +0200 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Hello,
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.
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).
Samuel