Skip to content
Tcl Source Code Artifact [257230a4b3]
Login

Artifact [257230a4b3]

Artifact 257230a4b362d1def75fb8041019a814ad8692e1c3bd5e7c8d9456e77e458361:

Ticket change [257230a4b3] - Ticket [103abf181eb01366|103abf181e] <i>regression since 9.0.4 brings leaks and hangs to bundled Itcl 4.3.8</i> status still Open with 3 other changes by serhiy.storchaka on 2026-11-16 17:52:41.
D 2026-11-16T17:52:41.474
J icomment This\sis\snot\sa\snew\sbug:\sfixing\s[8413e79232]\sin\s[e44f1d0e87]\sexposed\sexisting\sproblems\sthat\sthe\sold\stcltest\sbehaviour\shad\shidden.\n\nBefore,\s<tt>cleanupTests</tt>\scalled\s<tt>exit</tt>\sin\sany\sinterpreter\swhere\sTk\swas\sloaded.\sItcl's\s<tt>tests/helpers.tcl</tt>\sruns\seach\stest\sfile\sthree\stimes\sin\sa\schild\sinterpreter\sto\slook\sfor\sleaks.\sSo\sin\swidgetadaptor.test\sand\swidgetclass.test\sthe\swhole\sprocess\sexited\safter\sthe\sfirst\srun,\sand\sthree\sproblems\swent\sunnoticed:\n<ul>\n<li>the\sother\stwo\sruns\snever\shappened,\sso\s118\stests\swere\ssilently\sskipped\s(2255\sinstead\sof\s2373);</li>\n<li>the\sleak\scheck\snever\scompleted:\sthe\sTk\swidget\stests\sleak\s17149\sbytes\s(widgetadaptor.test)\sand\s12880\sbytes\s(widgetclass.test)\sper\srun\sin\sa\schild\sinterpreter;</li>\n<li>helpers.tcl\sends\swith\s<tt>return\s-code\sreturn</tt>\sand\srelied\son\sthat\sexit\sto\send\sthe\sprocess.\sWithout\sit,\sthe\sprocess\swaits\sin\sTk's\sevent\sloop.</li>\n</ul>\nSince\s[e44f1d0e87],\stcltest\sno\slonger\sexits\swhen\sa\stest\sfile\sis\ssourced\sby\sanother\sscript,\swhich\sis\scorrect.\sAll\sthree\sruns\scomplete,\sthe\sleak\sis\sreported,\sand\sthe\sprocess\shangs.\n\nThis\sonly\sshows\swhen\sTk\scan\sbe\sloaded\sby\sthe\stest\sprocesses;\swithout\sTk\sthe\sItcl\stests\spass.\sWith\s<tt>exit</tt>\sinstead\sof\s<tt>return\s-code\sreturn</tt>\sat\sthe\send\sof\sthe\sleak-test\sbranch\sin\shelpers.tcl,\sall\s2373\sItcl\stests\spass\sand\snothing\shangs.\sThe\sleaks\sare\sstill\sreported\sand\sneed\sa\sseparate\slook,\sin\sTk\sor\sin\sItcl's\swidget\scode.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 103abf181eb01366c018e047d525d0d042c8c5c5
U serhiy.storchaka
Z 802004d43ededbd4e1b9011d86d3c710