Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 72d521be319a31b0af0e30e105e0a82abf31f0e1
Ticket: 486399ffffffffffffffffffffffffffffffffff
Panic on exit before all threads returned
User & Date: msofer on 2006-03-15 17:06:49
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Bug #597997 (closed as a dup of this one) has a small test
    script to trigger the panic:
    
        package require Thread
        set i 0
        while {[incr i] <= 2} {
            thread::create "puts $i"
        }
    
    Avoid the panic by adding the following at the end:
    
        # make sure to wait until all threads have returned
        while {[llength [thread::names]] > 1} {
            after 100 set x 1
            vwait x
        }
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"