Artifacts Associated With Ticket 1706058
Ticket change [64708928c7] (rid 92772) by rkeene on 2007-04-23 18:14:10:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
#! /home/rkeene/devel/spamgateway/work/tcl8.4.14/INST/bin/tclsh8.4 # This seems to leak memory if I do: # for i in `seq 1 3000`; do telnet localhost 8931 & done # The more times I run the above loop, the larger the "RES" section for the process under "top" becomes. package require Thread 2.6.5 set workers_idx 0 for {set i 0} {$i < 20} {incr i} { lappend workers [thread::create { proc HandleConnection_worker {sock addr port} { close $sock } thread::wait }] } proc HandleConnection {sock addr port} { after idle [list _HandleConnection $sock $addr $port] } proc _HandleConnection {sock addr port} { set tid [lindex $::workers $::workers_idx] set ::workers_idx [expr ($::workers_idx + 1) % [llength $::workers]] thread::transfer $tid $sock thread::send -async $tid [list HandleConnection_worker $sock $addr $port] } socket -server HandleConnection 8931 thread::wait - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "rkeene"
- subsystem initialized to: "41. Memory Allocation"
- title initialized to: "Possible Memory Leak (with Threads?)"
- type initialized to: "Bug"
Ticket change [48fe108f51] (rid 99993) by rkeene on 2007-04-24 01:21:15:
- icomment:
Logged In: YES user_id=180948 Originator: YES This occurs on Linux 2.6 with Tcl v8.4.14 and Threads v2.6.5
- login: "rkeene"
- mimetype: "text/plain"
- username: "rkeene"
- icomment:
Ticket change [d42244a87e] (rid 123398) by hobbs on 2007-06-11 04:18:24:
- assignee changed to: "vasiljevic"
- priority changed to: "6"
Ticket change [6602199a4f] (rid 102643) by vasiljevic on 2007-06-30 20:40:21:
- icomment:
Logged In: YES user_id=95086 Originator: NO I can comfirm this. Amount of leaked memory is small and it appears only when transfering the socket into the other thread.
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"
- icomment:
Ticket change [943320adf8] (rid 105945) by vasiljevic on 2007-06-30 20:42:38:
- icomment:
Logged In: YES user_id=95086 Originator: NO I can comfirm this. Amount of leaked memory is small and it appears only when transfering the socket into the other thread.
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"
- icomment:
Ticket change [f758efbb5f] (rid 91362) by vasiljevic on 2007-06-30 20:44:00:
- closedate changed to: "2007-06-30T13:44:00"
- closer changed to: "vasiljevic"
- icomment:
Logged In: YES user_id=95086 Originator: NO Will close this one as being a duplicate of Bug #1603234.
- login: "vasiljevic"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "vasiljevic"