Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 34538b600e7382fc2834d7597ab3c6da4954b9b8
Ticket: 1337941fffffffffffffffffffffffffffffffff
TclCheckExecutionTraces incompatible with Tcl_TraceCommand
User & Date: jhdv on 2005-10-26 00:08:26
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    TclCheckExecutionTraces() assumes that
    tracePtr->clientData points to a TraceCommandInfo
    struct.  This is not the case if, say,
    Tcl_TraceCommand() was called to set up a trace from
    user code.
    
    Example:  User code calls
    
    Tcl_TraceCommand(interp,"list",TCL_TRACE_RENAME,traceProc,(ClientData)NULL);
    
    and then, from the interpreter:
    
    proc >> args {puts [info level 0]}
    trace add execution list enter >>
    list
    
    This leads to a segfault in TclCheckExecutionTraces().
    
    A solution that appears to work for me is to make the
    assumption above only when tracePtr->traceProc ==
    TraceCommandProc.
    
    Patch against CVS version 1.26 of tclTrace.c is attached.
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jhdv"
  9. subsystem changed to: "46. Traces"
  10. title changed to:
    TclCheckExecutionTraces incompatible with Tcl_TraceCommand
    
  11. type changed to: "Bug"