This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug linuxthreads/373] New: pthread_key_delete does not NULL key values prior to pthread_create
- From: "bugzilla at merlin dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Sep 2004 21:09:24 -0000
- Subject: [Bug linuxthreads/373] New: pthread_key_delete does not NULL key values prior to pthread_create
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
Normally pthread_key_create should return a new key with NULL values.
LinuxThreads relies on pthread_key_delete to NULL the key value in order to
achieve this. However it does not do this in an application prior to
pthread_create being called, so if an app does: pthread_key_create() ...
pthread_setspecific(non-null) ... pthread_key_delete() ... pthread_key_create()
then the new key will have the old non-null value.
I'm not familiar enough with POSIX to know if this behaviour is acceptable, but
it is annoying in an app where threads are sometimes not created for some time.
Linux 2.4.25/i386/glibc 2.3.2/LinuxThreads-0.10
--
Summary: pthread_key_delete does not NULL key values prior to
pthread_create
Product: glibc
Version: 2.3.2
Status: NEW
Severity: normal
Priority: P2
Component: linuxthreads
AssignedTo: gotom at debian dot or dot jp
ReportedBy: bugzilla at merlin dot org
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=373
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.