Skip to content
Tcl Source Code Artifact [1b8f6ad7cd]
Login

Artifact [1b8f6ad7cd]

Artifact 1b8f6ad7cd8377a4596d99a977ffcc867322c865:

Ticket change [1b8f6ad7cd] - Ticket [9969cf8ca6fa749f|9969cf8ca6] <i>memleak in execute-10.3</i> status still Open with 3 other changes by dgp on 2014-07-17 03:41:34.
D 2014-07-17T03:41:34.805
J icomment Oh\sboy.\r\n\r\nTest\sexecute-10.3\scame\sin\sto\stest\sthat\sa\scrashing\r\nscenario\sin\sTicket\s3072640\sstopped\scrashing.\r\n\r\nThe\sleak\shere\sappears\sto\sbe\sexposing\sthat\salthough\r\nthings\sare\snot\scrashing,\sthey\sdon't\sseem\sto\sbe\sworking\r\nproperly\seither.\r\n\r\nThe\sissue\sappears\sto\sbe\show\sto\shandle\sexecution\sleave\r\ntraces\sfor\sthe\s[yield]\scommand\sor\sfor\sother\scommands\r\nlike\s[for]\sor\s[while]\sthat\scan\send\sup\syielding\sdue\sto\r\n[yield]\sin\stheir\sbodies.\s\sWhen\sthese\scommands\syield,\r\nin\ssome\ssense\sthey\sare\sblocking,\sthey\sare\sstill\sin\sprogress,\r\nand\swe\smay\ssometime\slater\sreturn\sto\sthem\sand\slet\sthem\r\ncomplete\sand\sleave\sat\sthat\stime.\s\sSo\stheir\sleave\straces\r\ndo\snot\sfire\s*yet*.\r\n\r\nExecution\strace\simplementation\screates\sthings\sfor\senter\r\ntraces\sand\sdestroys\sthem\safter\sleave\straces.\s\sThat's\r\nwhy\swe\ssee\sa\sleak.\s\sThose\scommands\sthat\snever\sleave,\r\nnever\sclean\sup\stheir\sexecution\strace\shousekeeping.\r\n\r\nWhat's\sstrange\sis\sthat\safter\sthe\s[yield],\sthe\sexecution\r\ntrace\sappears\sto\sstill\sbe\sin\seffect,\snow\stracing\sa\swhole\r\nother\sbody\sof\scode.\r\n\r\nIn\sthe\stest\sexecute-8.3,\sa\sbit\sof\sdebug\sprinting\swill\r\nreveal\sthat\sthe\scommand\r\n\r\n::t\s{trace\sremove\sexecution\s::generate\senterstep\s::t}\senterstep\r\n\r\nis\sinvoked,\seven\sthough\sI\swould\snot\snormally\sthink\sof\sthe\r\n[trace\sremove]\sbeing\spart\sof\s[::generate].\r\n\r\nThe\sother\sthing\sthat\sappears\smissing\sis\sthat\sI\swould\sthink\r\nthat\swhen\sit\sbecomes\sclear\sthe\scoro\swill\snever\sbe\sresumed\r\n(with\s[rename\scoro\s{}],\sthen\swe\sought\sto\sbe\scleaning\sup\r\nthe\sabandoned\strace\shousekeeping,\sand\sthat's\snot\shappening\r\n(thus\sthe\sleak)).\r\n\r\nMy\shead\shurts.
J login dgp
J mimetype text/plain
K 9969cf8ca6fa749fa0952186957fd3ac110be5b3
U dgp
Z 784de8d177ae7f1b8fa696d54353398e