Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 264cd6024e7b94c62220a23c27adcbe87b9e0b5f
Ticket: 1959637fffffffffffffffffffffffffffffffff
Problems with caching of resolution of [my init]
User & Date: kennykb on 2008-05-12 08:20:47
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    Originator: YES
    
    Against todays HEAD of tclOO, all tests that I expect to 
    pass are passing on Ubuntu, while crashing on Windows with 
    a panic "expected to create new entry for object map"
    
    dkf advised me that Valgrind output is necessary for the 
    next round of bug-hunting, and indeed even the Ubuntu
    version (which appears to run "normally" has a read of
    freed storage (first appearing in tdbcsqlite3-1.4).
    
    The stack traces that Valgrind is reporting are
    
    ==3378== 
    ==3378== Invalid read of size 4
    ==3378==    at 0x4F9AF8A: TclOOGetCallContext (tclOOCall.c:680)
    ==3378==    by 0x4F97D53: TclOOObjectCmdCore (tclOO.c:1903)
    ==3378==    by 0x4F979FE: PrivateObjectCmd (tclOO.c:1800)
    ==3378==    by 0x404F1EA: TclEvalObjvInternal (tclBasic.c:3645)
    ==3378==    by 0x40AD0EA: TclExecuteByteCode (tclExecute.c:2327)
    ==3378==    by 0x4119AA6: TclObjInterpProcCore (tclProc.c:1721)
    ==3378==    by 0x4FA306B: InvokeProcedureMethod (tclOOMethod.c:730)
    ==3378==    by 0x4F9A768: TclOOInvokeContext (tclOOCall.c:219)
    ==3378==    by 0x4F966A7: Tcl_NewObjectInstance (tclOO.c:1243)
    ==3378==    by 0x4F98180: ClassCreate (tclOO.c:2034)
    ==3378==    by 0x4FA261A: BasicMethodInvoke (tclOOMethod.c:323)
    ==3378==    by 0x4F9A768: TclOOInvokeContext (tclOOCall.c:219)
    ==3378==  Address 0x53528C4 is 76 bytes inside a block of size 116 free'd
    ==3378==    at 0x402237F: free (vg_replace_malloc.c:233)
    ==3378==    by 0x404A987: TclpFree (tclAlloc.c:729)
    ==3378==    by 0x405725A: Tcl_DbCkfree (tclCkalloc.c:633)
    ==3378==    by 0x411701C: Tcl_Release (tclPreserve.c:230)
    ==3378==    by 0x4F94BBC: ObjectRenamedTrace (tclOO.c:582)
    ==3378==    by 0x404E11F: CallCommandTraces (tclBasic.c:2914)
    ==3378==    by 0x404DDC0: Tcl_DeleteCommandFromToken (tclBasic.c:2737)
    ==3378==    by 0x404D553: TclRenameCommand (tclBasic.c:2238)
    ==3378==    by 0x40680A5: Tcl_RenameObjCmd (tclCmdMZ.c:858)
    ==3378==    by 0x404F1EA: TclEvalObjvInternal (tclBasic.c:3645)
    ==3378==    by 0x40AD0EA: TclExecuteByteCode (tclExecute.c:2327)
    ==3378==    by 0x40AA545: TclCompEvalObj (tclExecute.c:1473)
    
    
    
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"