Skip to content
Tcl Source Code History Of Ticket 3105999
Login

History Of Ticket 3105999

Artifacts Associated With Ticket 3105999

  1. Ticket change [7931418eeb] (rid 90088) by dkf on 2010-11-09 15:02:50:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "9 Immediate"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dkf"
    10. subsystem initialized to: "07. Variables"
    11. title initialized to: "Resolver leaks"
    12. type initialized to: "Bug"
  2. Ticket change [d179a9fe31] (rid 113357) by dkf on 2010-11-09 22:04:06:

    1. 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!
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [5b3f703b7f] (rid 118289) by dkf on 2010-11-09 23:27:39:

    1. icomment:
      Damn. Damn, damn, damn, damn, damn.
      
      I was forgetting to deallocate the structure in ProcedureMethodVarResolver. Fixed in HEAD. Needs backport.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [56bae42b41] (rid 94372) by dkf on 2010-11-09 23:27:40:

    1. assignee changed to: "dkf"
    2. subsystem changed to: "35. TclOO Package"
  5. Ticket change [aed26f5208] (rid 101706) by dkf on 2010-11-09 23:31:06:

    1. 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!
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [d6c19aa8bc] (rid 123860) by dkf on 2010-11-09 23:31:26:

    1. closedate changed to: "2010-11-09T16:31:26"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"
  7. Ticket change [1d26c0a05f] (rid 90748) by dkf on 2010-11-09 23:35:13:

    1. icomment:
      Backported tests.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"