Bug with pthread_getspecific() and signals

Archie Cobbs archie at dellroad.org
Mon Apr 18 13:05:55 PDT 2005


Daniel Eischen wrote:
>>E.g., I need to know:
>>
>>- In what versions of FreeBSD will "-pthread" result in a non-broken
>>   (with respect to this bug) thread library?
> 
> Probably when -pthread was switched to libpthread from libc_r.
> Search the CVS commit log for sys/sys/param.h (r1.178).
> 
>>- Of the earlier versions of FreeBSD, in which ones is there a viable
>>   workaround and what is it (e.g., "-lpthread" instead of "-pthread"?)
> 
> Probably not until 5.3-Release where libpthread became the default.

So perhaps the simplest thing to do is look for libpthread and always
link "-lpthread"; otherwise, if libpthread is not found, bail out.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com


More information about the freebsd-threads mailing list