Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3e1359e670ce20dd2d9d25eaca1acbbc025d92c09040f89d676e3a51225afdcd
Ticket: fa6bf38d0728fbc7c7146f798ce0e3e35c70146c
Execution of byte-code with recompile in-between breaks normal execution flow (e. g. disregards "return" or "break" commands).
User & Date: sebres on 2019-08-26 14:02:29
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Execution of byte-code disregards "return" command if some command or proc before would bump compiler epoch (cause recompile of a code in-between).
    
    PoC:
    <code><pre style="padding-left:10pt">
    set i [interp create]
    $i eval {proc _recompile_ {} {rename set __set; rename __set set}}
    $i eval {puts A;              puts B; return; puts C}
    $i eval {puts A; _recompile_; puts B; return; puts C}
    </pre></code>
    
    The last eval does not return before puts C.
    
  5. foundin changed to: ">= 8.6"
  6. is_private changed to: "0"
  7. login: "sebres"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Critical"
  11. status changed to: "Open"
  12. submitter changed to: "sebres"
  13. subsystem changed to: "47. Bytecode Compiler"
  14. title changed to:
    Execution of byte-code with recompile in-between disregards "return" command.
    
  15. type changed to: "Bug"