Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7d904fb6e8b6a5308373b68c36b5b84b700f7613
Ticket: 733126ffffffffffffffffffffffffffffffffff
Memory leak while creating and deleting interpreters
User & Date: nobody on 2003-05-06 07:44:49
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I am using TCL 8.3.1. Recently when I was trying to corner a memory leak 
    issue it was found that the leak was occurring in the TCL library while 
    creating and deleting interpreters. The following is the stack traces
    of the leak from purify.
    
    Platform : Solaris 2.8
    
    
    >>>>
    MLK: 512 bytes leaked in 16 blocks
      * This memory was allocated from:
            malloc         [rtlib.o]
            TclpAlloc      [tclAlloc.c:671]
            Tcl_Alloc      [tclCkalloc.c:846]
            Tcl_GetThreadData [tclThread.c:101]
            Tcl_CreateChannel [tclIO.c:937]
            TclpOpenFileChannel [tclUnixChan.c:1375]
      * Block of 32 bytes (16 times); last block at 0xdbcd38
    
    MLK: 476 bytes leaked in 17 blocks
      * This memory was allocated from:
            malloc         [rtlib.o]
            TclpAlloc      [tclAlloc.c:671]
            Tcl_Alloc      [tclCkalloc.c:846]
            Tcl_GetThreadData [tclThread.c:101]
            InitTimer      [tclTimer.c:158]
            Tcl_DeleteTimerHandler [tclTimer.c:296]
      * Block of 28 bytes (17 times); last block at 0xddd3e8
    
    MLK: 340 bytes leaked in 17 blocks
      * This memory was allocated from:
            malloc         [rtlib.o]
            TclpAlloc      [tclAlloc.c:671]
            Tcl_Alloc      [tclCkalloc.c:846]
            Tcl_GetThreadData [tclThread.c:101]
            Tcl_AsyncReady [tclAsync.c:331]
            EvalObjv       [tclParse.c:934]
      * Block of 20 bytes (17 times); last block at 0xdf3980
    
    MLK: 204 bytes leaked in 17 blocks
      * This memory was allocated from:
            malloc         [rtlib.o]
            TclpAlloc      [tclAlloc.c:671]
            Tcl_Alloc      [tclCkalloc.c:846]
            Tcl_CreateThreadExitHandler [tclEvent.c:493]
            InitTimer      [tclTimer.c:160]
            Tcl_DeleteTimerHandler [tclTimer.c:296]
      * Block of 12 bytes (17 times); last block at 0xdf3430
    
    MLK: 204 bytes leaked in 17 blocks
      * This memory was allocated from:
            malloc         [rtlib.o]
            TclpAlloc      [tclAlloc.c:671]
            Tcl_Alloc      [tclCkalloc.c:846]
            Tcl_GetThreadData [tclThread.c:101]
            TclInitSubsystems [tclEvent.c:738]
            Tcl_CreateInterp [tclBasic.c:281]
      * Block of 12 bytes (17 times); last block at 0xdb0d30
    
    MLK: 68 bytes leaked in 17 blocks
      * This memory was allocated from:
            malloc         [rtlib.o]
            TclpAlloc      [tclAlloc.c:671]
            Tcl_Alloc      [tclCkalloc.c:846]
            Tcl_GetThreadData [tclThread.c:101]
            TclpOpenFileChannel [tclUnixChan.c:1296]
            Tcl_OpenFileChannel [tclIOUtil.c:556]
      * Block of 4 bytes (17 times); last block at 0xcec828
    
    MLK: 32 bytes leaked at 0xcc4ed0
      * This memory was allocated from:
            malloc         [rtlib.o]
            TclpAlloc      [tclAlloc.c:671]
            Tcl_Alloc      [tclCkalloc.c:846]
            Tcl_GetThreadData [tclThread.c:101]
            TclInitIOSubsystem [tclIO.c:161]
            TclInitSubsystems [tclEvent.c:724]
    
    
    <<<<
    
    
    
  4. foundin changed to: "obsolete: 8.3.1"
  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: "None"
  10. title changed to:
    Memory leak while creating and deleting interpreters
    
  11. type changed to: "Bug"