Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 345d073844db42db9bbc658c957db0121a6d9028
Ticket: 527164ffffffffffffffffffffffffffffffffff
::errorInfo lost in variable traces
User & Date: dgp on 2002-03-29 00:19:46
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    OK, the patched Call Traces will now preserve
    any stack trace info that's already in ::errorInfo.
    
    The problem is that TraceVarProc calls
    Tcl_RestoreResult which in turn calls
    Tcl_ResetResult.  This destroys all stack
    information in ::errorInfo before control
    ever gets back to CallTraces.
    
    Note sure whether this can be fixed.  The calls
    to Tcl_SaveResult and Tcl_RestoreResult in
    TraceVarProc could be removed, but that might
    break the interface of traces.  Tcl_RestoreResult
    could be changed to not call Tcl_ResetResult, but
    that also might be an incompatible interface change.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"