Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7c120e39eb3c60fdcd4c99e89f49054fc319e614
Ticket: 1829708fffffffffffffffffffffffffffffffff
http.test triggers segfault (sometimes)
User & Date: vasiljevic on 2007-12-15 03:35:38
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    Originator: NO
    
    OK, all relax a bit...
    
    The reason why I said this isn't the show-stopper is because I strongly
    believe (and George's last change proves that) that we are hitting a well
    known bug in Tcl teardown where the master thread exits before some
    other thread created after the startup. In this case the master exiting 
    thread releases some resources still used by the existing thread(s) so
    some of them may (do) freak out. 
    W/O rewriting the whole Tcl finalization mechanism (and introducing 
    refcounts on shared resources) you can't solve that problem. But you
    can very easily avoid it by properly tearing down all threads before
    the master one (first one in the process, or better, first one that
    loaded the Tcl lib) exits. 
    
    So I believe there is no reason to halt the 8.5.0 because if that, as this
    one is sitting in the core since the introduction of threads in Tcl.
    
    I will have to see some long-running thread-test that uses the Tcl threading
    extension which will core the process. This one I will pay immediate attention
    to, as we are absolutely and totally dependent on the thread-related stability
    of the core.
    
    
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"