Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2cca60dfa4052590f23a4179588b97cd9510c5f53ff1fc7ab40cec6f81ffce60
Ticket: 8259d74a649c4e93ae55446920bc17f887c4555d
Tcl panic on exit if zipfs file is open
User & Date: apnadkarni on 2023-10-02 17:38:08
Changes

  1. closedate changed to: "2460220.23481808"
  2. closer changed to: "apnadkarni"
  3. icomment:
    I *think* I know what the problem is. The undocumented `tcl::zipfs::fallbackEntryEncoding` variable is linked via `Tcl_LinkVar` to the global `ZipFS.fallbackEntryEncoding` C variable at initialization and then freed twice (once by each thread).
    
    I'm also not sure if it is valid to `Tcl_LinkVar` to the same `TCL_STRING_VALUE` from two different threads. Seems to me that is a race condition.
    
    I'll attempt to reproduce to confirm that is the issue before fixing.
    
    (Previous to that commit, the string was not being freed at all on exit.)
    
  4. login: "apnadkarni"
  5. mimetype: "text/x-markdown"