Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9ea0669dff4b99b38f06ebbf4260c6eef3e55c1b
Ticket: 1063988fffffffffffffffffffffffffffffffff
tcl crash on sun using threads
User & Date: vasiljevic on 2004-11-11 16:52:43
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Ancient Sol2.6, hm? 
     
    If the problem would be reproducible on other versions 
    and/or platforms... But since you get it only on Sol 2.6 
    I'm little bit clueless... 
     
    What I see from the trace is the classic memory corruption 
    issue. Some C-level code garbled the Tcl_Obj's which  
    are being kept on the thread private list. At the moment 
    the thread exits, its privately allocated Tcl_Obj's are moved 
    to the thread-wide repository in order to reuse them again. 
    Now, when following the private linked list there is a problem 
    (memory reference) and this cores the process. Too bad. 
     
    I know you will not like me for this, but... I would keep the 
    threads parked and never let them exit. This way a very 
    complex and eventually error-prone garbage collection 
    of resources is avoided. Obviously, you would have to 
    design some sort of thread-caching-and-reusing. You  
    might want to look at the threadpool implementation for 
    some ideas. 
     
    OTOH, is the update to Sol 2.8 an option? 
     
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"