Skip to content
Tcl Source Code History Of Ticket 9c45616627b30a6f
Login

History Of Ticket 9c45616627b30a6f

Artifacts Associated With Ticket 9c45616627b30a6f

  1. Ticket change [3fdfbb0edd] (rid 251276) by anonymous on 2026-02-04 05:40:24:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      I was building an app with the tcl_library embedded in in and mounted it with TclZipfs_MountBuffer and set the $tcl_library variable.
      
      Then calling Tcl_Init() caused it to hang. After looking at it with a debugger it looks like there is an infinite loop at the end of TclFsGetAncestorPaths() in generic/tclPathObj.c
      
      ```
          count = i;
          /* Fill remaining with NULL */
          while (i < numPaths) {
      	pathsPtr[i] = NULL;
          }
          Tcl_DecrRefCount(splitPathPtr);
      ```
      
      It seemed to fix things if I just increment `i` in the loop
      
      ```
          count = i;
          /* Fill remaining with NULL */
          while (i < numPaths) {
      	pathsPtr[i] = NULL;
      	i+=1
          }
          Tcl_DecrRefCount(splitPathPtr);
      ```
      
    5. is_private initialized to: "0"
    6. login: "anonymous"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Minor"
    10. status initialized to: "Open"
    11. submitter initialized to: "anonymous"
    12. subsystem initialized to: "38. Init - Library - Autoload"
    13. title initialized to: "Infinite loop in TclFSGetAncestorPaths"
    14. type initialized to: "Bug"
  2. Add attachment "diff" [c5af363ae7] (rid 251277) by anonymous on 2026-02-04 05:40:42.

  3. Ticket change [42fb22d3ad] (rid 251281) by jan.nijtmans on 2026-02-04 10:02:48:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461075.91861348"
    3. closer changed to: "jan.nijtmans"
    4. foundin changed to: "9.1"
    5. icomment:
      This was introduced in [e89c38915e076141}this] commit (TIP #732)
      
      Thanks for noticing! Fixed now.
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"
  4. Ticket change [335206f962] (rid 251282) by oehhar on 2026-02-04 10:15:04:

    1. closedate changed to: "2461075.92713321"
    2. closer changed to: "oehhar"
    3. icomment:
       This was introduced in [e89c38915e076141] commit (TIP #732)
      
      Thanks for noticing! Fixed now.
      
    4. login: "oehhar"
    5. mimetype: "text/x-fossil-wiki"
  5. Ticket change [c25bfb3c9f] (rid 251296) by apnadkarni on 2026-02-05 04:09:20:

    1. closedate changed to: "2461076.67314926"
    2. closer changed to: "apnadkarni"
    3. icomment: "Thanks, Jan & OP."
    4. login: "apnadkarni"
    5. mimetype: "text/plain"