Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2b4950c84e8e9975e91654d953b51b02b9826907
Ticket: 994838ffffffffffffffffffffffffffffffffff
memory leak in interpreter creation/deletion loop
User & Date: kennykb on 2004-07-20 21:45:45
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Running the loop
    
    while 1 {
        interp create i
        interp delete i
    }
    
    results in process memory growing endlessly.
    
    Miguel Sofer and I have been discussing the bug
    at length in email and the Tcl'ers Chat and have
    reached the conclusion that the problem arises when
    a proc's bytecode representation lives until the interp
    is deleted (generally, because some shared literal
    has an internal representation of tclLocalVarType
    that designates a variable in the proc).
    
    I now suspect that the problem is ameliorated if
    internal representations of global literals are destroyed
    earlier in the process of taking down an interp.
    I'm developing a patch to test this hypothesis.
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "7 High"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kennykb"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "memory leak in interpreter creation/deletion loop"
  11. type changed to: "Bug"