Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 87b245fa33247497806658c7e5189515bc95dd3e
Ticket: 597575ffffffffffffffffffffffffffffffffff
[exit] in sub-thread may crash.
User & Date: andreas_kupries on 2002-08-20 02:47:32
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When executing the script below the tcl interpreter may
    crash every once in a while (I usually have to execute
    it once or twice for the problem to happen).
    
    -----------------
    package require Thread
    
    puts [info loaded]
    puts [pwd]
    
    set t [::thread::create]
    after 5000 "::thread::send $t exit"
    -----------------
    
    Basically the interpreter is shutdown from inside the
    created thread, and not the main-thread, and the main
    thread is running an after. Timing-depending, it seems
    that the exit killed the Tcl_Release-data structure
    before the after in the main thread is completely done
    with its interpreter, causing it to try to release the
    structure with nothing being there anymore.
    
    Stack trace: attached, to prevent it from taking up
    space in the notification mails.
    
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "8"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "andreas_kupries"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "[exit] in sub-thread may crash."
  11. type changed to: "Bug"