fix(libc): resume host foreign exceptions with host unwinder #3520
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3520"
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 MarcZX10 on 2026-10-11T12:11:53Z.
What
On current
main, the Linux GCC 13.3 reproduction for issue #3459 aborts inLibcUnwind::Step(context)atcore/libs/prx/libc/src/exception/Unwind.cpp:519while resuming a host C++ exception. The custom unwinder owns AnyPS5 exceptions, but this host exception must be resumed by the host unwinder. Delegate non-native exceptions to the next Linux_Unwind_Resumeimplementation. Keep AnyPS5-native exceptions and active forced unwinds on the existing custom path.Tested
Ubuntu 24.04, GCC 13.3.0, glibc 2.39:
guest_kernel_stack_protectfails on the base commit withSubprocess aborted, then passes with this change.exception_runtimeandexception_personalitypass with the change. The forced-unwind coverage inexception_runtimeconfirms that active forced unwinds still use the custom path.git diff --checkandpython3 tools/check_conventions.py --base upstream/mainpass.Checklist
main; no other open PR implements the same fixNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryFixes #3459.
Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T12:23:36Z.
Windows validation of the current head
53c05aa5merged ontomain1e8fff68(Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,BUILD_TESTING=ON, full build includinglibs):exception_runtime,exception_personalityandguest_kernel_stack_protectpass 3/3.ctest -j8 -E "^agc_driver_|^video_out_flip": 533/536. The three failures are all present on unchangedmain1e8fff68on this host and unrelated to this change:windows_exceptions(#3411, since #1423),guest_kernel_sys(symlink: Function not implemented, since #3491 merged, reported there) andguest_filesystem(restoring the directory time atGuestFilesystem.cpp:286, which #3518 addresses).So the Windows build is neutral to this change; it neither fixes nor worsens the Windows unwinder regression in #3411.
Validation run with Claude Code assistance.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T12:33:09Z.
Thanks for running the Windows build and regression checks. This confirms the patch is neutral on that host and keeps the Windows unwinder regression tracked separately under #3411.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-11T17:25:48Z.
Checked on CI's toolchain: Ubuntu 24.04, GCC 13.3, Release with CI's configure flags, RTX 4070 Ti.
guest_kernel_stack_protectaborts 3/3 onmaina11c8f7f(as in #3459) and passes 3/3 with this PR (b316c988). In the fullctest, no test fails with this PR that doesn't also fail onmainon this machine. The others that fail there areagc_driver_emulated_color_compare(#3526) and the BDA read tests that hang this machine's older NVIDIA driver (#3291).AI-assisted: yes