https://bugs.winehq.org/show_bug.cgi?id=54504
Bug ID: 54504 Summary: psapi:psapi_main - The 32-bit test_EnumProcessModules() gets a partial copy error on Windows 11 Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: psapi Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
psapi:psapi_main - The 32-bit test_EnumProcessModules() gets a partial copy error on Windows 11:
psapi_main.c:133: Test failed: got 0, error 299 psapi_main.c:134: Test failed: expected non-NULL module
See https://test.winehq.org/data/patterns.html#psapi:psapi_main
Where 299 == ERROR_PARTIAL_COPY
This failure is specific to the 32-bit tests running on Windows 11, that is the 64-bit test has other (possibly related) failures, and Windows 10 and lower don't have failures. Also this failure has been present ever since the Windows 11 VM was added.
https://bugs.winehq.org/show_bug.cgi?id=54504
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=54504
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@gmail.com
--- Comment #1 from Eric Pouech eric.pouech@gmail.com --- haven't fully looked into it yet, but a couple of tests (psapi, dbghelp, and likely other places) rely on being able to have <systemdir>\notepad.exe and <syswow64>\notepad.exe available, and the first one as a 64bit PE exec, and the second one as a 32bit PE exec.
With Win11, notepad.exe has been moved to UWP location (aka c:\Program Files\WindowsApp) and likely as a single exec (64bit only)
<systemdir>\notepad.exe and <syswow64>\notepad.exe are redirected to the c:\Program Files\WindowsApp subfolder, hence making all the tests expecting a 32 bit process to fail (this applies to a bunch of other win11 related testbot failures)
https://bugs.winehq.org/show_bug.cgi?id=54504
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |54535
--- Comment #2 from Eric Pouech eric.pouech@gmail.com --- *** Bug 54535 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=54504
--- Comment #3 from Eric Pouech eric.pouech@gmail.com --- *** Bug 54536 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=54504
--- Comment #4 from Eric Pouech eric.pouech@gmail.com --- *** Bug 54537 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=54504
--- Comment #5 from Eric Pouech eric.pouech@gmail.com --- as a fix, either we use another test exec rather than notepad (tested with msinfo32.exe which seems ok), or find a way to override the UWP process launch to get the 32bit executable (the <syswowdir>\notepad.exe on win11 seems to be fully runnable 32 bit exec, so there's could a workaround)
https://bugs.winehq.org/show_bug.cgi?id=54504
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|psapi:psapi_main - The |dbghelp:dbghelp, |32-bit |ntdll:wow64 & |test_EnumProcessModules() |psapi:psapi_main fail on |gets a partial copy error |Windows 11 due to |on Windows 11 |notepad.exe path remapping
--- Comment #6 from François Gouget fgouget@codeweavers.com --- Changed the summary to better match the root issue and so it can be matched by all impacted tests.
https://bugs.winehq.org/show_bug.cgi?id=54504
--- Comment #7 from Eric Pouech eric.pouech@gmail.com --- should be fixed by de3ecada243b6cf5fc65afc89634142a8de76401 and 3 following commits
https://bugs.winehq.org/show_bug.cgi?id=54504
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |de3ecada243b6cf5fc65afc8963 | |4142a8de76401
--- Comment #8 from François Gouget fgouget@codeweavers.com --- Yes, as far as I can tell this is all fixed.
https://bugs.winehq.org/show_bug.cgi?id=54504
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.4.