Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4dddd855e9e7c41088bf80e4765af08921b625a9
Ticket: 571385ffffffffffffffffffffffffffffffffff
segfaults in execution tracing.
User & Date: vincentdarley on 2002-06-20 17:58:25
Changes

  1. icomment:
    Logged In: YES 
    user_id=32170
    
    Looks as if something like the logic which is applied 20 
    lines up needs to be applied, but we still need 
    the 'cmdPtr' to be around.  I think we need to 
    Tcl_Preserve the cmdPtr, if traces are going to be called, 
    and then Tcl_Release afterwards.
    
    Not sure if the correct afterwards test is to check 
    if 'cmdPtr->cmdEpoch' has changed or if cmdPtr has 
    been deleted.  I think the latter is the right one (cmdPtr-
    >flags & CMD_IS_DELETED).  Partly this decision 
    depends on the desired semantics of execution traces 
    when the command is modified.  According to tclInt.h, 
    cmdPtr->cmdEpoch is incremented when the command 
    is renamed, deleted, hidden, or exposed.  What do we 
    want execution traces to do in these cases?
    
    Vince.
    
    
    
    I think Hemang ought to take a look at this, since he's 
    been examining the trace code recently, while I haven't 
    looked at it in a very long time (1 year +).
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"