Skip to content
Tcl Source Code Artifact [aee516f4e6]
Login

Artifact [aee516f4e6]

Artifact aee516f4e67d084e2130c5768f65b50f6bb51be0:

Ticket change [aee516f4e6] - Ticket [3008307fffffffff|3008307fff] <i>stack corruption</i> status still Open with 4 other changes by coldstore on 2010-05-30 08:13:36.
D 2010-05-30T08:13:36
J icomment 0x86a7610\sis\stop's\scoro.\s\s0x86a7a90\sis\sbottom's\scoro\n\n0x869f470\sis\ssaved\sin\sbottom's\scaller\swhen\s*running\stop\s-\sas\swe\sare\screating,compiling,\sthen\srunning\sthe\sbottom\scoro\sfrom\sthe\stop\scoro.\n\n0x869f470\sis\sthen\ssaved\sin\sbottom's\srunning\safter\s*yield\sin\sbottom,\swhen\swe\shave\sconstructed,\scompiled\sand\srun\sbottom\sto\sits\sfirst\s::yield.\n\n0x869f470\sis\sthen\srestored\sfrom\sbottom's\scaller\sin\sorder\sto\sresume\sevaluation\sof\stop,\swhich\sthen\stakes\sus\sto\s*yield\sin\stop.\n\n0x869f470\sis\sthen\ssaved\sin\stop's\srunning\sin\sorder\sto\sprocess\stop's\s::yield.\n\nSO\sat\sthis\spoint\swe\shave\s0x869f470\sin\sboth\stop\sand\sbottom's\srunning\scontext.\n\nNRInterpCoroutine\srestore's\stop's\srunning,\sto\sevaluate\sits\s[return].\s\stop\sreturns,\sdestroying\sits\sstack\s(and\smost\simportantly\s0x869f470)\n\ntop\shas\sbeen\scleaned\sup\snow,\sbut\sthere's\smore\sto\sdo\sin\sbottom,\sso\s...\n\nNRInterpCoroutine\srestores\sbottom's\srunning,\swhich\sstill\scontains\s0x869f470,\swhich\swas\sdeleted\sby\stop\n\nSo\sbottom\sis\srunning\swith\sa\sstack\scontaining\san\selement\sdeleted\sby\sthe\s(now\sdefunct)\stop.\s\sAnd\sit\swill\seventually\scrash.\s\sAs\sit\sdoes.\n\nThis\sis\semphatically\snot\sa\scase\sof\sdeleted\scontent\sbeing\sreused.\s\sIt\sis\sa\scase\sof\sa\sstack\selement\sbeing\sduplicated\sby\sa\scoroutine\sbeing\screated\swithin\sa\srunning\scoroutine.\n\nOne\sof\sthe\sassumptions\stacitly\smade\sabout\scoroutine\screation\smust\snot\shold\strue\swhen\sthe\scaller\sof\s::coroutine\sis\sitself\sa\scoroutine.\n\nIf\swe\scould\swork\sout\swhich\sassumption,\swe\scould\spresumably\savoid\sthe\sdependence\son\sthis\sfalse\sassumption.\n\n
J login coldstore
J mimetype text/plain
J username coldstore
K 3008307fffffffffffffffffffffffffffffffff
U coldstore
Z 46014a8b6f10de4cc8496a4bacd6b325