Skip to content
Tcl Source Code History Of Ticket 2837204fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2837204fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2837204fffffffffffffffffffffffffffffffff

  1. Ticket change [933e99bfe8] (rid 105784) by dgp on 2009-08-13 22:39:32:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "3 Low"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "37. File System"
    11. title initialized to:
      glob on realtive patterns and dirs is thread "unsafe"
      
    12. type initialized to: "Bug"
  2. Ticket change [c4047a6df5] (rid 111774) by das on 2009-08-14 09:07:18:

    1. 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).
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"