Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6001fc3196fd75837f96cdaaf36c470633e2820c
Ticket: 1658572fffffffffffffffffffffffffffffffff
Heap corruption in interp.test
User & Date: twylite on 2007-03-26 14:35:25
Changes

  1. icomment:
    Logged In: YES 
    user_id=91629
    Originator: NO
    
    I will build and test later today.  
    
    Regarding the validity of the CallFrame, this is what I see (from Tcl_PopCallFrame in tclnamesp.c):
    
        nsPtr = framePtr->nsPtr;
        nsPtr->activationCount--;
    
    The decrement of the activationCount crashes with exception "0xC0000005: Access violation reading location 0x011c62d8."  At that point framePtr is 0x01176b10, and nsPtr is 0x011c6280.  All other fields in framePtr are 0 according to the debugger.
    
    From what I saw walking through with the debugger (don't have time to repeat that at the moment, it was lengthy) the value 0x011c6280 is not the original value of nsPtr, and it gets in there during a malloc() operation which is related to a different "interp delete" statement (the one that preceeds the statement that leads to the exception).
    
    
    
  2. login: "twylite"
  3. mimetype: "text/plain"
  4. username: "twylite"