Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a0ac01685a19e1d759d2b665cd3e982e75496ebc
Ticket: 1705778fffffffffffffffffffffffffffffffff
valgrind error reports
User & Date: kennykb on 2007-04-24 09:08:30
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    Originator: NO
    
    One leak relates to the 'args' argument to a variadic procedure.
    The argument is not leaked consistently.  In testing ioCmd.test,
    I discovered that the first test case leaking 'args' is
    ioCmd-21.8.
    
    The direct leak does not appear to be 'args', however; it's
    
    ==30055== 26 (24 direct, 2 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 5
    ==30055==    at 0x401B6FE: malloc (vg_replace_malloc.c:149)
    ==30055==    by 0x4042029: TclpAlloc (tclAlloc.c:710)
    ==30055==    by 0x404C3D1: Tcl_Alloc (tclCkalloc.c:1019)
    ==30055==    by 0x40BF8D4: TclRegisterLiteral (tclLiteral.c:348)
    ==30055==    by 0x407F890: TclCompileTokens (tclCompile.c:1840)
    ==30055==    by 0x406DB4B: TclCompileReturnCmd (tclCompCmds.c:3149)
    ==30055==    by 0x407E1B3: TclCompileScript (tclCompile.c:1525)
    ==30055==    by 0x407C669: TclSetByteCodeFromAny (tclCompile.c:493)
    ==30055==    by 0x407C858: SetByteCodeFromAny (tclCompile.c:588)
    ==30055==    by 0x40DCCAE: ProcCompileProc (tclProc.c:1781)
    ==30055==    by 0x40DC117: ObjInterpProcEx (tclProc.c:1237)
    ==30055==    by 0x40DC015: TclObjInterpProc (tclProc.c:1199)
    
    which is rather a different spot than what we've seen up to now.
    I suspect that there is a more subtle memory mismanagement issue
    that causes the apparent leak to be a Heisenbug.
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"