.
D 2002-12-09T22:27:55
J assignee andreas_kupries
J cmimetype text/plain
J comment While\strying\sto\sget\ssetup\sto\sduplicate\sthat\sother\s\nbug\s(#649209),\sI\sdiscovered\sa\ssevere\slogic\serror\sin\s\nthe\sTclFinalizeThreadData\sfunction.\s\sThis\sbug\sis\s\nsomewhat\sspecific\sto\sWindows\sand\sdefinitely\s\nspecific\sto\snon-threaded\sbuilds.\s\sThis\sis\sthe\skind\s\nof\sbug\sthat\scould\spotentially\sbe\sresponsible\sfor\s\nmore\sthan\sone\sopen\sbug.\n\nTclpMasterLock\sis\scalled\sunconditionally\son\s\ntclThread.c:409,\showever\sthe\saccompanying\s\nTclpMasterUnlock\sis\sonly\scalled\sif\sTCL_THREADS\sis\s\ndefined.\s\sOf\scourse,\sthis\sis\stotally\sfatal\sto\sthe\s\nprocess,\sbecause\sonce\sthe\scritical\ssection\shas\sbeen\s\nacquired\sby\sone\sthread,\sit\sis\sforever\sorphaned\sand\s\naccording\sto\sthe\sWin32\sAPI\sdocs,\sthe\sresults\sof\sa\s\nthread\sdying\swhile\sholding\sa\scritical\ssection\s\nare\s"undefined".\s\sAdditionally,\sTclpMasterUnlock\sis\s\nnot\sdefined\swhen\sTCL_THREADS\sis\snot\sdefined.\s\sIt\s\nshould\salways\sbe\sdeclared,\sregardless\sof\sthe\s\nTCL_THREADS\sdefine.\s\s\n\nFortunately,\sa\scursory\ssearch\sof\sthe\sTcl\ssource\scode\s\nturned\sup\sno\sother\sinstances\sof\sthis\sparticular\slogic\s\nerror.\n\nI\scan\screate\sa\spatch\sfor\sthis\sbug\sif\syou\swant,\sbut\sit\s\nwould\sinvolve\ssome\swork,\ssince\smy\slocal\sTcl\s\nsource\sis\snot\squite\sin\ssync\swith\sCVS.\n\nJJM\n
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title logic\serror\sin\stclThread.c
J type Bug
K 651139ffffffffffffffffffffffffffffffffff
U nobody
Z 59707f0839da4f207b08cb804b5b4331