Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 59bfb3f3eea005fc7182ee244ccc5b5302e9becc
Ticket: 516435ffffffffffffffffffffffffffffffffff
Memory problem in Tcl8.3.4?
User & Date: nobody on 2002-02-12 14:36:43
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If I compile and run the following program on a 2.4
    linux machine (gcc 2.95.3) with tcl8.3.4 which I have
    compiled from source, the amount of memory used
    increases very rapidly:
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <tcl.h>
    
    int main() {
      Tcl_Interp *interp;
      int i;
      char task[] = "for {set i 0} {$i < 100} {incr i} {set
    a($i) $i}";
    
      for(i = 0; i < 100000; i++) {
        interp = Tcl_CreateInterp();
        Tcl_Init(interp);
        Tcl_Eval(interp, task);
        Tcl_Finalize();
        Tcl_DeleteInterp(interp);
      }
    
      return 0;
    }
     
    
    I hope that this is a satisfactory report,
    
    regards,
    
    Graeme
    
  4. foundin changed to: "obsolete: 8.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "41. Memory Allocation"
  10. title changed to: "Memory problem in Tcl8.3.4?"
  11. type changed to: "Bug"