Artifacts Associated With Ticket 3234175fffffffffffffffffffffffffffffffff
Ticket change [6a4990ede1] (rid 128122) by hgo on 2011-03-22 07:48:28:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In: proc auto_load_index, the code: eval [read $f] leaks memory at each interpreter delete This replacement test code: set ::dir $dir namespace eval :: source [file join $dir tclIndex] unset ::dir does not leak Examples: proc leakTest1 {} {set i [interp create]; $i eval set auto_noload true; catch {$i eval xx}; interp delete $i}; # No Leak proc leakTest2 {} {set i [interp create]; catch {$i eval xx}; interp delete $i}; # Leak!!!!! proc leakTest3 {} {set i [interp create]; $i eval history; interp delete $i}; # Leak!!!!! - foundin initialized to: "obsolete: 8.5.5"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "hgo"
- subsystem initialized to: "20. [interp]"
- title initialized to: "auto_index leaks memory at interp delete"
- type initialized to: "Bug"
Ticket change [e5b90716b3] (rid 104178) by hgo on 2011-03-22 14:50:20:
- icomment:
Runs on home build imbedded Tcl on HP-UX PA-RISC (64 bits)
- login: "hgo"
- mimetype: "text/plain"
- username: "hgo"
- icomment:
Ticket change [531bad76dd] (rid 126426) by hgo on 2011-03-22 14:54:01:
- subsystem changed to: "38. Init - Library - Autoload"
Ticket change [39a0a2638f] (rid 112426) by dgp on 2011-03-22 19:15:41:
- icomment:
Thanks for the report. What is the evidence of the leak?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [3eb542cb6d] (rid 121319) by dgp on 2011-03-22 19:15:42:
- assignee changed to: "dgp"
Ticket change [3b4512851f] (rid 112707) by hgo on 2011-03-22 20:03:29:
- icomment:
To test the leak run (in Tcl interp): while 1 leakTest3 and observe the process size. This will be constantly increasing. Changing the "eval [read $f]" with the workaround, no process size increase is seen.
- login: "hgo"
- mimetype: "text/plain"
- username: "hgo"
- icomment:
Ticket change [f80e005e7b] (rid 91476) by dgp on 2011-03-22 20:10:46:
- icomment:
Confirmed leakTest2 in Tcl 8.5.5. No longer leaking in Tcl 8.5.9. Upgrade.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [97d60f87e5] (rid 110504) by hgo on 2011-03-22 20:26:26:
- icomment:
Will upgrade and confirm. Thanks :-)
- login: "hgo"
- mimetype: "text/plain"
- username: "hgo"
- icomment:
Ticket change [f1600311da] (rid 109355) by dgp on 2011-03-22 20:58:41:
- icomment:
Leaks were first fixed in release 8.5.8, though not reported in the Tracker.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [603f57272f] (rid 115957) by dgp on 2011-03-22 20:58:42:
- closedate changed to: "2011-03-22T13:58:42"
- closer changed to: "dgp"
- icomment:
allow_comments - 1
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- status changed to: "Closed"
- username: "dgp"