Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 49f590a9842563522ea26f989e30b343e28c3cac
Ticket: 2433843fffffffffffffffffffffffffffffffff
return options can leak to next bytecode
User & Date: dgp on 2008-12-16 16:41:41
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % proc demo {} {
        return -level 0 -code ok -leaky option
        set x
    }
    % catch demo m o
    1
    % set o
    -leaky option -code 1 -level 0 -errorcode NONE -errorinfo {can't read "x": no such variable
        while executing
    "set x"
        (procedure "demo" line 3)
        invoked from within
    "demo"} -errorline 1
    % info patch
    8.5.5
    
    
    Problem appears to be that all commands
    returning TCL_OK bypass any (emulation of)
    Tcl_ResetResult() on the theory that results
    are managed on the execution stack so long
    as bytecode is in control.  This means
    resetting of the return options dict gets
    skipped.
    
  4. foundin changed to: "obsolete: 8.5.5"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "return options can leak to next bytecode"
  12. type changed to: "Bug"