Artifacts Associated With Ticket 77f0dbc0f8234ace
Ticket change [ed329d62c0] (rid 155223) by danckaert on 2017-07-26 12:00:05:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
When running the following code: <pre> interp create slave interp alias slave foo {} master_foo proc master_foo {arg} {} proc run_in_slave {s} { try { interp eval slave $s } on error {msg options} { puts $options } } catch {error "catched error"} run_in_slave {foo} </pre> The output is: <pre> -errorstack {INNER {returnImm {catched error} {}} CALL {run_in_slave foo}} -errorcode {TCL WRONGARGS} -errorinfo {wrong # args: should be "foo arg" invoked from within "foo" invoked from within "interp eval slave $s"} -errorline 3 -code 1 -level 0 </pre> The INNER part int the errorstack refers to a previous error which had already been catched and should not be present anymore. Note that -errorinfo and -errorcode are correct however. - foundin initialized to: "8.6.6"
- is_private initialized to: "0"
- login: "danckaert"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "danckaert"
- subsystem initialized to: "20. [interp]"
- title initialized to: "Wrong errorstack when using slave interp"
- type initialized to: "Bug"
Ticket change [0e10381220] (rid 155224) by aspect on 2017-07-27 14:46:03:
- 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. - login: "aspect"
- mimetype: "text/plain"
- icomment:
Ticket change [529ad7e9b9] (rid 155225) by danckaert on 2017-07-31 08:58:15:
- icomment:
With that change, the errorstack only contains CALL {run_in_slave foo}, but it should also contain an INNER {invokeStk1 foo} part, I think. - login: "danckaert"
- mimetype: "text/plain"
- icomment: