Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b4b23d63fd3ccb6963e0044fc760d0046731de2a
Ticket: 987512ffffffffffffffffffffffffffffffffff
mem-leak in thread::send -async
User & Date: nobody on 2004-07-08 19:38:31
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    hi, I hope, this is a bug and is not work as designed :=)
    
    this testscript confiscated over 9MByte Ram. the
    call thread::send -async send 385 Bytes to the thread and
    after 25000 calls, the thread use ~9300 KByte memory
    (offset) ! after I release the thread, the memory will
    not be freed. if I send the script without -async, all
    memory will be 
    freed.
    
    I have make the test with the current cvs snap-shot 
    changelog -> R1.2132, Wed Jul 7 22:05:56 2004
    on a linux 2.6.7 i386 & ppc system, with & without
    USE_THREAD_ALLOC in the CFLAG.
    
    before som days, i have posted a problem in the
    tcl-thread-list, i think, it is the same problem. 
    
    regards, joerg 
    
    set ::Thread {
      proc TestProc {args} {
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        set x "xxxxxxxxxxxxxxxxxxxxxxxx"
        return 0
      }
      TestProc
    }
    
    set thid [thread::create "thread::wait"]
    for {set ni 0} {$ni < 25000} {incr ni} {thread::send
    -async $thid $::Thread}
    thread::send $thid -async "thread::release"
    
    vwait forever
    
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "80. Thread Package"
  10. title changed to: "mem-leak in thread::send -async "
  11. type changed to: "Bug"