Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a845e050a5a05fcb2c83d2ac13239bafaaea486a
Ticket: 571385ffffffffffffffffffffffffffffffffff
segfaults in execution tracing.
User & Date: dgp on 2002-06-19 23:52:28
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    assigning to co-author of TIP 62, which introduced this
    bug.
    
    I see a segfault in line 4036 of tclCmdMZ.c, apparently due
    to an attempt to access tracePtr->nextPtr in a situation
    where tracePtr is NULL.
    
    But that's just the beginning...
    
    My code that triggers the segfault is not making use
    of execution traces, so it has no business being in
    TclCheckExecutionTraces() to begin with.
    
    It's getting there from line 3023 of tclBasic.c by mistake.
    Line 3022 checks the value of
    
        (cmdPtr->flags & CMD_HAS_EXEC_TRACES)
    
    but in my situation cmdPtr is no longer valid because
    execution of the command had caused redefinition
    of the command, something like:
    
        proc foo {} {
            proc foo {} {puts NEW}
            uplevel 1 foo
        }
    
    still looking at this to see if I can sort it out.  The
    logic of
    the trace routines is not transparent.  More comments
    would be helpful.
    
  4. foundin changed to: "obsolete: 8.4a5"
  5. priority changed to: "8"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "segfaults in execution tracing."
  11. type changed to: "Bug"