.
D 2010-05-30T10:55:16
J icomment Tentative\sdiagnosis:\nTclNRCoroutineObjCmd\scalls\sTclNREvalObjEx\swith\sthe\scommand\sto\scompile,\sthen\sevaluate.\n\nThe\sinterp\spassed\sinto\sTclNREvalObjEx\scontains\sthe\sstack\sframe\sof\sCoroutineObjCmd's\scaller,\swhich\sis\sacceptable\sinsofar\sas\sthe\sfirst\sinvocation\sof\sthat\scommand\sshould\sprobably\sbe\sable\sto\spass\serrors\sback\sto\sthe\scaller.\n\nHowever,\sat\ssome\spoint\s(the\sfirst\s::yield\sin\sthe\scoro)\sthis\scontext,\scomplete\swith\sthe\sstack\sof\sthe\soriginal\scaller,\sbecomes\sthe\scontext\sof\sthe\srunning\scoro.\n\nThis\sisn't\scorrect.\s\sOnce\sthe\scoro\shits\sits\sfirst\s::yield,\sand\stherefore\sreturns\sto\sits\screator,\sit\sshould\sbe\srunning\sin\sa\sglobal\scontext\s-\sthat\sis,\sthe\ssaved\srunning\scontext\s*must*not*\scontain\sthe\sstack\sframe\sof\sthe\scaller,\seven\sthough\sit\swas\spassed\sin\sas\sthe\scontruction\sstack.\n\nIf\sthis\sisn't\sdone,\sand\sif\sthe\scaller\sand\screator\sof\sa\scoroutine\sis\sitself\sa\scoroutine\s(and\seven,\sprobably,\sif\sit's\snot)\sthe\sstack\sappears\sin\stwo\scontexts\sand\scan\sbe\sdestroyed\sindependently\sin\seither.\n\nI\ssuspect\sthis\scan\sbe\sinduced\swithout\stwo\scoroutines\sin\splace.\n\n\n
J login coldstore
J mimetype text/plain
J username coldstore
K 3008307fffffffffffffffffffffffffffffffff
U coldstore
Z fdababf7390355f0a558492e2e0cf27f