Artifacts Associated With Ticket 3105999fffffffffffffffffffffffffffffffff
Ticket change [7931418eeb] (rid 90088) by dkf on 2010-11-09 15:02:50:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
TclOO uses a variable resolver, but this leads to leaks in some cases. Notably check out memory leak tests oo-0.8, oo-20.16 and oo-27.12 (requires a memdebug build); the first two fail, the last passes. (This was first reported to me by Jos Decoster, who was hunting it with difficulty in Wub...) --- TEST TRACE FOLLOWS --- bash$ make test-tcl TESTFLAGS="-file oo.test" Warning: tclStubInit.c may be out of date. Developers may want to run "make genstubs" to regenerate. This warning can be safely ignored, do not report as a bug! Warning: tclOOStubInit.c may be out of date. Developers may want to run "make genstubs" to regenerate. This warning can be safely ignored, do not report as a bug! DYLD_LIBRARY_PATH=`pwd`: TCLLIBPATH="/Users/dkf/Documents/software/tcl8.6-commits/unix/pkgs" TCL_LIBRARY="/Users/dkf/Documents/software/tcl8.6-commits/library" ./tcltest /Users/dkf/Documents/software/tcl8.6-commits/tests/all.tcl -file oo.test Tests running in interp: /Users/dkf/Documents/software/tcl8.6-commits/unix/tcltest Tests located in: /Users/dkf/Documents/software/tcl8.6-commits/tests Tests running in: /Users/dkf/Documents/software/tcl8.6-commits/unix Temporary files stored in /Users/dkf/Documents/software/tcl8.6-commits/unix Test files run in separate interpreters Running tests that match: * Skipping test files that match: l.*.test Only running test files that match: oo.test Tests began at Tue Nov 09 15:01:15 GMT 2010 oo.test ==== oo-0.8 leak in variable management FAILED ==== Contents of test case: oo::define foo { constructor {} { variable v 0 } } leaktest {[foo new] destroy} ---- Result was: 74 ---- Result should have been (exact matching): 0 ==== oo-0.8 FAILED ==== oo-20.16 variable method: leak per instance FAILED ==== Contents of test case: oo::define foo { constructor {} { set [my variable v] 0 } } leaktest {[foo new] destroy} ---- Result was: 146 ---- Result should have been (exact matching): 0 ==== oo-20.16 FAILED Tests ended at Tue Nov 09 15:01:16 GMT 2010 all.tcl:Total179Passed177Skipped0Failed2 Sourced 1 Test Files. Files with failing tests: oo.test - 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: "dkf"
- subsystem initialized to: "07. Variables"
- title initialized to: "Resolver leaks"
- type initialized to: "Bug"
Ticket change [d179a9fe31] (rid 113357) by dkf on 2010-11-09 22:04:06:
- icomment:
Note also above that the [variable] in oo-0.8 is the standard [::variable]; the leak is deeper than that but I don't know where! Help!
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [5b3f703b7f] (rid 118289) by dkf on 2010-11-09 23:27:39:
- icomment:
Damn. Damn, damn, damn, damn, damn. I was forgetting to deallocate the structure in ProcedureMethodVarResolver. Fixed in HEAD. Needs backport.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [56bae42b41] (rid 94372) by dkf on 2010-11-09 23:27:40:
- assignee changed to: "dkf"
- subsystem changed to: "35. TclOO Package"
Ticket change [aed26f5208] (rid 101706) by dkf on 2010-11-09 23:31:06:
- icomment:
Correction; not broken in package. Breakage was caused by Miguel trying to combine resolver code and forgetting to manage the structure lifetime. Not my fault!
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [d6c19aa8bc] (rid 123860) by dkf on 2010-11-09 23:31:26:
- closedate changed to: "2010-11-09T16:31:26"
- closer changed to: "dkf"
- icomment:
allow_comments - 1
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
Ticket change [1d26c0a05f] (rid 90748) by dkf on 2010-11-09 23:35:13:
- icomment:
Backported tests.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment: