Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 48c89f0126b5a110dc6b92d257f592014b23f5f7
Ticket: 1939509fffffffffffffffffffffffffffffffff
Tcl hangs in "exec" (on multi-processor machines)
User & Date: nobody on 2008-04-14 15:26:23
Changes

  1. icomment:
    Logged In: NO 
    
    Small updates on the problem description (from Wolfgang Schmid):
    
    We tried to run the test scripts on different multi-processor platforms and came to the following results:
    - Windows Server 2003 (SP1) 32-Bit with 4 CPUs (Xeon): Test scripts are running fine; no problems with "exec"
    - Windows Server 2003 R2, Standard 64 Bit edition with 4 CPUs (Xeon): Test fails
    
    The problem seems to happen, if "tclsh" (32 bit application) is running on a 64 Bit machine.
    
    
    Furhtermore I provide a small update of the test scripts: (as there were small inconsistencies in the scripts.
    
    
    load.bat: (to be called from DOS prompt):
    =========
    :loop
    
    D:\Tcl8.5.0\bin\tclsh85.exe testexec.tcl >> trace.txt
    
    goto loop
    
    
    testexec.tcl:
    =============
    
    puts "started at [clock format [clock seconds]]"
    flush stdout
    
    set fd [open "traceexec.txt" "w"]
    
    for {set i 0} {$i < 5} {incr i} {
        puts $fd "\ncallexec $i started"
        flush $fd
    
        set status [catch { exec ./callexec.bat p1 p2 } outcmd]
    
        puts $fd "status: $status, result: $outcmd"
        puts $fd "callexec $i terminated"
        flush $fd
    }
    
    close $fd
    exit 0
    
    
    callexec.bat: 
    =============
    no changes
    
    
    
  2. login: "[email protected]"
  3. mimetype: "text/plain"
  4. username: "[email protected]"