Tcl Source Code

View Ticket
Login
Ticket UUID: 1745928
Title: thread's memory isn't being released
Type: Bug Created on: 2007-07-01 06:19:42
Submitter: nobody Assigned to: vasiljevic
Subsystem: 80. Thread Package Severity:
Priority: 5 Medium Last modified: 2010-11-17 02:49:32
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.4.14
Description:
when using thread::create, the memory allocated isn't free after the thread ends.
code:
-----------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\navidor>tclsh84
% package require Thread
2.6.5
% set t [thread::create {puts "a"}]; puts "$t"
tid00000A38
% a

% thread::names
tid0000012C
%
-------------------------------------------
I'm using winXP, tcl 8.4.14.0
proccess memory (from windows task manager):
before requiring Thread package: 2,808k
after     "          "         : 2,940k
after creating a thread (and after it ends): 3,716k
after few minutes of waiting: 84k

Is it familiar to anyone? any ideas?
User Comments:
vasiljevic added on 2010-09-29 03:05:01:
I can confirm this. Not only that... I can confirm a *huge* memory leak in the
current HEAD. This is very very odd as when I last touched the code it
was leak-free. I need to debug this further in order to (re)find the culprit.

dgp added on 2010-11-17 02:49:32:
status?