Skip to content
Tcl Source Code Artifact [f0d4afb446]
Login

Artifact [f0d4afb446]

Artifact f0d4afb4463fbd9a477f76830b2bd8b03115946e:

Ticket change [f0d4afb446] - Ticket [770053ffffffffff|770053ffff] <i>Tcl_CreateThread breaks notifier thread refcount</i> status still Closed with 4 other changes by tallniel on 2004-07-12 22:34:42.
D 2004-07-12T22:34:42
J icomment Logged\sIn:\sYES\s\nuser_id=102050\n\nThis\sbug\sfix\smay\shave\sbroken\sthe\sTk\sbuild\son\sMac\sOS\sX.\sWish\shangs\son\s\nstartup,\sand\sgdb\sseems\sto\sshow\sdeadlock.\sThe\sfollowing\ssummary\sfrom\s\nJim\sIngham:\n\n-----\nThe\sproblem\sis\sthat\sthe\sfix\sto\sTcl\sbug\s770053\scauses\sTclInitNotifier\sto\sget\s\ncalled\srecursively\swhich\sstalls.\s\sThe\sshort\sterm\sfix\sis\sto\scomment\sout\sthe\s\ncall\sto\sTclInitNotifier\sin\stcl/generic/tclEvent.c.\s\sThe\score-8-4\spatch\sis:\n\nIndex:\stclEvent.c\n==============================================\n=====================\nRCS\sfile:\s/cvsroot/tcl/tcl/generic/tclEvent.c,v\nretrieving\srevision\s1.28.2.4\ndiff\s-p\s-p\s-r1.28.2.4\stclEvent.c\n***\stclEvent.c\s\s22\sJun\s2004\s11:55:35\s-0000\s\s\s\s\s\s1.28.2.4\n---\stclEvent.c\s\s11\sJul\s2004\s19:44:18\s-0000\n***************\sNewThreadProc(ClientData\sclientData)\n***\s1192,1198\s****\n\s\s\s\s\s\sthreadClientData\s=\scdPtr->clientData;\n\s\s\s\s\s\sTcl_Free((char*)clientData);\s/*\sAllocated\sin\sTcl_CreateThread()\s*/\n\n!\s\s\s\s\sTclInitNotifier();\n\n\s\s\s\s\s\s(*threadProc)(threadClientData);\n\s\s}\n---\s1192,1198\s----\n\s\s\s\s\s\sthreadClientData\s=\scdPtr->clientData;\n\s\s\s\s\s\sTcl_Free((char*)clientData);\s/*\sAllocated\sin\sTcl_CreateThread()\s*/\n\n!\s\s\s\s\s//\sTclInitNotifier();\n\n\s\s\s\s\s\s(*threadProc)(threadClientData);\n\s\s}\n\nThe\ssame\spatch\sshould\sapply\sto\sTOT.\s\sI\sdon't\sthink\sthe\sfix\sto\s770053\sis\s\ncorrect,\sit\smeans\sthat\syou\scan't\scall\sTcl_CreateThread\sinside\sa\scall\sto\s\nTclInitNotifier,\swhich\sdoesn't\sseem\sright\sto\sme.\s\sI\swill\ssend\sthis\son\sto\sthe\s\nTcl\sCore\slist.\n----\n
J login tallniel
J mimetype text/plain
J username tallniel
K 770053ffffffffffffffffffffffffffffffffff
U tallniel
Z 48e3f20c86409ce3d60ccf9789f909fb