Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ab769edc3906c5900101d101b33076ab7100427c
Ticket: 2777803fffffffffffffffffffffffffffffffff
memory leak in ttrace
User & Date: melbardis on 2009-04-21 19:44:23
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    there appears to be a memory leak when sourcing ttrace.tcl.
    
    namespace eval ttrace {
            ...
            variable mutex thread::mutex
            variable elock [$mutex create]
    ...}
    
    
    the mutex elock is never released when the thread & interpreter are recycled (i am using websh).
    
    i added a specific mutex destroy comand in the ttrace::cleanup procedure which solved the leak. but i don't think this is correct..
    
    i am using the latest thread from the cvs repository, with changes to replace Tcl_Alloc with ckalloc...
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "melbardis"
  10. subsystem changed to: "80. Thread Package"
  11. title changed to: "memory leak in ttrace"
  12. type changed to: "Bug"