test(relinker): launch the GUI startup fixtures without Windows Error Reporting #2227
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2227"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T12:24:56Z.
What
windows_import_modulesfails intermittently on Windows under a parallel ctest run, at about 31.6 s:The same failure is mentioned in #2079 ("timed out waiting for the unrelated windows_import_modules GUI child, followed by a temporary-file cleanup PermissionError") and #2020 (the cleanup
PermissionErroron a.prx.guest.prxthe test has just run).Cause: the two
--windows-guifixtures (#1153) were started withShellExecuteExW. A process the shell starts gets the default error mode, so theRaiseExceptionwith which the entry stub reports0xc0000139/0xc0000135goes to Windows Error Reporting as anAPPCRASH. The Application log shows oneWindows Error Reportingevent per launch (P1: output.exe,P4: KERNELBASE.dll,P7: c0000139). Collecting the report delays the child's exit: about 2 s per launch here, 10.9 s once in 60 launches, and past the test's 30 s wait under load. WerFault also keeps the image open, which is thePermissionErrorat cleanup.The fixtures now start through
CreateProcessWwithSTARTF_USESTDHANDLESand no standard handles, and withSEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOXadded to the test's error mode, which the child inherits. The condition #1153 tests is unchanged: the stub's diagnostic has no handle to write to, and the raised status must still be the exit status. Nothing outside the test changes; a title started from Explorer still reports through the system as before.Tested
Windows 11 Pro 25H2 (10.0.26200.9457), MinGW-w64 GCC 15.2.0 (WinLibs r7), Python 3.14, Release, full build on
maind70b8998.ctest -j8runs the test failed 3 times in about 25, always as above. Launching the GUI missing-symbol fixture 60 times throughShellExecuteExWtook 1.9-2.6 s per launch (once 10.9 s), and each launch logged a WER event. Through a handle-lessCreateProcessWthe same fixture exits in under 35 ms with0xc0000139(0xc0000135for the missing-module one).windows_import_modulestakes 1.24 s alone (5.1 s before) and 1.3-1.9 s in six fullctest -j8runs, 510/510 each. No WER event is logged during the test.tools/check_conventions.py --base upstream/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)