Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7180fbcacdf3c7a9d5b6b70b9ea907567c495bbc
Ticket: 3059758fffffffffffffffffffffffffffffffff
tclTraceExec==3 : wrong pc+INST on uncaught error return
User & Date: ferrieux on 2010-09-05 10:14:14
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When tracing instructions (tclTraceExec==3), returns from procedure calls typically look like:
    
           ... no enclosing catch, returning TCL_OK
        LEVEL:  DEPTH (PC) INST args => ... after "PROCNAME": TCL_OK, result="1"
    
    where PC and INST/args are the position and instruction to be executed just after the return.
    However, when the return code is not TCL_OK, the PC is off by one, and is the last byte of the previous instruction (typically invokeXXX), and consequently the INST is random (possibly an immediate operand interpreted as an opcode):
    
       ... no enclosing catch, returning TCL_ERROR
     LEVEL:  DEPTH (WRONG PC) WRONG INST => TCL_ERROR, result= "..."
    
    Of course this is a very tiny issue, but tracing instructions accurately is key to understanding the delicate operation of TEBC, and this microbug has been annoying in the course of the investigation of Patch 2995655. The fix/insight could help both.
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ferrieux"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to:
    tclTraceExec==3 : wrong pc+INST on uncaught error return
    
  12. type changed to: "Bug"