Bug with pthread_getspecific() and signals

Archie Cobbs archie at dellroad.org
Sun Apr 17 18:45:05 PDT 2005


David Xu wrote:
>> On FreeBSD 4.9 I'm seeing a bug where pthread_getspecific() sometimes
>> returns the wrong value when invoked from within a signal handler.
> 
> Does POSIX say that pthread_getspecific can be used in signal handler ?

Not sure.. where do I check for that?

In any case, pthread_self() is also returning the wrong value
(presumably for the same reason).

Unfortunately I haven't come up with a small test case yet.

Could it be related to this bug?

http://lists.freebsd.org/pipermail/freebsd-threads/2004-October/002618.html

I ran the test program (on 4.9) and it seemed to work properly.. ?

Thanks,
-Archie

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


More information about the freebsd-threads mailing list