Skip to content
Tcl Source Code Artifact [472fdc2813]
Login

Artifact [472fdc2813]

Artifact 472fdc281321ed76df0004f18f88c33ead43e09a:

Ticket change [472fdc2813] - Ticket [3111059fffffffff|3111059fff] <i>coro+proc+ns deadlock</i> status still Open with 4 other changes by msofer on 2010-11-18 05:19:53.
D 2010-11-18T05:19:53
J icomment At\sleast\sthe\snamespace,\sproc\sand\scoro\sstructs\sare\sall\sbeing\sleaked.\sThis\sshould\snot\shappen,\sthe\ssequence\sgoing\ssomething\slike\sthis\swhen\s"namespace\sdelete"\sis\scalled:\n\s\s1.\sTcl_DeleteNamespace\scalls\sTcl_DeleteCommandFromToken\son\s[coro]'s\scmdPtr\n\s\s2.\sTcl_DeleteCommandFromToken\sset\scmdPtr->flags|=CMD_IS_DELETED\sand\scalls\scmdPtr->deleteProc\s(==\sDeleteCoroutine)\n\s\s3.\sDeleteCoroutine\ssees\sthat\scoroPtr\sis\ssuspended\sand:\s(a)\spushes\sa\scallback\sfor\sRewindCoroutine,\s(b)\sruns\sall\scallbacks\n\s\s4.\sRewindCoroutine\ssets\scorPtr->eePtr->rewind=1\sand\sresumes\sthe\scoroutine\n\s\s5.\son\sresuming,\sTEBC\ssees\sthe\srewind\sflag\sand\sreturns\san\suncatchable\serror:\sthe\snre\sstack\sis\swound\sdown\sto\sthe\sbottom\sof\sthe\scoroutine\n\s\s6.\sthe\slast\scallback\son\sthe\scoros\sexecEnv\sis\sNRCoroutineExitCallback,\scoroutine\sdeletion\sproceeds\s\n\s\s7.\s...\n\nProblem\sseems\sto\sbe\sbefore\sor\saround\sstep\s5,\sas\sthe\sproc\sshould\sbe\sfreed\swhen\sit\sreturns.\n
J login msofer
J mimetype text/plain
J username msofer
K 3111059fffffffffffffffffffffffffffffffff
U msofer
Z 7059e063c237b9c87a2f4668f0e9ee2d