Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5f6257f15efbc630d1741fe9f44b3002e568a2c6
Ticket: 217945ffffffffffffffffffffffffffffffffff
loop running 'exec' command hangs after N iterations
User & Date: nobody on 2000-10-26 00:46:25
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3903 Bug
    Version: 8.2.2
    SubmitDate: '1999-12-20'
    LastModified: '2000-03-30'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 2460
    OS: Windows NT
    OSVersion: Windows NT v4.0, service release 5
    Machine: various PC's, a Compaq Pentium II, an IBM Pentium II, 2 homebuil
    FixedDate: '2000-10-25'
    ClosedDate: '2000-03-30'
    
    
    Name:
    Russ Durrett
    
    Extensions:
    none
    
    CustomShell:
    none
    
    ReproducibleScript:
    # A simple Tcl shell program to run 'Hello World!' in a loop.
    for {set index 1} {$index <= 10000} {incr index} {
      set helloOut [exec hello.exe]
      puts "$helloOut  index = $index"
    }
    
    ObservedBehavior:
    I was using a Tcl script to test a C program by running it repeatedly.  I found that the Tcl script would run the C program a certain
    number of times and then hang up.  I can reduce the problem to a bare minimum by using the above script to run the following
    C program in a loop:
    
        /* Hello World! program */
        #include <stdio.h>
        int main (void)
        {
          printf ("Hello World!\n");
          return 0;
        } /* end main */
    
    When I run this under Windows NT (v4, SR5), it will hang after about 895 iteration with Tcl v8.1 or v8.22 and after about 2022
    iterations with Tcl v8.2.  I have run this on 4 different PC's (a Compaq, an IBM, and 2 homebuilts) with very repeatable results.
    I also tried this under Windows 95 and Solaris and the script worked fine, going al the way to 10,000 iterations.
    
    DesiredBehavior:
    Tcl script doesn't stop in the middle of the loop.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.2.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "60. NRE and coroutines"
  10. title changed to:
    loop running 'exec' command hangs after N iterations
    
  11. type changed to: "Bug"