Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e89a5d903ae9f21904b904ffa514df9393e85d2f
Ticket: 2186888fffffffffffffffffffffffffffffffff
infinite for-loop in Tcl 8.6a3
User & Date: jroemmler on 2008-10-22 13:56:26
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The following small Tcl code loops forever in Tcl8.6a3:
    
    for {set i 20} {$i > 0} {incr i -1} {
        puts "i=$i"
        continue
    }
    
    But only, if source'd !
    It runs OK if entered interactively.
    I know the example is bogus, but it has been stripped down as much as possible.
    My configuration is (RHEL4 machine):
    
    # uname -a
    Linux orion 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
    
    Tcl configured with:
    
    # cd tcl8.6a3/unix
    # ./configure --enable-64bit \
        --prefix=/usr/local/tcltk8.6a3 \
        --enable-symbols
    
    My memory debugger (purify) doesn't complain.
    I can create a stack trace if required.
    
    -Jochen
    
  4. foundin changed to: "obsolete: 8.6a3"
  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: "jroemmler"
  10. subsystem changed to: "None"
  11. title changed to: "infinite for-loop in Tcl 8.6a3"
  12. type changed to: "Bug"