Repository navigation
fix(tests): keep DWARF unwind tables in the future_error test on macOS - #11808
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Static review matches the existing configure_macos_unwind pattern already used by guest_bad_optional_access and unwind_callback_abi; the helper adds the DWARF unwind compile flag and disables compact unwind only on Apple, so this target-specific addition is appropriately scoped. I also confirmed the current-main merge tree is clean. I am leaving this as a comment review rather than approval until the two macOS register-context jobs (Debug and Release) and macOS relinker checks finish; they are still pending. The Linux/Windows and ASan checks currently pass.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Windows run of this head
AI-assisted: yes (Claude Code) |
|
Checked that |
What
guest_future_categoryaborts on macOS inCheckFutureError:_Throw_future_errorand thefuture_errorvtable's raise slot throw through libc's__cxa_throw, and the test catches in its own frames. libc's unwinder walks host frames with their DWARF FDEs. On macOS the linker describes the test's frames with compact unwind (__unwind_info) and keeps no__eh_frame, so the unwinder cannot step into the catching frame and the exception reachesterminate. This is the same case #8311 fixed forguest_bad_optional_access.The test target now calls
configure_macos_unwind, next toconfigure_windows_unwind. It is a no-op on other hosts.Tested
main1e5e1d5 plus feat(libkernel): direct memory mappings on macOS hosts #7631, build(libkernel): compile Exception on macOS #11249, fix(libSceLibcInternal): declare environ for the spawn test on macOS #11358, build(libSceAudioIn): keep --exclude-libs off Apple's linker #10669, fix(libkernel): build the file, module and rtld calls on macOS hosts #10552, feat(libkernel): process, thread and clock queries on macOS hosts #7804, build(agc): compile Lifecycle, GuestMemory and GuestBufferMemory on macOS #11447, build(agc): keep the Linux-only parts of three AGC tests off macOS #11437 and fix(agc): load the Vulkan loader and list MoltenVK on macOS #11554, with this commit toggled.__unwind_infoand no__eh_frame; the test aborts as above, 3 of 3.__eh_frame;guest_future_categorypasses 3 of 3.guest_future_categorypasses 3 of 3.tools/check_conventions.pypasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code