Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b28b6bce1b746b43050d1b29d4c07b0a51c28d02
Ticket: 439843ffffffffffffffffffffffffffffffffff
crash when getting the return value of b
User & Date: jstrot on 2001-07-09 21:03:18
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl Version: ActiveTcl v8.3.3
    
    OS: Windows 2000 Pro SP2
    
    Problem Behaviour:
    
    The following code causes a crash:
    
    namespace eval ::crashTcl {
      while {1} {
        set b [break]
      }
    }
    
    I know it doesn't make sense to take the return value 
    of break... This is the simplified version of one of 
    my scripts that calls a procedure (instead of break) 
    which could return a value or force a break (return -
    code break) It doesn't happen if the whole thing is 
    not with a namespace eval.
    
    this piece of code crashes with:
    
    TclExecuteByteCode: done instruction at pc 14: stack 
    top 0 != entry stack top -1 TclExecuteByteCode 
    execution failure: end stack top != start stack top
    
    Expected Behaviour:
    b should not be assigned any value
    break should work as expected, breaking out of the 
    while
    
  4. foundin changed to: "obsolete: 8.3.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jstrot"
  9. subsystem changed to: "None"
  10. title changed to: "crash when getting the return value of b"
  11. type changed to: "Bug"