Artifacts Associated With Ticket 6525391072cf1e8e
Ticket change [04984cf2a9] (rid 257758) by serhiy.storchaka on 2026-10-12 15:29:18:
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
<code>TclObjTest_Init()</code> leaks its array of object variables (160 bytes) when Tcltest is initialized twice in an interpreter, as it is in every <code>testthread</code> thread (by the post-init <code>load {} Tcltest</code> and again by <code>NewTestThread()</code>). Found with valgrind. The per-interp array was introduced by the fix for [3386721fff]. Proposed fix in branch [/timeline?r=tcltest-objtest-reinit-leak|tcltest-objtest-reinit-leak]: keep the existing array. - foundin initialized to: "9.1.0"
- login: "serhiy.storchaka"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "serhiy.storchaka"
- subsystem initialized to: "69. Other"
- title initialized to:
TclObjTest_Init leaks when Tcltest is initialized twice in an interpreter
- type initialized to: "Bug"
Ticket change [aa85956550] (rid 257759) by serhiy.storchaka on 2026-10-12 15:31:34:
- login: "serhiy.storchaka"
- subsystem changed to: "34. tcltest Package"
Ticket change [983839ac0d] (rid 257890) by jan.nijtmans on 2026-10-13 12:07:32:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461327.0052428357"
- closer changed to: "jan.nijtmans"
- comment changed to:
<code>TclObjTest_Init()</code> leaks its array of object variables (160 bytes) when Tcltest is initialized twice in an interpreter, as it is in every <code>testthread</code> thread (by the post-init <code>load {} Tcltest</code> and again by <code>NewTestThread()</code>). Found with valgrind. The per-interp array was introduced by the fix for [3386721fff]. Proposed fix in branch [/timeline?r=tcltest-objtest-reinit-leak|tcltest-objtest-reinit-leak]: keep the existing array. - icomment:
Fixed in [214777d5aab51db8|trunk], backported to core-9-0-branch and core-8-6-branch. Since this is a change in the test only, this ticket will not be mentioned in the release notes. Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"