Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fa61bb139cf381b5696b26123187c37d8ee8618f
Ticket: 986651ffffffffffffffffffffffffffffffffff
Inifinite loop a/w bad code in while body
User & Date: roylane on 2004-07-07 15:23:09
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I've documented the problem, including a simple code
    example, in the attached file.  The code example
    contains an error within a while loop.  When the code
    is run, Tcl goes into an infinite loop.  The bytecode
    compiler detects the error when trying to inline
    compile the while body and it attempts to back out and
    switch to outline compile.  However, a fragment of the
    compiled bytecode for the while remains and this is
    what causes the infinite loop.
    
    This isn't a major problem because this occurs when
    there's an error in user code and it only occurs under
    certain conditions.    The problem is that when a user
    hits this (like me), there's no clue as to what's going
    on.  I thought it would be useful to document this and
    perhaps there's a simple fix.
    
    Tcl 8.4.6
    Red Hat Linux (kernel 2.4.9)
    (same behavior on Windows, as would be expected)
    
    
  4. foundin changed to: "obsolete: 8.4.6"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "roylane"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "Inifinite loop a/w bad code in while body"
  11. type changed to: "Bug"