From: SourceForge.net <no...@so...> - 2005-05-31 07:03:52
|
Bugs item #1075378, was opened at 2004-11-29 17:55 Message generated for change (Comment added) made by vasiljevic You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1075378&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 47. Threading Group: obsolete: 8.4.8 Status: Open Resolution: None Priority: 5 Submitted By: Manuel Teira Paz (mteira) Assigned to: Zoran Vasiljevic (vasiljevic) Summary: C multithreaded program using TCL_interp leaks memory Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Zoran Vasiljevic (vasiljevic) Date: 2005-05-31 09:03 Message: Logged In: YES user_id=95086 It is. You can safely close this one. ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2005-05-31 04:24 Message: Logged In: YES user_id=72656 Zoran - is this related to your recent fix? ---------------------------------------------------------------------- Comment By: miguel sofer (msofer) Date: 2005-05-18 16:48 Message: Logged In: YES user_id=148712 Dave: should this ticket be closed as invalid? ---------------------------------------------------------------------- Comment By: David Gravereaux (davygrvy) Date: 2004-11-29 19:14 Message: Logged In: YES user_id=7549 whoop.. n/m.. missed seeing Tcl_FinalizeThread ---------------------------------------------------------------------- Comment By: David Gravereaux (davygrvy) Date: 2004-11-29 19:10 Message: Logged In: YES user_id=7549 lacking Tcl_FinalizeThread in thFunction(). lacking Tcl_FindExecutable() and Tcl_Finalize() in main(). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1075378&group_id=10894 |