Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a4779a2ebde3907c1ba157a68d7bb76bc7cc07660e2195ae251a9ae50c8976cd
Ticket: 2172279fffffffffffffffffffffffffffffffff
Crash when calling Tcl_FinalizeThread()
User & Date: serhiy.storchaka on 2026-10-12 18:33:54
Changes

  1. icomment:
    <code>Tcl_FinalizeThread()</code> frees all per-thread Tcl data, including the
    event queue, so it cannot be called while Tcl is still running in that thread,
    for example from an event handler: <code>Tcl_ServiceEvent()</code> uses the
    event queue after the handler returns. Leave the event loop first (e.g. set a
    flag in the handler and check it in the loop) and call
    <code>Tcl_FinalizeThread()</code> after that.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"
  4. resolution changed to: "Invalid"
  5. status changed to: "Closed"