Skip to content
Tcl Source Code Artifact [e4deab9ff9]
Login

Artifact [e4deab9ff9]

Artifact e4deab9ff94bdc05373dd7d61af0712642e1f3ee:

Ticket change [e4deab9ff9] - Ticket [3400944fffffffff|3400944fff] <i>[exit] creates leaks</i> status still Open with 4 other changes by foxcruiser on 2011-08-31 20:20:06.
D 2011-08-31T20:20:06
J icomment We\sgot\sthe\ssame\sissue\swith\s[exit]\swhen\smemory\sdebugging\sXOTcl/NSF\sbased\son\sour\stest\ssuite\s\s(with\san\sinternal\srefcounter\sand\svalgrind).\sWe\sended\sup\swith\sfalling\sback\sto\sa\sgraceful\sunwind\sinstead\sof\sTcl_Exit(),\sfor\sthe\sscope\sof\stest\sscripts:\n\n\sproc\sgraceFullExit\s{{statuscode\s"1"}}\s{\n\s\s\s\s\s\sarray\sset\smap\s{1\sok\s-1\serror}\n\s\s\s\s\s\sset\serrorcode\s$map($statuscode)\n\s\s\s\s\s\sinterp\salias\s{}\s::exit\s{}\n\s\s\s\s\s\sinterp\sexpose\s{}\sexit;\s\n\s\s\s\s\s\sreturn\s-code\s$errorcode\s-level\s[expr\s{[info\slevel]-1}]\s"Test\swas\sexited\swith\scode\s$statuscode"\n\s\s\s\s}\n\nand\sthen,\sbefore\sevaluating\sa\stest\sbody:\n\n\sinterp\shide\s{}\sexit;\s\n\sinterp\salias\s{}\s::exit\s{}\s::graceFullExit\n\nworks\sfine\sfor\sus\s...\n\n\n\n\n
J login foxcruiser
J mimetype text/plain
J username foxcruiser
K 3400944fffffffffffffffffffffffffffffffff
U foxcruiser
Z b91e2f654839981245b61811c1b03260