Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4fcb8fd59ed46691342bb36fc9f6c560c00387ec
Ticket: 1083082fffffffffffffffffffffffffffffffff
Memory leak at startup
User & Date: pointsman on 2004-12-11 02:35:53
Changes

  1. icomment:
    Logged In: YES 
    user_id=13222
    
    Tested with the patch. Looks like sill not clean. 
    
    Now valgrind reports:
    
    ==22390== ERROR SUMMARY: 0 errors from 0 contexts
    (suppressed: 27 from 2)
    ==22390== malloc/free: in use at exit: 272 bytes in 10 blocks.
    ==22390== malloc/free: 5979 allocs, 5969 frees, 393962 bytes
    allocated.
    ==22390== For counts of detected errors, rerun with: -v
    ==22390== searching for pointers to 10 not-freed blocks.
    ==22390== checked 4661072 bytes.
    ==22390== 
    ==22390== 48 bytes in 2 blocks are definitely lost in loss
    record 1 of 3
    ==22390==    at 0x40027B98: malloc (vg_replace_malloc.c:153)
    ==22390==    by 0x40251A1D: TclpAlloc
    (../generic/tclAlloc.c:685)
    ==22390==    by 0x402592E5: Tcl_Alloc
    (../generic/tclCkalloc.c:1018)
    ==22390==    by 0x402DBD38: Tcl_NewStringObj
    (../generic/tclStringObj.c:211)
    ==22390==    by 0x40288E6E: LoadEncodingFile
    (../generic/tclEncoding.c:1338)
    ==22390==    by 0x4028857B: Tcl_GetEncoding
    (../generic/tclEncoding.c:669)
    ==22390==    by 0x4028884B: Tcl_SetSystemEncoding
    (../generic/tclEncoding.c:870)
    ==22390==    by 0x402F476D: TclpSetInitialEncodings
    (tclUnixInit.c:581)
    ==22390==    by 0x40288E31: Tcl_FindExecutable
    (../generic/tclEncoding.c:1305)
    ==22390==    by 0x402BBC12: Tcl_Main (../generic/tclMain.c:339)
    ==22390==    by 0x8048705: main (tclAppInit.c:87)
    ==22390==    by 0x4035D8AD: __libc_start_main (in
    /lib/libc.so.6)
    ==22390==    by 0x8048630: (within
    /usr/local/tcl-head/bin/tclsh8.5)
    ==22390== 
    ==22390== LEAK SUMMARY:
    ==22390==    definitely lost: 48 bytes in 2 blocks.
    ==22390==    possibly lost:   0 bytes in 0 blocks.
    ==22390==    still reachable: 224 bytes in 8 blocks.
    ==22390==         suppressed: 0 bytes in 0 blocks.
    
    
    
  2. login: "pointsman"
  3. mimetype: "text/plain"
  4. username: "pointsman"