Artifacts Associated With Ticket 3357771
Ticket change [f0bdf9e57a] (rid 109246) by dgp on 2011-07-07 16:03:30:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
With a --enable-symbols=all build of the Tcl trunk... ==== compile-12.1 testing literal leak on interp delete FAILED ==== Contents of test case: set end [getbytes] for {set i 0} {$i < 5} {incr i} { interp create foo foo eval { namespace eval bar {} } interp delete foo set tmp $end set end [getbytes] } set leakedBytes [expr {$end - $tmp}] ---- Result was: 344 ---- Result should have been (exact matching): 0 ==== compile-12.1 FAILED - foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "--enable-symbols=all mem leak"
- type initialized to: "Bug"
Ticket change [5c6b811278] (rid 115295) by dgp on 2011-07-07 23:09:31:
- icomment:
Also: ==== oo-call-1.18 object call introspection - memory leaks FAILED ==== Contents of test case: leaktest { info object call oo::object destroy } ---- Result was: 414 ---- Result should have been (exact matching): 0 ==== oo-call-1.18 FAILED ==== oo-call-2.13 class call introspection - memory leaks FAILED ==== Contents of test case: leaktest { info class call oo::class destroy } ---- Result was: 414 ---- Result should have been (exact matching): 0 ==== oo-call-2.13 FAILED ==== oo-call-3.2 current call introspection FAILED ==== Contents of test case: oo::class create A { superclass root method x {} {self call} } oo::class create B { superclass A method x {} {self call;next} } B create y oo::objdefine y method x {} {self call;next} leaktest { y x } ---- Result was: 3225 ---- Result should have been (exact matching): 0 ==== oo-call-3.2 FAILED - login: "dgp"
- mimetype: "text/plain"
- title changed to: "--enable-symbols=all mem leaks"
- username: "dgp"
- icomment:
Ticket change [3d052f8b5d] (rid 121015) by dgp on 2011-07-07 23:38:17:
- icomment:
bisect points blame on fbb4a85f92e91308a079 which was the removal of TclCleanupLiteralTable. This was ok in 8.5, and got merged to trunk without testing. It really ought to be ok on trunk too. I suspect when TCLT is in place it's working around/papering over some other memleak.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [18e1a5bc60] (rid 122734) by msofer on 2011-07-08 17:45:22:
- icomment:
TclCleanupLiteralTable had the following comment: - /* - * It is tempting simply to walk each hash bucket once and delete the - * internal representations of each literal in turn. It's also wrong. - * The problem is that freeing a literal's internal representation can - * delete other literals to which it refers, making nextPtr invalid. - * So each time we free an internal rep, we start its bucket over - * again. - */ TclDeleteLiteralTable does not seem to be minding this special scenario. Could this be the bug's cause?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [44dca432f9] (rid 116777) by dgp on 2011-07-13 03:35:58:
- icomment:
The oo leaks are older.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [962bdce217] (rid 106282) by dgp on 2011-07-13 03:47:56:
- icomment:
Ticket 3365156 opened to track that separately.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d8d3ff3079] (rid 107514) by dgp on 2011-07-15 21:55:26:
- closedate changed to: "2011-07-15T14:55:26"
- closer changed to: "dgp"
- icomment:
This is a reappearance of 467523. Committing fix to trunk. If we're happy with it, we can consider backporting.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "dgp"
Ticket change [f2b86b90cf] (rid 133383) by dkf on 2013-08-20 10:49:50:
- closedate changed to: "2456524.95127744"
- closer changed to: "dkf"
- comment changed to:
With a --enable-symbols=all build of the Tcl trunk... ==== compile-12.1 testing literal leak on interp delete FAILED ==== Contents of test case: set end [getbytes] for {set i 0} {$i < 5} {incr i} { interp create foo foo eval { namespace eval bar {} } interp delete foo set tmp $end set end [getbytes] } set leakedBytes [expr {$end - $tmp}] ---- Result was: 344 ---- Result should have been (exact matching): 0 ==== compile-12.1 FAILED - login: "dkf"
- mimetype: "text/plain"
- severity changed to: "Minor"
- status changed to: "Closed"