Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0b531d708540dcfb119512afe357d5f6b1c2aaa9
Ticket: 219065ffffffffffffffffffffffffffffffffff
Tcl8.2.3 ignores joining threads - stack problems!
User & Date: nobody on 2000-10-26 01:10:05
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4532 Bug
    Version: 8.2.3
    SubmitDate: '2000-03-24'
    LastModified: '2000-05-28'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Solaris
    FixedDate: '2000-05-28'
    FixedInVersion: 8.4a1
    ClosedDate: '2000-10-25'
    
    
    Name:
    Zoran Vasiljevic
    
    ReproducibleScript:
    Use thread command to create/destroy many threads.
    Observe process size and amuse yourself seeing it grow and grow and gr...
    
     time {set t [thread create]; thread send $t "thread exit"} 1000
    
    ObservedBehavior:
    TclpThreadCreate() creates an non-detached thread, which
    nobody cares to join. This results in process size
    (the stack, not the heap!) to grow excessively.
    Purify and friends do not complain since no heap leak...
    
    DesiredBehavior:
    Have TclpThreadCreate() make an detached thread by calling
    pthread_detach(idPtr) or make some provisions (wrappers)
    for API so we can call it ourselves.
    
    
    
    From Kupries:
    
    The new public API for creation of threads creates detached threads by
    default (no flags), so the problem mentioned in report 4532 should be
    solved too.
    
    Those APIs are in 8.4a1.
    
    There was also a fix in the Unix notifier for 8.3.1 that may alleviate
    the above problem. 
    -- 05/28/2000 hobbs
    
  4. foundin changed to: "final: 8.2.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "Tcl8.2.3 ignores joining threads - stack problems!"
  11. type changed to: "Bug"