Skip to content
Tcl Source Code Artifact [7a04d7c6e2]
Login

Artifact [7a04d7c6e2]

Artifact 7a04d7c6e22dbb545f65ecee136308cac732322c1138bde856347a728ab97fc4:

Ticket change [7a04d7c6e2] - 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 22:17:57.
D 2026-11-16T22:17:57.054
J icomment The\shang\sis\scaused\sby\sItcl's\sleak-test\sharness.\swidgetadaptor.test\sand\swidgetclass.test\sset\stheir\s<tt>tk</tt>\sconstraint\swith\s<tt>package\srequire\sTk</tt>\sin\sthe\smain\sinterpreter\sbefore\scalling\s<tt>loadTestedCommands</tt>.\sIn\sthe\sleak-test\smode,\stests/helpers.tcl\sruns\sthe\sfile\sin\schild\sinterpreters\sand\sstops\sthe\smain\sone\swith\s<tt>return\s-code\sreturn</tt>,\sbut\sthe\smain\sinterpreter's\sTk\smain\swindow\sstays.\sWhen\sthe\sscript\sends,\s<tt>Tcl_Main</tt>\senters\sthe\sTk\sevent\sloop\sand\swaits\sforever.\sThe\sold\stcltest\shid\sthis\sby\sexiting\sfrom\sthe\schild\sinterpreter.\n\nThis\spatch\sto\sItcl\sdestroys\sthat\swindow\safter\sthe\sleak\stest:\n\n<verbatim>\n---\stests/helpers.tcl\n+++\stests/helpers.tcl\n@@\s-42,7\s+42,14\s@@\n\s\s\s\s\sif\s{$leak}\s{\n\s\s\s\s\s\s\sputs\s"LEAKED:\s$leak\sbytes"\n\s\s\s\s\s}\n\s\s\s}\n\s\s\sitcl_leaktest\s[info\sscript]\n+\s\s#\sThe\stest\sfile\smay\shave\sloaded\sTk\sin\sthis\sinterpreter\s(to\sset\sits\stk\n+\s\s#\sconstraint)\sbefore\scalling\sloadTestedCommands.\sDestroy\sits\smain\n+\s\s#\swindow,\sor\sthe\sapplication\swould\swait\sin\sthe\sTk\sevent\sloop\swhen\sthe\n+\s\s#\sscript\sends.\n+\s\sif\s{[info\scommands\s::destroy]\sne\s""}\s{\n+\s\s\s\sdestroy\s.\n+\s\s}\n\s\s\sreturn\s-code\sreturn\n\s}\n</verbatim>\n\nWith\sit,\sall\s2373\sItcl\s4.3.8\stests\spass\swith\sTk\savailable\sand\snothing\shangs.\sThe\sleak\scheck\sstill\sreports\s17149\sbytes\sfor\swidgetadaptor.test\sand\s12880\sbytes\sfor\swidgetclass.test.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 103abf181eb01366c018e047d525d0d042c8c5c5
U serhiy.storchaka
Z a4d7d1380a4f391d4f5eb48b7934ef61