fix(windows): dispatch repeated first-chance exceptions #2310
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2310"
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 JulioCacko on 2026-10-09T15:17:24Z.
What
The Windows vectored crash reporter sleeps forever after its first fatal-class exception, preventing subsequent first-chance exceptions from reaching later handlers. Return
EXCEPTION_CONTINUE_SEARCHfor subsequent reports and label the initial report first-chance. A child-process regression deliberately faults twice and verifies both faults reach a recovery handler, the child exits, and exactly one report is emitted.This emerged during the original Demon's Souls PPSA01341 startup investigation. A diagnostic run observed
mov rcx,[r12+0x10]at guest RVA0x84bb40, withr12=0x1040and read address0x1050. Observedr15=0andrdx=2explain the immediate base throughr15 + 0x820 * rdx, but the same activation's queue producer/stack-spill writer was not captured. That run exceeded its warm-run bound and establishes no acceptance result. The next debugger run was prepared and validated offline, not launched. This PR fixes exception reporting/dispatch; it does not establish a fiber lifecycle root cause or repair the invalid guest operand. Displayed title frames, menus, gameplay, and Gold status remain unverified.Tested
Windows 11 x64, MinGW GCC, RelWithDebInfo. Focused build passed;
windows_exceptionsandfiberpassed 2/2 (0.37 s and 0.08 s). The branch/title/body conventions check passed. Tested with the integrated contribution set on upstreamd70b8998; this branch contains only the exception change. No proprietary title binaries, dumps, caches, or saves are published.Checklist
main; open-PR overlap checked before submissionImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:11:48Z.
Closing: the sleep keeps a second crashing thread from ending the process while the first report is being written, and no title is shown to need a later fault recovered after a report. Reopen with the title ID and the log where it hangs on main if you find one.
Pull request closed