Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7a36a256b80d35560c5e3fe5b85fbfc8c82a6d97
Ticket: 486399ffffffffffffffffffffffffffffffffff
Panic on exit before all threads returned
User & Date: vasiljevic on 2006-03-10 20:02:05
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Yes. This is still valid.
    
    The problem is that by the concept of the Tcl lib, there is a
    implicit distinction between the main thread (the startup 
    thread) doing the Tcl_Exit and other threads doing Tcl_ThreadExit. 
    
    Actaully the entire cleanup/teardown is not thread-friendly and 
    relies on the fact that startup thread must exit last, which is 
    not always true. Rather, the thread which exits AND it is the
    LAST thread in the process must initiate teardown. This requires
    quite a lot of plumbing here and there and it is questionable if
    it is worth the effort in the 8.x branch.
    
    I could imagine closing this bug, yet opening another RFE to
    make the Tcl finalization more thread-compatible.
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"