fix(relinker): preserve GUI startup failure status without stderr #1153
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1153"
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 ebarr24 on 2026-10-07T15:02:41Z.
What
Fixes #1127. Windows GUI startup errors now retain their original NTSTATUS when diagnostic output is unavailable or fails: missing symbols return
0xc0000139, and missing modules return0xc0000135, instead of both becoming0xc0000001. Diagnostic output is best effort; missing imports still terminate startup.Base:
cea1ef13c35044356348bc6221d45f3a80f7df09Head:
2ed81aebe4fe0732db52d737514380ceb0fbc9daThe GUI fixtures now have an independent Windows branch outside the console missing-module block. #1101 addresses filename casing in a separate production file; its updated head
ba3e75a1001e6a5cec385e208330fdac973db462also moved its SONAME test. Both current heads merge cleanly. Neither PR requires the other. The other shared production-file change, #1128, is formatting; the pinned merge check is also clean.Tested
Windows 11 (
10.0.26200.0), MinGW-w64 GCC 15.2.0, CMake 4.4.4, Ninja 1.13.2, Python 3.12.14:windows_import_modulesfails on the intended assertion: the GUI missing-symbol fixture returns0xc0000001instead of0xc0000139.2b8f0b21; their cause is not established. The complete final-head run passes. No tests or assertions were disabled.7b0b09aa4d3d09a9ee910d0a5877d6e7970bf3fa) was built and passed all 30/30 Relinker groups, including both GUI status and filename/SONAME cases. An earlier combined run had a dependency-diagnostics timeout; a subsequent complete run passes. This combination is local validation only; #1101's implementation is not included in this PR.Exact-head fork validation workflow passed on ubuntu-24.04: 378 passed, 21 skipped, no failures. Each skipped GPU fixture requires at least 32-lane subgroups unavailable on the software Vulkan runner; these paths are unrelated to this diagnostic change. The
windows_import_modulesconverter regression passes three consecutive runs. WindowsEntryStubBuilder.cpp is compiled on Linux too, where it emits Windows PE code. The GUI launch assertions run only on Windows; Ubuntu checks the shared build and converter path.Initial sandbox runs could not launch synthetic PE fixtures (
WinError 623); the Windows runtime results above use the normal user context. These are public synthetic guest-to-host checks; no commercial-title or console coverage is claimed.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by ebarr24 on 2026-10-07T17:07:00Z.
Resolved in
2ed81aebe4fe0732db52d737514380ceb0fbc9da, rebased onto current main. The GUI regressions now sit in their own Windows branch outside the console missing-module block.This is distinct from #1101: that PR resolves Windows guest filename casing; this one preserves the original startup failure status when diagnostic output fails. #1101's author independently moved its SONAME case at
ba3e75a1001e6a5cec385e208330fdac973db462. I verified that the current heads merge cleanly, then built their actual combined tree and ran all 30 Relinker groups successfully, including both regressions. Neither PR depends on the other.The identical GUI regression fails on isolated main
cea1ef13with the expected status mismatch and passes on this final head. The final Windows Full run passes 395/395 tests with no skips. Earlier dependency-diagnostics timeouts also reproduced on isolated upstream2b8f0b21; subsequent complete final-head and combined runs pass. These are synthetic guest checks, with no title/console claim.Exact-head Ubuntu validation also passes: 378 passed, 21 unrelated GPU subgroup skips; the converter regression passes three times. Native GUI status assertions are covered by the Windows runs above.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T08:26:53Z.
Checked build + full ctest on Linux merged onto current main (424/424), the stub's branch logic (every diagnostic failure path jumps past the write and the original NTSTATUS is still raised), and CI on the head: linux, windows (runs
windows_import_moduleswith the new GUI cases) and conventions are green; merging.