Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ed329d62c022e98c4941df3e56240d8691f14295
Ticket: 77f0dbc0f8234ace6f613a37831d33fa5407ad63
Wrong errorstack when using slave interp
User & Date: danckaert on 2017-07-26 12:00:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed 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.
    
  5. foundin changed to: "8.6.6"
  6. is_private changed to: "0"
  7. login: "danckaert"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "danckaert"
  13. subsystem changed to: "20. [interp]"
  14. title changed to: "Wrong errorstack when using slave interp"
  15. type changed to: "Bug"