Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 17c0dcddb3674c3f1a48dc375c27e37fd312de9df311db51bfc5a6ddce3d3e43
Ticket: 61c01e0edb08a9ed905aefdf17ce113da303c77b
likely race condition with package require in several threads causing error
User & Date: sebres on 2025-07-22 12:05:12
Changes

  1. closedate changed to: "2460879.00362108"
  2. closer changed to: "sebres"
  3. icomment:
    <blockquote><i>> I would appreciate some source code comments with brief description and a reference to this ticket.</i></blockquote>
    
    Well, basically it is commonly known "issue" of Tcl_FSGetNormalizedPath and only few percent of its usage, so I don't think we'd need a comment on every increment.
    A comment is only necessary if it is something unexpected or unusual, like in [88fef0563f33ac19] (where the same object obtained by two functions, and one does increment but another not).
    Regarding ticket reference, normally fossil blame would do the job, so in my opinion it'd be superfluous too.
    
    And last but not least - the path API (and especially its caching framework) has historically become a mess and thus has many conceptual problems actually, so better would be to rewrite all that (and make current API deprecated). Also I'm not convinced that the half of Tcl_FSGetNormalizedPath calls is needed at all and cannot be replaced with Tcl_FSGetTranslatedPath, or with some new function combining that like in mentioned ZipFSPathInFilesystemProc, e. g. because the normalization rarely needed for absolute paths.
    
  4. login: "sebres"
  5. mimetype: "text/x-fossil-wiki"