Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1bef83fa77dd3cc2bfc5f4db6f1e1fd6cb70f3bdf1ca6ed3619b0d6cccb69399
Ticket: b78d94c049af5090a9ef1c4aaa8059aa45b98b59
Thread pool panics if stdin closed and IO performed in initcmd
User & Date: chw on 2025-02-22 14:54:15
Changes

  1. closedate changed to: "2460729.12101016"
  2. closer changed to: "chw"
  3. icomment:
    I believe this is a real legit bug, since the Thread package
    still shouldn't produce a crash. The problem is, that the
    thread functions of both the tpool::create and thread::create
    command do not proper setup the TSD of the I/O subsystem
    before calling Tcl_CreateInterp() etc. This might be
    remedied by calling the Tcl_GetStdChannel() function for
    all standard channels before Tcl_CreateInterp().
    
  4. login: "chw"
  5. mimetype: "text/plain"