test(libc): cover siginterrupt state boundaries #9001
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9001"
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 Queuse on 2026-10-21T09:13:26Z.
What
Add a focused siginterrupt regression for signal-set boundaries, nonzero flags, errno and neighboring-state preservation, later signal registrations and invalid signals. The implementation is already in main; this PR changes only the regression fixture and its CTest registration.
Tested
Windows 11 x86-64, WinLibs MinGW-w64 GCC 15.2.0-r7, Ninja, Release. Head
48c595d09dincludes main63a863d3b0.75227c7cdcleaves the focused library/fixture sources and test registrations unchanged after the tested base; the trial merge is clean and retains the intervening debt corrections. Intervening shader changes are outside these focused runtime tests.The confirmed order is #9001 before #10749. The latter adds libSceLibcInternal to this test target when it integrates main; #9499 follows #10749. This test has no library-implementation dependency.
Overlap snapshot
63a863d3b0: no confirmed intersection for this test-only change. 20 shared-file comparisons are incomplete because those branches conflict with the base: #4563, #5021, #6830, #6936, #7192, #7201, #8520, #9187, #9284, #9293, #9297, #9302, #9499, #9557, #9561, #9566, #9575, #9669, #9693, #9938. Manual inspection finds distinct kernel test registrations and unrelated platform settings; no duplicate fixture or CTest name. These checks do not establish a combined runtime pass with the conflicting branches.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)Imported from boykopovar/AnyPS5. Originally posted by clairtonmichel on 2026-10-21T09:26:34Z.
Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5):
libcsignal and state boundary test suite (guest_signal_interrupt,guest_signals,guest_sigtimedwait,guest_sigaltstack,guest_host_libc, etc.): 100% passed successfully (15/15 green in 2.28s).siginterruptstate boundaries coverage behaves correctly on host. Ready to merge!Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T00:50:28Z.
@Queuse a merge-order note: this PR carries #8866's and #8872's commits, and #9499 changes
Signals.cppnext to both: aSettleReset(guest)call insignal_nid_postfix, and a load-time registration ofsigprocmaskwith libc at the end of the file. Both sides' lines stay. #9499 goes after #8866 and proposes going before #8872 and this PR, which would rebase over it. If you'd rather, say so and #9499 will list them under Depends on.Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-22T01:05:03Z.
@EagleBearerYS That order works for me: #8866 → #9499 → #8872 → this PR. I've added #9499 to the dependencies here. Once it lands, I'll rebase, keep
SettleReset(guest)alongside the_sigintrcheck and preserve both load-time registrations, then rerun the focused signal tests. Thanks for checking the overlap.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T10:52:38Z.
Review: APPROVED
Reviewed current head
48c595d09dd9f834534c65b944a2c7648fc58bfaagainst63a863d3b07f2457ee1210f1abba1c11409cdff5: approve. No actionable findings in this signal regression test and its CMake registration.The test covers all four signal-set word boundaries, nonzero/zero flag behavior, neighboring bits, errno preservation, handler/mask preservation, subsequent signal registration and invalid-signal rejection. Reviewed the complete author patch and the matching Process.cpp siginterrupt bridge and Signals.cpp implementations; the expected shared-state behavior is consistent.
Validation: the complete exact head GuestSignalInterrupt.cpp compiled and ran successfully with the pinned Process.cpp and Signals.cpp source units, using the repository's Windows DWARF/unwind settings and section-renaming step. Existing development libkernel/libc DLLs supplied ancillary symbols; this is a pinned-source integration test, not a complete rebuild of those libraries. Conventions, whitespace and test registration passed. The test is absent from baseline, so no artificial baseline import/link failure is claimed as regression sensitivity.
The earlier attempt used older DLLs without the required exports and standalone builds omitted the repository's unwind settings. Those reviewer-environment limitations are resolved for this focused test. Hosted native jobs remain skipped; no full application/game execution is claimed.