test(agc): skip process sampler stack test on SEH toolchains #26061
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/26061"
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 u-instinct11 on 2026-11-23T06:57:05Z.
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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T07:42:51Z.
Review: APPROVED
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
29f22d9e7312d4a4f123bcea45f378364afca8b9using 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
Findings
Blocking
None.
Non-blocking
None.
Sources
The conditional definition and CTest skip return code are in
core/libs/prx/libSceAgcDriver/CMakeLists.txtat the reviewed head. The test returns 77 only afterCheckRegions()succeeds incore/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.
Imported from boykopovar/AnyPS5. Originally posted by mihiii1337 on 2026-11-23T15:00:05Z.
Review: COMMENTED
Relationship check on exact head
29f22d9e7312d4a4f123bcea45f378364afca8b9: the CMake-detected SEH skip is correctly scoped andcheck_skips.pyaccepts 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
Pull request closed