Repository navigation
test(agc): skip process sampler stack test on SEH toolchains - #26061
u-instinct11 wants to merge 1 commit into
Conversation
The test needs fixture frames without .pdata so the sampler steps them through their DWARF records. GCC built for SEH (MSYS2 UCRT64) gives every frame .pdata, and disabling it drops the DWARF records too or selects SjLj, so the test cannot exercise that path there. Skip it with exit code 77 when CMake detects System V ABI SEH exceptions; DWARF toolchains still run it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@u-instinct11 the change itself looks fine to me: on a toolchain that emits native unwind metadata the fixture cannot have DWARF-only frames, so skipping with return code 77 and SKIP_RETURN_CODE is the right shape, and ANYPS5_SEH_UNWIND is set only for ANYPS5_MINGW_SYSV_SEH_EXCEPTIONS builds. The conventions check fails only because the PR description does not use the template: it needs the '### What', '### Tested' and '### Checklist' headings (run 45127622798). Please edit the description to follow .github/pull_request_template.md and keep your explanation under '### What'; the checks rerun when you save it. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the reviewed code conditionally skips the stack-walking test on the detected System V ABI SEH toolchain while retaining its existing region checks.
What I ran
Reviewed head 29f22d9e7312d4a4f123bcea45f378364afca8b9 using the prepared diff and pinned repository reader. No test commands were run. The PR description reports a Windows 11/MSYS2 UCRT64 run; that is author-reported, not a run I performed.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed code review | passed | Both changed files read |
| Tests | not run | No local test environment available |
| Negative control | not run | No test mutation performed |
Findings
Blocking
None.
Non-blocking
None.
Sources
The conditional definition and CTest skip return code are in core/libs/prx/libSceAgcDriver/CMakeLists.txt at the reviewed head. The test returns 77 only after CheckRegions() succeeds in core/libs/prx/libSceAgcDriver/tests/ProcessSamplerStack.cpp.
Not verified
I did not run the test or verify behavior on Windows, MSYS2, or a physical console. Both changed files listed as reviewed were read; no changed files were excluded.
To get this to a good state
Nothing is required.
mihiii1337
left a comment
There was a problem hiding this comment.
Relationship check on exact head 29f22d9e7312d4a4f123bcea45f378364afca8b9: the CMake-detected SEH skip is correctly scoped and check_skips.py accepts its expected JUnit result. I do not see a code defect in this fallback.
However, #24354 now exercises the existing native-SEH stack walker instead of skipping the test; my new WinLibs native-SEH control passed its full caller-sample path, and current main still fails on the actual MSYS2-SEH configuration. I therefore recommend merging #24354 and then closing this PR as superseded. Merging both would restore the skip and lose the SEH regression coverage that #24354 adds.
No new MSYS2 or GPU run was performed for this comparison.
AI-assisted: yes
|
Thanks @mihiii1337 for checking both implementations and the native SEH path. I agree that #24354 should go first because it exercises the caller walk on SEH toolchains. I have marked this skip fallback as a draft while that fix is open. |
|
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.
|
What
agc_process_sampler_stackfails on MSYS2 UCRT64 GCC 16.2 withfixture unexpectedly has native Windows unwind metadata(one of the four failures in #25167). The cause is the compiler, not the GPU.The test needs fixture frames without
.pdata, so that the sampler has to step them through their DWARF records. A DWARF-exception GCC such as WinLibs is built with-fno-asynchronous-unwind-tablesand leaves them out. A System V ABI SEH GCC such as MSYS2 UCRT64 doesn't get that flag, so every frame gets.pdata. I tried two ways to get DWARF-only frames there:-fno-asynchronous-unwind-tablesselects SjLj exceptions, which fails to link.-fno-exceptionsdrops.eh_frame, so the sampler can't walk the frames (process sampler caller: missing).So when CMake detects
ANYPS5_MINGW_SYSV_SEH_EXCEPTIONS, the test now exits with code 77 (SKIP_RETURN_CODE). DWARF toolchains still run it in full.Tested
Windows 11 26200, MSYS2 UCRT64 GCC 16.2.0:
agc_process_sampler_stackreports Skipped, andtools/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