Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 17c8a9dc1f56899c774576ae2049368101ffdf45
Ticket: 760947ffffffffffffffffffffffffffffffffff
trace on command leave changes errorInfo/errorCode
User & Date: dgp on 2003-10-09 03:58:33
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    seems it's even worse that that.
    While execution traces are
    handled completely within
    TclEvalObjvInternal(), the
    management of errorCode
    and errorInfo is all over the
    place, so simple attempt to
    fix this do not even work.
    The real culprit may be
    the Tcl_ResetResult()
    embedded inside the execution
    of the leave traces, which cause
    the errorInfo and errorCode
    machinery to get reset,
    upsetting the expectations
    of the [error] command,
    which wants Tcl_LogCommandInfo
    to respect the ERR_ALREADY_LOGGED
    and ERROR_CODE_SET
    flags that it set.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"