[Bug 23934] Multiple games and applications depend on kernel32.CreateProcess to prioritize the working directory over the system search path (Stronghold Kingdoms loops after update, installers fail to find tools)

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Jul 27 11:01:36 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=23934

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |Installer

--- Comment #17 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

revisiting, found another (scene) installer failing due to this bug.

--- snip ---
$ WINEDEBUG=+seh,+loaddll,+process,+msgbox wine ./setup.exe 
...
0009:trace:process:create_process_impl starting
L"C:\\users\\focht\\Temp\\is-2D605.tmp\\setup.tmp" as Win32 binary
(400000-579000, arch 014c)
...
002f:trace:process:__wine_kernel_init starting process
name=L"C:\\users\\focht\\Temp\\is-2D605.tmp\\setup.tmp"
argv[0]=L"C:\\users\\focht\\Temp\\is-2D605.tmp\\setup.tmp"
002f:trace:loaddll:load_native_dll Loaded
L"C:\\users\\focht\\Temp\\is-2D605.tmp\\setup.tmp" at 0x400000: native
0009:trace:process:create_process_impl started process pid 002e tid 002f
...
003f:trace:process:create_process_impl app (null) cmdline
L"\"C:\\users\\focht\\Temp\\is-DMC4F.tmp\\precomp.exe\" -r -oout null00"
...
003f:trace:process:create_process_impl starting
L"C:\\users\\focht\\Temp\\is-DMC4F.tmp\\precomp.exe" as Win32 binary
(400000-693000, arch 014c)
...
0045:trace:process:init_current_directory starting in
L"C:\\users\\focht\\Temp\\is-DMC4F.tmp\\" 0x20
0045:trace:process:__wine_kernel_init starting process
name=L"C:\\users\\focht\\Temp\\is-DMC4F.tmp\\precomp.exe"
argv[0]=L"C:\\users\\focht\\Temp\\is-DMC4F.tmp\\precomp.exe"
0045:trace:loaddll:load_native_dll Loaded
L"C:\\users\\focht\\Temp\\is-DMC4F.tmp\\precomp.exe" at 0x400000: native
003f:trace:process:create_process_impl started process pid 0044 tid 0045
...
002f:trace:process:create_process_impl app (null) cmdline
L"\"C:\\windows\\system32\\cmd.exe\" /C \"del /f dt0_win.cpk\""
002f:trace:process:find_exe_file looking for L"C:\\windows\\system32\\cmd.exe"
002f:trace:process:find_exe_file Trying native exe
L"C:\\windows\\system32\\cmd.exe"
002f:trace:process:create_process_impl starting
L"C:\\windows\\system32\\cmd.exe" as Win32 binary (10000000-100bb000, arch
014c, fakedll)
00fc:trace:loaddll:load_builtin_dll Loaded
L"C:\\windows\\system32\\KERNEL32.dll" at 0x7b420000: builtin
00fc:trace:process:init_current_directory starting in L"C:\\Games\\Pro
Evolution Soccer 2017\\Data\\" 0x20
00fc:trace:process:__wine_kernel_init starting process
name=L"C:\\windows\\system32\\cmd.exe"
argv[0]=L"C:\\windows\\system32\\cmd.exe"
00fc:trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\cmd.exe" at
0x7e940000: builtin
002f:trace:process:create_process_impl started process pid 00fb tid 00fc
...
00fc:trace:process:create_process_impl app (null) cmdline L"wineconsole
--use-event=24"
00fc:trace:process:find_exe_file looking for L"wineconsole"
00fc:trace:process:find_exe_file Trying native exe
L"C:\\windows\\system32\\wineconsole.exe"
00fc:trace:process:create_process_impl starting
L"C:\\windows\\system32\\wineconsole.exe" as Win32 binary (10000000-10029000,
arch 014c, fakedll)
00fe:trace:loaddll:load_builtin_dll Loaded
L"C:\\windows\\system32\\KERNEL32.dll" at 0x7b420000: builtin
00fe:trace:process:init_current_directory starting in L"C:\\Games\\Pro
Evolution Soccer 2017\\Data\\" 0x24
00fe:trace:process:__wine_kernel_init starting process
name=L"C:\\windows\\system32\\wineconsole.exe" argv[0]=L"wineconsole"
...
002f:fixme:win:WINNLSEnableIME hwnd 0x10142 enable 0: stub!
0104:trace:process:create_process_impl app (null) cmdline L"lzma2.dll x -txz
-an -y -si -so"
0104:trace:process:find_exe_file looking for L"lzma2.dll"
0104:trace:process:find_exe_file looking for L"lzma2.dll x"
0104:trace:process:find_exe_file looking for L"lzma2.dll x -txz"
0104:trace:process:find_exe_file looking for L"lzma2.dll x -txz -an"
0104:trace:process:find_exe_file looking for L"lzma2.dll x -txz -an -y"
0104:trace:process:find_exe_file looking for L"lzma2.dll x -txz -an -y -si"
0104:trace:process:find_exe_file looking for L"lzma2.dll x -txz -an -y -si -so"
0100:trace:msgbox:MSGBOX_OnInit L"An error occurred while unpacking: Unable to
write data to disk!\rUnarc.dll returned an error code: -11\rERROR: archive data
corrupted (decompression fails)"
...
--- snip ---

With Wine-Staging patchset applied the installer succeeds and unpacks all
archives. So yes, it would be nice if this goes into mainline, as it will fix
various installers.

--- snip ---
...
0104:trace:process:create_process_impl app (null) cmdline L"lzma2.dll x -txz
-an -y -si -so"
0104:trace:process:find_exe_file looking for L"lzma2.dll"
0104:trace:process:find_exe_file Trying native exe
L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\lzma2.dll"
0104:trace:process:create_process_impl starting
L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\lzma2.dll" as Win32 binary
(400000-446000, arch 014c)
...
0106:trace:process:__wine_kernel_init starting process
name=L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\lzma2.dll" argv[0]=L"lzma2.dll"
0106:trace:loaddll:load_native_dll Loaded
L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\lzma2.dll" at 0x400000: native
0104:trace:process:create_process_impl started process pid 0105 tid 0106
...
0106:trace:loaddll:free_modref Unloaded module
L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\7z.dll" : native

Unpacking 42,007,828 bytes with fbz d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
0115:trace:process:create_process_impl app (null) cmdline L"fbz d
$$arcpackedfile$$.tmp $$arcdatafile$$.tmp"
0115:trace:process:find_exe_file looking for L"fbz"
0115:trace:process:find_exe_file Trying native exe
L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\fbz.exe"
0115:trace:process:create_process_impl starting
L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\fbz.exe" as Win32 binary
(400000-495000, arch 014c)
011e:trace:loaddll:load_builtin_dll Loaded
L"C:\\windows\\system32\\KERNEL32.dll" at 0x7b420000: builtin
011e:trace:process:init_current_directory starting in L"C:\\Games\\Pro
Evolution Soccer 2017\\freearc2145369739.tmp\\" 0x18
011e:trace:process:__wine_kernel_init starting process
name=L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\fbz.exe" argv[0]=L"fbz"
011e:trace:loaddll:load_native_dll Loaded
L"C:\\users\\focht\\Temp\\is-74SK2.tmp\\fbz.exe" at 0x400000: native
0115:trace:process:create_process_impl started process pid 011d tid 011e
011e:trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\msvcrt.dll"
at 0x7e9a0000: builtin
011e:trace:process:set_entry_point setting FT_Thunk at 0x7b6436fc to 00000000

Input:  "$$arcpackedfile$$.tmp"
Output: "$$arcdatafile$$.tmp"

Decompressing (return profile)...

        Block 1: decoding                                                     
Unpacking 41,978,156 bytes with fbz d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
0116:trace:process:create_process_impl app (null) cmdline L"fbz d
$$arcpackedfile$$.tmp $$arcdatafile$$.tmp"
...
--- snip ---

$ wine --version
wine-3.13-3-g7e90bea1af

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list