Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ad9c879906de337031855fa418ae82bc15447bf8
Ticket: 2946129fffffffffffffffffffffffffffffffff
Wrong frame in bytecode
User & Date: eugene_cdn on 2010-02-04 19:56:37
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl version: 8.5.5.
    OS: Linux RedHat 5 & Solaris 10
    
    Compilation of a script with active Async handler and non-trivial script executed by Async handler may cause generating bytecode with wrong variable frame. In attached example, compilation of "if" statement with constants in a regular procedure will call Tcl_AsyncInvoke.  Then compilation of subsequent procedures called by Async will be in unpredictable frame: main body will be compiled in right frame but body of switch will be compiled in the frame of original synchronous procedure. You will see an error:
        can't read "abc(xyz)": variable isn't array.
    
  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: "eugene_cdn"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "Wrong frame in bytecode"
  12. type changed to: "Bug"