Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "3 Low"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "37. File System"
  11. title changed to:
    glob on realtive patterns and dirs is thread "unsafe"
    
  12. type changed to: "Bug"