Author: stippi Date: 2009-11-20 19:08:56 +0100 (Fri, 20 Nov 2009) New Revision: 34161 Changeset: http://dev.haiku-os.org/changeset/34161/haiku Ticket: http://dev.haiku-os.org/ticket/4949 Modified: haiku/trunk/src/system/libroot/posix/pthread/pthread.c Log: bonefish+stippi: PThreads didn't have their array for the TLS values initialized. From what we can tell, this would have been a problem for any program using pthreads, but since all threads are pthreads now, it was much more likely to be encountered. Like in Beam as reported in #4949 (which via libbind seems to use some pthread stuff). Modified: haiku/trunk/src/system/libroot/posix/pthread/pthread.c =================================================================== --- haiku/trunk/src/system/libroot/posix/pthread/pthread.c 2009-11-20 18:05:48 UTC (rev 34160) +++ haiku/trunk/src/system/libroot/posix/pthread/pthread.c 2009-11-20 18:08:56 UTC (rev 34161) @@ -86,6 +86,8 @@ thread->cleanup_handlers = NULL; thread->flags = 0; + memset(thread->specific, 0, sizeof(thread->specific)); + return thread; }