Date: Sun, 17 Apr 2005 20:37:31 -0500 From: Archie Cobbs <archie@dellroad.org> To: David Xu <davidxu@freebsd.org> Cc: freebsd-threads@freebsd.org Subject: Re: Bug with pthread_getspecific() and signals Message-ID: <42630F5B.9040306@dellroad.org> In-Reply-To: <4263095F.3040102@freebsd.org> References: <425FD527.1000102@dellroad.org> <4263095F.3040102@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42630F5B.9040306>