Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0e103812204d5345732d9967cbd279a101a57b49
Ticket: 77f0dbc0f8234ace6f613a37831d33fa5407ad63
Wrong errorstack when using slave interp
User & Date: aspect on 2017-07-27 14:46:03
Changes

  1. icomment:
    This might come from Tcl_GetReturnOptions() not respecting resetErrorStack -
    when it grabs the error stack from the master, the stale error stack gets
    captured and sent into the slave.
    
    https://core.tcl.tk/tcl/artifact/0947f3566cd3dbab?ln=1625
    
    Replacing that line with the following seems to clear it up:
    
            if (iPtr->resetErrorStack) {
                Tcl_DictObjPut(NULL, options, keys[KEY_ERRORSTACK], Tcl_NewListObj(NULL, 0));
            } else {                                  
                Tcl_DictObjPut(NULL, options, keys[KEY_ERRORSTACK], iPtr->errorStack);
            }
    
    
    .. but I don't understand why an alias back into the master is needed to
    observe this; someone who knows better should check.
    
  2. login: "aspect"
  3. mimetype: "text/plain"