Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 36a4d24dfddbf5dcb2af4414e603e06f2c2d0808
Ticket: 597936ffffffffffffffffffffffffffffffffff
leak in new thread allocator
User & Date: msofer on 2002-08-22 22:03:02
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Mmhh ... seems to be related to tclsh not cleaning up
    properly on exit - in particular, the encoding stuff. I
    could detect where the leak is with valgrind; the leaked mem
    was created from
    
    ==7357==    at 0x400467C4: malloc (vg_clientfuncs.c:100)
    ==7357==    by 0x805D430: TclThreadAllocObj (in
    /CVS/tcl_SF_clean/unix/tclsh)
    ==7357==    by 0x8055F87: Tcl_NewObj (in
    /CVS/tcl_SF_clean/unix/tclsh)
    ==7357==    by 0x80657C8: TclpInitLibraryPath (in
    /CVS/tcl_SF_clean/unix/tclsh)
    ==7357==    by 0x8089693: TclFindEncodings (in
    /CVS/tcl_SF_clean/unix/tclsh)
    ==7357==    by 0x8087C28: Tcl_FindExecutable (in
    /CVS/tcl_SF_clean/unix/tclsh)
    ==7357==    by 0x805508A: Tcl_Main (in
    /CVS/tcl_SF_clean/unix/tclsh)
    ==7357==    by 0x8054EE7: main (in /CVS/tcl_SF_clean/unix/tclsh)
    ==7357==    by 0x4029E627: __libc_start_main
    (../sysdeps/generic/libc-start.c:129)
    ==7357==    by 0x8054DE1: strcpy@@GLIBC_2.0 (in
    /CVS/tcl_SF_clean/unix/tclsh)
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"