Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 114251cf619f617382441cd8d2aa04b7c6397604
Ticket: 719820ffffffffffffffffffffffffffffffffff
recursion crash with tclsh
User & Date: mic42 on 2003-04-11 17:32:56
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The crash happens on Windows 2000 (SP2):
    
    simple script:
    tclsh
    % rename info ::tcl::info
    % foo
    Crash.
    
    I see this crash with the following versions:
    8.3.2 (TclPro 1.4.1)
    8.3.4 (ActiveState/own Build)
    8.4.0 (ActiveState/own Build)
    8.4.2 (ActiveState/own Build)
    8.5a0 (nearly CVS HEAD)
    
    I also see the crash with a threaded tclsh 8.4.2.
    
    I'll append the stack trace for 8.5a0 (no other debug
    build available)
    
    The bug dissapears if one calls:
    % interp recursionlimit {} 50
    % rename info ::tcl::info
    % foo
    too many nested evaluations (infinity loop?)
    
    running:
    proc recurse {int} {
         puts $int
         recurse [incr int]
    } 
    % recurse 0
    gives 428 as last value before the stack limit is reached.
    
    
    
    
    
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mic42"
  9. subsystem changed to: "None"
  10. title changed to: "renaming info crashes tclsh"
  11. type changed to: "Bug"