Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e25536240c0b495a33d1da8c7db55cbaedda4bad
Ticket: 1075378fffffffffffffffffffffffffffffffff
C multithreaded program using TCL_interp leaks memory
User & Date: mteira on 2004-11-29 16:55:33
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The attached  C program worked fine with tcl8.4.6.
    Testing against tcl8.4.7, tcl8.4.8 and cvs trunk it
    leaks a lot of memory. I've tested it with the same
    results on Linux (Debian Woody) and sparc Solaris 2.8.
    The configure invocation was:
    ./configure --enable-threads --enable-shared
    
    
    The test program tries to source a script called
    test.tcl and evaluates a procedure on that script. It's
    enough an script like this:
    
    cat test.tcl
    
    proc test {
      set varA 1
      set varB 2
    }
    
    Once compiled, the program can be executed :
    ./tclleak 5 1000 (for example)
    With tcl8.4.6 it only takes 4Mb of maximum memory, with
    tcl8.4.7 and higher versions, it takes more than 150Mb.
    
    
    
  4. foundin changed to: "obsolete: 8.4.8"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mteira"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "C multithreaded program using TCL_interp"
  11. type changed to: "Bug"