Skip to content
Tcl Source Code History Of Ticket 1077474
Login

History Of Ticket 1077474

Artifacts Associated With Ticket 1077474

  1. Ticket change [20b56da851] (rid 130469) by dkf on 2004-12-02 10:53:34:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      compile-12.1 fails for me (config: Linux, Fedora Core
      2, Tcl HEAD built with --enable-symbols=all,
      --enable-threads)
      
      ==== compile-12.1 testing literal leak on interp delete
      FAILED
      ==== Contents of test case:
      
          proc getbytes {} {
              set lines [split [memory info] "\n"]
              puts [lindex $lines 3]
              lindex $lines 3 3
          }
      
          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]
          }
          rename getbytes {}
          set leak [expr {$end - $tmp}]
      
      ---- Result was:
      20736
      ---- Result should have been (exact matching):
      0
      ==== compile-12.1 FAILED
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dkf"
    9. subsystem initialized to: "47. Bytecode Compiler"
    10. title initialized to: "Memory leak?"
    11. type initialized to: "Bug"
  2. Ticket change [0642ea7560] (rid 89193) by msofer on 2004-12-02 23:58:50:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Reproed under --enable-symbols=mem (no threads); leak is
      5328 here
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [c0e357c21f] (rid 102491) by msofer on 2004-12-03 00:46:43:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Leak is real, and independent ofcompile flags. With a normal
      build, you can watch (in top) as a tclsh running
         while i {interp create a; interp delete a}
      grows in memory used. 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "msofer"
  4. Ticket change [c1eabbf32f] (rid 111408) by hobbs on 2004-12-03 02:32:07:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      I cannot confirm this for 8.4.9 or HEAD on Windows.  Unix
      only??  Testing with:
      
      make shell
      % while 1 { interp delete [interp create a] }
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  5. Ticket change [ab988b1b5a] (rid 101144) by msofer on 2004-12-03 03:08:49:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      The leak was not there in 8.5a1
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [e9927cc6f8] (rid 104836) by dgp on 2004-12-03 03:28:11:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      leak is new since 2004-11-15.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [a84078f287] (rid 98946) by dgp on 2004-12-03 03:36:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      leak is new since 2004-11-28.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [bbb7a2aefa] (rid 129536) by dgp on 2004-12-03 03:55:08:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Ignore those comments.
      
      Appears the failed test doesn't
      show up on Solaris ?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [55b1ea70eb] (rid 94188) by dgp on 2004-12-03 04:16:08:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      ok, on a better test platform,
      confirmed the leak started
      between 2004-11-30 and
      2004-12-01.  very likely a
      problem in my commit.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [31b0f7b04b] (rid 93475) by dgp on 2004-12-03 04:25:37:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      leak is rooted in the
      post-script-evaluation
      portion of Tcl_Init.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [2b733d3cda] (rid 118745) by dgp on 2004-12-03 04:35:55:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      leak happens in the call to
      TclpGetEncodingNameFromEnvironment()
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [e83d876ee8] (rid 104614) by dgp on 2004-12-03 05:33:27:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      leak happens in the
      Tcl_GetEncoding() call
      that returns NULL.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Ticket change [2cae73d1cd] (rid 118949) by dgp on 2004-12-03 06:24:58:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2004-12-02T23:24:58"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      Leak is in MakeFileMap()
      in tclEncoding.c
      
      root cause was confusion about the
      refCounting of Tcl_Obj's returned
      by TclPathPart().
      
      Committing fix...
      
      thanks to the reporters and testers.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. subsystem changed to: "38. Init - Library - Autoload"
    10. username: "dgp"