Overview
| Artifact ID: | 7931418eeb85ff36a7df1968cb1997538f196659 |
|---|---|
| Ticket: | 3105999fffffffffffffffffffffffffffffffff
Resolver leaks |
| User & Date: | dkf on 2010-11-09 15:02:50 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "9 Immediate"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dkf"
- subsystem changed to: "07. Variables"
- title changed to: "Resolver leaks"
- type changed to: "Bug"