Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b4e40a8ba9e27dbe171d7acf73ff470d17a3e5dd
Ticket: 3396948fffffffffffffffffffffffffffffffff
ThreadReflectedChannelMap leak
User & Date: dgp on 2011-08-23 15:41:29
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    $ cat leak.tcl
        proc foo {args} {return {initialize finalize watch read}}
        close [chan create r foo]
    $ valgrind --leak-check=yes ./tclsh leak.tcl
    ...
    ==29335== 88 bytes in 1 blocks are definitely lost in loss record 16 of 20
    ==29335==    at 0x4A05E1C: malloc (vg_replace_malloc.c:195)
    ==29335==    by 0x49FA82: TclpAlloc (tclAlloc.c:705)
    ==29335==    by 0x4B1086: Tcl_Alloc (tclCkalloc.c:1046)
    ==29335==    by 0x426520: GetThreadReflectedChannelMap (tclIORChan.c:2573)
    ==29335==    by 0x4244A6: TclChanCreateObjCmd (tclIORChan.c:720)
    ==29335==    by 0x4A51B4: TclNREvalObjv (tclBasic.c:4273)
    ==29335==    by 0x4A7CBC: TclNREvalObjEx (tclBasic.c:5984)
    ==29335==    by 0x4AAA9C: Tcl_NREvalObj (tclBasic.c:8181)
    ==29335==    by 0x5235DA: NsEnsembleImplementationCmdNR (tclEnsemble.c:1858)
    ==29335==    by 0x4A550E: NRRunObjProc (tclBasic.c:4366)
    ==29335==    by 0x4A52DF: TclNRRunCallbacks (tclBasic.c:4315)
    ==29335==    by 0x4A4CFE: Tcl_EvalObjv (tclBasic.c:4107)
    
    
  4. foundin changed to: "obsolete: 8.6b2"
  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: "dgp"
  10. subsystem changed to: "25. Channel System"
  11. title changed to: "ThreadReflectedChannelMap leak"
  12. type changed to: "Bug"