Artifacts Associated With Ticket 9c45616627b30a6f
Ticket change [3fdfbb0edd] (rid 251276) by anonymous on 2026-02-04 05:40:24:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- 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); ``` - is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "38. Init - Library - Autoload"
- title initialized to: "Infinite loop in TclFSGetAncestorPaths"
- type initialized to: "Bug"
Add attachment "diff" [c5af363ae7] (rid 251277) by anonymous on 2026-02-04 05:40:42.
Ticket change [42fb22d3ad] (rid 251281) by jan.nijtmans on 2026-02-04 10:02:48:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461075.91861348"
- closer changed to: "jan.nijtmans"
- foundin changed to: "9.1"
- icomment:
This was introduced in [e89c38915e076141}this] commit (TIP #732) Thanks for noticing! Fixed now.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [335206f962] (rid 251282) by oehhar on 2026-02-04 10:15:04:
- closedate changed to: "2461075.92713321"
- closer changed to: "oehhar"
- icomment:
This was introduced in [e89c38915e076141] commit (TIP #732) Thanks for noticing! Fixed now.
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
Ticket change [c25bfb3c9f] (rid 251296) by apnadkarni on 2026-02-05 04:09:20:
- closedate changed to: "2461076.67314926"
- closer changed to: "apnadkarni"
- icomment: "Thanks, Jan & OP."
- login: "apnadkarni"
- mimetype: "text/plain"