Overview
| Artifact ID: | 933e99bfe86d3967167b418c885f5254f6502f7e |
|---|---|
| Ticket: | 2837204fffffffffffffffffffffffffffffffff
glob on realtive patterns and dirs is thread "unsafe" |
| User & Date: | dgp on 2009-08-13 22:39:32 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "None"
- is_private changed to: "0"
- priority changed to: "3 Low"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "37. File System"
- title changed to:
glob on realtive patterns and dirs is thread "unsafe"
- type changed to: "Bug"