Skip to content
Tcl Source Code History Of Ticket 1706058
Login

History Of Ticket 1706058

Artifacts Associated With Ticket 1706058

  1. Ticket change [64708928c7] (rid 92772) by rkeene on 2007-04-23 18:14:10:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "rkeene"
    10. subsystem initialized to: "41. Memory Allocation"
    11. title initialized to: "Possible Memory Leak (with Threads?)"
    12. type initialized to: "Bug"
  2. Ticket change [48fe108f51] (rid 99993) by rkeene on 2007-04-24 01:21:15:

    1. 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
      
      
    2. login: "rkeene"
    3. mimetype: "text/plain"
    4. username: "rkeene"
  3. Ticket change [d42244a87e] (rid 123398) by hobbs on 2007-06-11 04:18:24:

    1. assignee changed to: "vasiljevic"
    2. priority changed to: "6"
  4. Ticket change [6602199a4f] (rid 102643) by vasiljevic on 2007-06-30 20:40:21:

    1. 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. 
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  5. Ticket change [943320adf8] (rid 105945) by vasiljevic on 2007-06-30 20:42:38:

    1. 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. 
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  6. Ticket change [f758efbb5f] (rid 91362) by vasiljevic on 2007-06-30 20:44:00:

    1. closedate changed to: "2007-06-30T13:44:00"
    2. closer changed to: "vasiljevic"
    3. icomment:
      Logged In: YES 
      user_id=95086
      Originator: NO
      
      Will close this one as being a duplicate of 
      Bug #1603234.
      
      
    4. login: "vasiljevic"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "vasiljevic"