| Ticket UUID: | 1075378 | ||
| Title: | C multithreaded program using TCL_interp leaks memory | ||
| Type: | Bug | Created on: | 2004-11-29 16:55:33 |
| Submitter: | mteira | Assigned to: | vasiljevic |
| Subsystem: | 49. Threading | Severity: | |
| Priority: | 5 Medium | Last modified: | 2005-05-31 14:06:56 |
| Status: | Closed | Closed by: | vasiljevic |
| Resolution: | Fixed | Closed on: | 2005-05-31 07:06:56 |
| Version: | obsolete: 8.4.8 | ||
| Description: | ||||
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.
| ||||
| User Comments: | ||||
mteira added on 2004-11-29 23:55:33:
File Added - 110561: tclleak.c davygrvy added on 2004-11-30 01:10:07:
Logged In: YES user_id=7549 lacking Tcl_FinalizeThread in thFunction(). lacking Tcl_FindExecutable() and Tcl_Finalize() in main(). davygrvy added on 2004-11-30 01:14:17:
Logged In: YES user_id=7549 whoop.. n/m.. missed seeing Tcl_FinalizeThread msofer added on 2005-05-18 21:48:02:
Logged In: YES user_id=148712 Dave: should this ticket be closed as invalid? hobbs added on 2005-05-31 09:24:59:
Logged In: YES user_id=72656 Zoran - is this related to your recent fix? vasiljevic added on 2005-05-31 14:03:51:
Logged In: YES user_id=95086 It is. You can safely close this one. | ||||
