Artifacts Associated With Ticket 2837204fffffffff
Ticket change [933e99bfe8] (rid 105784) by dgp on 2009-08-13 22:39:32:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[glob] gets implemented recursively and depending on the switches and patterns can result in a whole tree of calls to Tcl_FSMatchInDirectory(). If the directories are named by relative paths, then they are taken relative to the cwd - which is a process wide value that can be changed at arbitrary times by other threads in the process. This means that some portions of the [glob] search might take place with different [pwd] values than other portions, and the assembled list of [glob] results does not actually represent any properly functioning, consistent filesystem search. In concept, the fix would be to determine [pwd] once at the beginning of the glob operation and then take care to pass it down the whole tree of operations for consistent results rooted on /some/ consistent value of [pwd]. Low priority, I think, but wanted to record the issue while I noticed it.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "3 Low"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "37. File System"
- title initialized to:
glob on realtive patterns and dirs is thread "unsafe"
- type initialized to: "Bug"
Ticket change [c4047a6df5] (rid 111774) by das on 2009-08-14 09:07:18:
- icomment:
Not directly related, but FWIW I remember a similar issue with [file normalize] and threading on early versions of Darwin where the realpath() implementation was changing the cwd internally... (messing up all relative path processing in all other threads).
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment: