https://bugs.winehq.org/show_bug.cgi?id=51023
Bug ID: 51023 Summary: [Regression] wine64 fails to load system dlls Product: Wine-staging Version: 6.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: ggrabler@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 69872 --> https://bugs.winehq.org/attachment.cgi?id=69872 Wine-Output with WINEDEBUG=warn+all
Hi there,
In Solus we're experiencing a strange issue since wine6.6. If we try to start a 64.exe in example from the ~/Downloads folder, wine seems to fail finding system libraries.
I reproduced it by using winbox64.exe (from https://mikrotik.com/download / 64bit version)
I've tried that with: - Wine 6.5 (all works fine) - Wine 6.6 (fails) - Wine 6.6 (+all ntdll changes cherry-picked) from 6.6 release to master/head: 0001-ntdll-Take-loadorder-into-account-also-for-a-main-ex.patch 0002-ntdll-Cleanup-the-path-with-collapse_path-in-unix_to.patch 0003-ntdll-Initialize-version-and-session-id-on-the-Unix-.patch 0004-ntdll-Reuse-the-Unix-name-buffer-for-get_dos_device.patch 0005-ntdll-Reject-NT-path-names-that-are-not-in-canonical.patch 0006-ntdll-Initialize-nt_name-before-using-it.patch 0007-ntdll-Remove-wait-timeout-in-get_thread_context.patch 0008-ntdll-Allow-a-second-backslash-after-the-drive-lette.patch 0009-ntdll-Move-nt_to_unix_file_name_attr-to-avoid-forwar.patch 0010-ntdll-Always-pass-object-attributes-to-nt_to_unix_fi.patch 0011-ntdll-Add-NtCreateThread-stub.patch 0012-ntdll-Move-create_startup_info-to-env.c.patch 0013-ntdll-Reimplement-file-system-redirection-using-NT-p.patch 0014-ntdll-Get-rid-of-the-rebuild_nt_name-helper.patch 0015-ntdll-tests-Add-some-file-system-redirection-tests.patch 0016-ntdll-Return-STATUS_INFO_LENGTH_MISMATCH-when-len-is.patch
See output attached (will attach a bacaktrace too)
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #1 from Georg Grabler ggrabler@gmail.com --- Created attachment 69873 --> https://bugs.winehq.org/attachment.cgi?id=69873 Backtrace
https://bugs.winehq.org/show_bug.cgi?id=51023
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|leslie_alistair@hotmail.com | |, z.figura12@gmail.com | Component|-unknown |-unknown Product|Wine-staging |Wine
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #2 from Georg Grabler ggrabler@gmail.com --- Well, system libraries is probably misleading, it fails to find files like kernel32.dll or rundll32.exe, ntdll.dll ... and similar.
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Please test with current git; cherry-picking only the ntdll changes is not going to work.
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #4 from Georg Grabler ggrabler@gmail.com --- Very well, compiled against 749f8c25e262cb049289e7c96bb390edcafa1021, still the same issue.
Output attached (again), but didn't change a lot.
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #5 from Georg Grabler ggrabler@gmail.com --- Created attachment 69875 --> https://bugs.winehq.org/attachment.cgi?id=69875 wine-749f8c25e262cb049289e7c96bb390edcafa1021 output WINEDEBUG=warn+all
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #6 from Georg Grabler ggrabler@gmail.com --- Worth mentioning is .. the error sounds strange:
0158:warn:file:NtCreateFile L"\??\Z:\home\schurl\Downloads\kernel32.dll" not found (c0000034) 0158:warn:actctx:parse_file_elem unknown attr L"loadFrom"=L"%SystemRoot%\system32\kernel32.dll" 0158:warn:file:NtCreateFile L"\??\Z:\home\schurl\Downloads\kernel32.dll" not found (c0000034) 0158:warn:module:load_dll Failed to load module L"kernel32.dll"; status=c0000135
It seems to always try to load the kernel32.dll from the actual directory where the .exe is located.
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #7 from Georg Grabler ggrabler@gmail.com --- Created attachment 69876 --> https://bugs.winehq.org/attachment.cgi?id=69876 wine output - Copied the .exe to system32 directory
I copied the .exe to the windows system32 directory and used wine to start it from there, which seems to give other issues loading files, but actually no system files but they now seem to be related to the actual .exe.
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #8 from Georg Grabler ggrabler@gmail.com --- Hi there,
I started to bisect the issue, and interestingly:
eee0c1f8f97d2d77118abb692e277dd440eed693 is the first bad commit commit eee0c1f8f97d2d77118abb692e277dd440eed693 Author: Hugh McMaster hugh.mcmaster@outlook.com Date: Mon Mar 29 23:24:31 2021 +1100
reg: Use RegOpenKeyExW() instead of RegOpenKeyW().
Signed-off-by: Hugh McMaster hugh.mcmaster@outlook.com Signed-off-by: Alexandre Julliard julliard@winehq.org
programs/reg/delete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
(https://source.winehq.org/git/wine.git/blobdiff/35d0fda0f044497df90d1ef5c1e2...)
That looks like a rather ... easy change. I am tempted to think I bisected wrong...
https://bugs.winehq.org/show_bug.cgi?id=51023
--- Comment #9 from Georg Grabler ggrabler@gmail.com --- Bisect was wrong, seems i put some bisect on bad when i shouldn't have.
Proper bisect: bb065801a693e1cd305d2a507c206f1b21a142d3 is the first bad commit commit bb065801a693e1cd305d2a507c206f1b21a142d3 Author: Alexandre Julliard julliard@winehq.org Date: Tue Mar 30 10:12:07 2021 +0200
ntdll: Map the builtin or fake dll from the Wine dirs if it's missing from the prefix.
Signed-off-by: Alexandre Julliard julliard@winehq.org
dlls/kernel32/tests/module.c | 4 +- dlls/mscoree/tests/mscoree.c | 4 +- dlls/ntdll/loader.c | 141 ++++++++++++++++++++++++++----------------- 3 files changed, 88 insertions(+), 61 deletions(-)
sorry for the difficulty / issue above ... mistakes happen I guess ;-).
https://bugs.winehq.org/show_bug.cgi?id=51023
Georg Grabler ggrabler@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |bb065801a693e1cd305d2a507c2 | |06f1b21a142d3
https://bugs.winehq.org/show_bug.cgi?id=51023
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- Thanks for testing again. That's the loadFrom issue.
*** This bug has been marked as a duplicate of bug 50978 ***
https://bugs.winehq.org/show_bug.cgi?id=51023
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate