Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5a3ff21b55ce0a5ae337512d8bd84f814f5f0b79
Ticket: 1083082fffffffffffffffffffffffffffffffff
Memory leak at startup
User & Date: pointsman on 2004-12-11 09:36:15
Changes

  1. icomment:
    Logged In: YES 
    user_id=13222
    
    Fixed now. Valgrind doesn't report any 'definitely lost'
    memory any more. With the 'exit trick' from 
    http://mini.net/tcl/3248, even the 'still reachable' are
    almost back to the low numbers of the late 8.4.x releases.
    I'm aware, that they are another topic and no real harm, but
    only noise. They are currently:
    
    ==27065== ERROR SUMMARY: 0 errors from 0 contexts
    (suppressed: 27 from 2)
    ==27065== malloc/free: in use at exit: 132 bytes in 4 blocks.
    ==27065== malloc/free: 5979 allocs, 5975 frees, 393983 bytes
    allocated.
    ==27065== For counts of detected errors, rerun with: -v
    ==27065== searching for pointers to 4 not-freed blocks.
    ==27065== checked 4660992 bytes.
    ==27065== 
    ==27065== 40 bytes in 1 blocks are still reachable in loss
    record 1 of 2
    ==27065==    at 0x4002811A: realloc (vg_replace_malloc.c:310)
    ==27065==    by 0x40251A6C: TclpRealloc
    (../generic/tclAlloc.c:733)
    ==27065==    by 0x402593F0: Tcl_Realloc
    (../generic/tclCkalloc.c:1101)
    ==27065==    by 0x402DC514: Tcl_SetObjLength
    (../generic/tclStringObj.c:777)
    ==27065==    by 0x4029C869: TclpNativeJoinPath
    (../generic/tclFileName.c:764)
    ==27065==    by 0x402CE485: Tcl_FSJoinPath
    (../generic/tclPathObj.c:993)
    ==27065==    by 0x4029C764: Tcl_FSJoinToPath
    (../generic/tclFileName.c:689)
    ==27065==    by 0x4028B3CC: InitializeEncodingSearchPath
    (../generic/tclEncoding.c:3083)
    ==27065==    by 0x402E6E04: TclGetProcessGlobalValue
    (../generic/tclUtil.c:2791)
    ==27065==    by 0x402880B1: TclGetEncodingSearchPath
    (../generic/tclEncoding.c:281)
    ==27065==    by 0x402881AC: MakeFileMap
    (../generic/tclEncoding.c:385)
    ==27065==    by 0x4028B4F0: InitializeEncodingFileMap
    (../generic/tclEncoding.c:3130)
    ==27065==    by 0x402E6E04: TclGetProcessGlobalValue
    (../generic/tclUtil.c:2791)
    ==27065==    by 0x40288FAF: LoadEncodingFile
    (../generic/tclEncoding.c:1344)
    ==27065==    by 0x4028869B: Tcl_GetEncoding
    (../generic/tclEncoding.c:669)
    ==27065==    by 0x402F49A5:
    TclpGetEncodingNameFromEnvironment (tclUnixInit.c:615)
    ==27065==    by 0x402F48E6: TclpSetInitialEncodings
    (tclUnixInit.c:581)
    ==27065==    by 0x40288F51: Tcl_FindExecutable
    (../generic/tclEncoding.c:1305)
    ==27065==    by 0x402BBD4A: Tcl_Main (../generic/tclMain.c:339)
    ==27065==    by 0x8048705: main (tclAppInit.c:87)
    ==27065== 
    ==27065== 
    ==27065== 92 bytes in 3 blocks are still reachable in loss
    record 2 of 2
    ==27065==    at 0x40027B98: malloc (vg_replace_malloc.c:153)
    ==27065==    by 0x40251A1D: TclpAlloc
    (../generic/tclAlloc.c:685)
    ==27065==    by 0x402592E5: Tcl_Alloc
    (../generic/tclCkalloc.c:1018)
    ==27065==    by 0x402DBEBC: Tcl_NewStringObj
    (../generic/tclStringObj.c:211)
    ==27065==    by 0x402CE218: Tcl_FSJoinPath
    (../generic/tclPathObj.c:910)
    ==27065==    by 0x4029C764: Tcl_FSJoinToPath
    (../generic/tclFileName.c:689)
    ==27065==    by 0x4028B3CC: InitializeEncodingSearchPath
    (../generic/tclEncoding.c:3083)
    ==27065==    by 0x402E6E04: TclGetProcessGlobalValue
    (../generic/tclUtil.c:2791)
    ==27065==    by 0x402880B1: TclGetEncodingSearchPath
    (../generic/tclEncoding.c:281)
    ==27065==    by 0x402881AC: MakeFileMap
    (../generic/tclEncoding.c:385)
    ==27065==    by 0x4028B4F0: InitializeEncodingFileMap
    (../generic/tclEncoding.c:3130)
    ==27065==    by 0x402E6E04: TclGetProcessGlobalValue
    (../generic/tclUtil.c:2791)
    ==27065==    by 0x40288FAF: LoadEncodingFile
    (../generic/tclEncoding.c:1344)
    ==27065==    by 0x4028869B: Tcl_GetEncoding
    (../generic/tclEncoding.c:669)
    ==27065==    by 0x402F49A5:
    TclpGetEncodingNameFromEnvironment (tclUnixInit.c:615)
    ==27065==    by 0x402F48E6: TclpSetInitialEncodings
    (tclUnixInit.c:581)
    ==27065==    by 0x40288F51: Tcl_FindExecutable
    (../generic/tclEncoding.c:1305)
    ==27065==    by 0x402BBD4A: Tcl_Main (../generic/tclMain.c:339)
    ==27065==    by 0x8048705: main (tclAppInit.c:87)
    ==27065==    by 0x4035D8AD: __libc_start_main (in
    /lib/libc.so.6)
    ==27065== 
    ==27065== LEAK SUMMARY:
    ==27065==    definitely lost: 0 bytes in 0 blocks.
    ==27065==    possibly lost:   0 bytes in 0 blocks.
    ==27065==    still reachable: 132 bytes in 4 blocks.
    ==27065==         suppressed: 0 bytes in 0 blocks.
    ==27065== 
    
    
    
  2. login: "pointsman"
  3. mimetype: "text/plain"
  4. username: "pointsman"