Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c3a570889940e13dd566ba7ac4435507c451d6c0
Ticket: 19ea026e43c243824c523eba9163ed6442436903
parallell 'source'ing files from linked directory fails randomly
User & Date: bogdan1234 on 2015-04-22 13:40:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. comment changed to:
    <p>Notice: whole analyze assumes <i>tclWinFile.c</i> from <i>0a2e3bb2d9</i> trunk.</p>
    
    <p>Suppose such situation on Windows: several Tcl executable instances (in my situation it was software which integrates Tcl inside) 'source' files at the same time from the same directory, which is symbolic link or mounted drive. (in my situation mentioned software was just installed into this linked directory)</p>
    
    <p>Problem is that in such situation <i>TclpObjNormalizePath</i> randomly fails at <i>tclWinFile.c:2587</i> (exactly this line: <i>handle = FindFirstFileW((WCHAR *) nativePath, &fData);</i>), because at the same time other process opened the linked directory using <i>NativeReadReparse</i> function without <i>FILE_SHARE_READ</i> flag in <i>CreateFile</i> (see <i>tclWinFile.c:671</i>).
    
    <p>I cannot find the reason to not give shared access for reading the directory in <i>NativeReadReparse</i> as it only reads Reparse Point. My patch corrects this problem (it passes <i>FILE_SHARE_READ</i> flag into <i>CreateFile</i> in <i>NativeReadReparse</i>). Please, consider this correction, or explain the reason why it cannot be used.</p>
    
    <p></p>
    
  5. is_private changed to: "0"
  6. login: "bogdan1234"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "5386df0f247767977c06b2eaeb95c7e6c700e7ac"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "bogdan1234"
  13. subsystem changed to: "18. Commands M-Z"
  14. title changed to:
    parallell 'source'ing files from linked directory fails randomly
    
  15. type changed to: "Patch"