Artifacts Associated With Ticket 516435ffffffffff
Ticket change [59bfb3f3ee] (rid 118021) by nobody on 2002-02-12 14:36:43:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized 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 - foundin initialized to: "obsolete: 8.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "41. Memory Allocation"
- title initialized to: "Memory problem in Tcl8.3.4?"
- type initialized to: "Bug"
Ticket change [0a22798305] (rid 113763) by hobbs on 2002-02-13 02:44:48:
- closedate changed to: "2002-02-12T19:44:48"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Please see the newsgroup comments that note that this is not a correct program. If the corrected version still exhibits problems, please tell us about how much each instance seems to leak.
- login: "hobbs"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "hobbs"
Ticket change [9e2fbf2dc7] (rid 96436) by msofer on 2002-02-13 02:58:17:
- assignee changed to: "msofer"
- closedate changed to: "2002-02-12T19:58:17"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 I'm closing this ticket: Graeme Winter (author of the bug report) informed me that the leak is gone if Tcl_Finalize is called after deleting the interpreter.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "msofer"