threads/150889: PTHREAD_MUTEX_INITIALIZER + pthread_mutex_destroy() == EINVAL

Alexander Kabaev kabaev at gmail.com
Thu Sep 23 23:10:17 UTC 2010


On Thu, 23 Sep 2010 22:20:03 GMT
Jung-uk Kim <jkim at FreeBSD.org> wrote:

> The following reply was made to PR threads/150889; it has been noted
> by GNATS.
> 
> From: Jung-uk Kim <jkim at FreeBSD.org>
> To: bug-followup at FreeBSD.org,
>  cgf at netapp.com
> Cc:  
> Subject: Re: threads/150889: PTHREAD_MUTEX_INITIALIZER +
> pthread_mutex_destroy() == EINVAL Date: Thu, 23 Sep 2010 18:12:02
> -0400
> 
>  I was horribly bitten by the incompatibility when I ported IcedTea6 
>  Java plugin for Linux.  Please see my comments in the patch:
>  
>  http://www.freebsd.org/cgi/cvsweb.cgi/ports/java/openjdk6/files/icedtea.patch?rev=1.2;content-type=text%2Fplain
>  

"
The pthread_cond_timedwait() and pthread_cond_wait() functions shall
block on a condition variable. They shall be called with mutex locked
by the calling thread or undefined behavior results.
"

NPTL is being non-compliant here.
-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20100923/0ef8c8cb/signature.pgp


More information about the freebsd-threads mailing list