Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.11.2
-
Windows (observed on 7 and 10, probably all affected)
-
-
3f17029aa12eafd3f8ddd5e0b246a6bf22eabfe3
Description
I have symlinked network directory:
C:\>dir
Volume in drive C has no label.
Volume Serial Number is XXXX-XXXX
Directory of C:\
...
15. 03. 2017 17:55 <SYMLINKD> SHARED \\VBOXSRV\SHARED
...
0 File(s) 0 bytes
17 Dir(s) 1 126 232 064 bytes free
When application is executed from this symlinked directory, then Qt application is crashing (see error in subject).
I tried to find the reason using Process Monitor (from SysInternals) and found wrong path translation.
Network directory: \\VBOXSRV\SHARED\
Symlinked directory: C:\SHARED
Application directory: C:\SHARED\HHFARMA_DEPLOY\
Wrong translations (find C:\UNC strings in the log below):
"CreateFile","C:\SHARED","SUCCESS","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened" "QueryNetworkOpenInformationFile","C:\SHARED","SUCCESS","CreationTime: 15. 3. 2017 17:55:31, LastAccessTime: 15. 3. 2017 17:55:31, LastWriteTime: 15. 3. 2017 17:55:31, ChangeTime: 15. 3. 2017 17:55:31, AllocationSize: 1. 1. 1601 1:00:00, EndOfFile: 1. 1. 1601 1:00:00, FileAttributes: DRP" "CloseFile","C:\SHARED","SUCCESS","" "CreateFile","C:\","SUCCESS","Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened" "QueryDirectory","C:\SHARED","SUCCESS","Filter: SHARED, 1: SHARED" "CloseFile","C:\","SUCCESS","" "CreateFile","C:\SHARED","SUCCESS","Desired Access: Read EA, Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened" "FileSystemControl","C:\SHARED","SUCCESS","Control: FSCTL_GET_REPARSE_POINT" "CloseFile","C:\SHARED","SUCCESS","" "CreateFile","C:\UNC","NAME NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a" "CreateFile","C:\UNC\VBOXSRV","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a" "CreateFile","C:\UNC\VBOXSRV\SHARED","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a" "CreateFile","C:\UNC\VBOXSRV\SHARED\HHFarma_Deploy","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a" "CreateFile","C:\UNC\VBOXSRV\SHARED\HHFarma_Deploy","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a" "CreateFile","C:\SHARED\HHFarma_Deploy\qt.conf","REPARSE","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: <unknown>" "CreateFile","\\VBOXSRV\SHARED\HHFARMA_DEPLOY\QT.CONF","NAME NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
Result is that some DLLs (e.g. qwindows.dll) are not found and application ends with error.
Note that some DLLs are loaded correctly.
Complete Process Monitor Log is attached.