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
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/html"
- 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>
- is_private changed to: "0"
- login: "bogdan1234"
- priority changed to: "5 Medium"
- private_contact changed to: "5386df0f247767977c06b2eaeb95c7e6c700e7ac"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "bogdan1234"
- subsystem changed to: "18. Commands M-Z"
- title changed to:
parallell 'source'ing files from linked directory fails randomly
- type changed to: "Patch"