Skip to content

feat(run-report): write the run report when a game ends - #14235

Merged
oneandonlydean merged 8 commits into
boykopovar:mainfrom
oneandonlydean:rr/pr2-writer
Nov 5, 2026
Merged

oneandonlydean merged 8 commits into
boykopovar:mainfrom
oneandonlydean:rr/pr2-writer

Conversation

@oneandonlydean

Copy link
Copy Markdown
Collaborator

What

Writes the run report when a converted game ends: anyps5-report.json, in the format of #14165. It holds the build revision and whether the build is modified, the game (title ID, content version, name), the machine (OS version, CPU model, memory), and the list of unimplemented functions that were called. It is on by default; --aps5-report=off or APS5_REPORT=0 turns it off (--aps5-report=on / APS5_REPORT=1 forces it on for a process that is not a converted game). With the report off nothing is collected or written.

This is the second of four PRs. It writes only what a run that ends through exit can know. Milestones, frame counts, GPU, shader and image-format counters are marked as not collected (coverage false); they come in the next PR. A run that crashes, aborts or is killed writes no report yet; that is the last PR.

  • Written next to the executable; when that folder cannot be written, to reports/<run id>/ in the data folder. Written atomically (temporary file, then rename) through a folder walk that refuses links.
  • When: the guest's exit and _exit; on Linux and macOS also when the entry returns or the host calls std::exit (an atexit hook). On Windows only exit and _exit write a report, because a DLL's exit handlers run inside the loader lock.
  • Every text value goes through one filter for user names, host names, addresses and account numbers; a value that does not fit the schema is dropped (null), never guessed.
  • NotImplemented_nid_no_patch(name) becomes a macro that also passes __FILE__ and __LINE__, so missing.functions can name the library and the source line. The definitions are parenthesised so the macro does not rewrite them. The root CMakeLists.txt adds -fmacro-prefix-map=<source dir>/= for C++ on GCC and Clang so that the paths of first-party code in the binaries are source-tree relative: strings finds no absolute source-tree path for core/, tools/ or demo/ files in any library or test binary (test binaries still contain build-directory strings such as .../libs/unpatched). C sources of the third-party libraries are not covered by the flag and still carry their build path.
  • libkernel supplies the game metadata through a provider; each library that registers itself with the report is stamped with the same build revision, so anyps5.modified is null rather than a guess when a library comes from another build.

Tested

Linux only. run_report_tests: 47 passed, 0 failed, 2 not run (the comma-decimal locale test, when no such locale is installed; the junction test, Windows only). tools/tests/test_run_report_schema.py 27 tests, tools/tests/test_run_report_docs.py 6 tests, and tools/tests/validate_run_report_dump.py (every report the test binary writes validates against the schema): 10 valid. ctest of the tests selected from this diff (6 CMake directories, including the root one) plus public_headers (65): 502 tests, 100% passed, none skipped. The new test child-guest-root-not-fixed-at-load runs in a child process (so no earlier test can have touched the path resolver); it fails on the previous process-detection code and passes now (see below).
Cost of the report, a game-less entry (run_report_tests --child exit), 300 runs, three rounds, report off versus on, median of the round medians: 1.46 ms off, 1.71 ms on, so about 0.25 ms added to a run that writes one report (no title measured).
Not run: Windows and macOS (the platform code in RunReport.cpp), and the junction test (Windows only); the comma-decimal locale test is skipped when no such locale is installed. Not tested with a title.

A bug found on the way: detecting a game process by resolving /app0/... through the runtime's path resolver from a static initialiser fixes libc's guest root at load time (it records the working directory on first use). Six existing tests that change directory afterwards failed (guest_fopen_errors, guest_record_lock_owners, guest_path_errors, guest_app_icon, guest_app_info, guest_directory_link_types). This PR checks <cwd>/app0/sce_sys/param.json|param.sfo directly instead.

Things reviewers may question

  • Default on. A file is written next to the executable without being asked. Whether a run is a game depends on a working-directory check (app0/sce_sys/param.json or .sfo under the current directory at load); APS5_REPORT=1 forces it for anything else.
  • The NotImplemented_nid_no_patch macro changes 24,572 call sites in 366 files without editing them. Any code that declares or defines NotImplemented_nid_no_patch(const char*) in a file that includes General.hpp must write it as (NotImplemented_nid_no_patch)(...); a test that stubs it and links library sources also needs a NotImplementedAt_nid_no_patch stub. This PR updates the four such files on main. Open PRs that add such a definition in a test file: fix(libSceUsbd): retain devices during active USB operations #9803, feat(libressl3): report OpenSSL version strings #9970, feat(libSceJson2): implement allocator-backed values and recovery #10378, feat(equeue): implement macOS edge watches #12741 and feat(libkernel): support macOS pipe write readiness #13560 (each defines the stub in a test file that links library sources); they will fail to link until they add NotImplementedAt_nid_no_patch.
  • Build paths. __FILE__ is embedded at each site; the prefix map above makes it source-relative for first-party C++ on GCC and Clang. MSVC has no equivalent flag, third-party C sources still embed their build path, and the schema test only runs where jsonschema is installed (the workflow installs it; run_report_schema is registered in ctest only when Python has it).
  • Windows: no atexit hook, so a return from the entry writes no report there. The Windows and macOS code has not been run.
  • Exit cost. Finish waits up to 3 seconds for a finish that is already in progress on another thread, and up to 1 second for the game metadata provider; a normal single-threaded exit does neither. Measured start-up and exit cost: see Tested.
  • Size. RunReport.cpp is about 1,600 lines, of which roughly 400 are the platform path-safety code (WriteAtomically, ReadBounded, FolderIsReachable).
  • A generated RunReportRevision.hpp and a CMake custom target stamp the revision into libc and the libraries that register themselves.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

A run of a converted game writes anyps5-report.json when it ends through
exit or _exit (or the entry returns): the build revision, the game, the
machine, and the unimplemented functions that were called. It is on by
default; --aps5-report=off or APS5_REPORT=0 turns it off. Every text value is
filtered for user names, host names, addresses and account numbers. Runs that
crash, abort or are killed write no report yet; milestones, frame counts and
shader and image lists are marked as not collected.
@oneandonlydean oneandonlydean self-assigned this Nov 1, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed libc libkernel build docs prx ci .github labels Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 7645 core/libs/prx/libc/CMakeLists.txt L195-196
PR 12849 docs/dev/ENVIRONMENT.md L632
PR 12884 core/libs/prx/libc/CMakeLists.txt L194-195

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.

Pull request Shared files not compared
PR 1835 CMakeLists.txt
PR 1896 docs/dev/ENVIRONMENT.md
PR 4472 docs/dev/ENVIRONMENT.md
PR 5021 CMakeLists.txt
core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/General.cpp
docs/dev/debt/libc.md
docs/user/USAGE.md
PR 5303 docs/dev/debt/libc.md
PR 5925 docs/user/USAGE.md
PR 6186 docs/dev/ENVIRONMENT.md
PR 6819 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 6924 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 7081 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 7386 docs/dev/debt/libc.md
PR 7447 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 7449 docs/dev/ENVIRONMENT.md
PR 7457 docs/dev/ENVIRONMENT.md
PR 7514 docs/dev/ENVIRONMENT.md
PR 7604 docs/dev/ENVIRONMENT.md
PR 7642 CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 7715 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 8004 docs/dev/ENVIRONMENT.md
PR 8150 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 8246 docs/dev/ENVIRONMENT.md
PR 8484 docs/dev/ENVIRONMENT.md
PR 8965 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 9012 docs/dev/ENVIRONMENT.md
PR 9162 core/libs/prx/libc/src/Process.cpp
PR 9340 docs/dev/debt/libc.md
PR 9345 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 9356 docs/dev/ENVIRONMENT.md
PR 9371 core/libs/prx/libc/src/General.cpp
docs/dev/debt/libc.md
PR 9387 docs/dev/ENVIRONMENT.md
PR 9447 core/libs/prx/libc/include/General.hpp
docs/dev/debt/libc.md
PR 9526 docs/dev/debt/libc.md
PR 9539 CMakeLists.txt
PR 9712 docs/dev/ENVIRONMENT.md
PR 9852 docs/dev/ENVIRONMENT.md
PR 9898 docs/dev/ENVIRONMENT.md
PR 9929 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/include/General.hpp
docs/dev/debt/libc.md
PR 10113 docs/dev/debt/libc.md
PR 10193 CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 10226 docs/dev/debt/libc.md
PR 10245 docs/dev/debt/libc.md
PR 10250 docs/dev/debt/libc.md
PR 10253 docs/dev/debt/libc.md
PR 10265 docs/dev/debt/libc.md
PR 10274 docs/dev/debt/libc.md
PR 10325 docs/dev/debt/libc.md
PR 10328 docs/dev/debt/libc.md
PR 10345 docs/dev/debt/libc.md
PR 10349 docs/dev/debt/libc.md
PR 10405 docs/dev/debt/libc.md
PR 10442 docs/dev/ENVIRONMENT.md
PR 10479 docs/user/USAGE.md
PR 10506 docs/dev/debt/libc.md
PR 10510 docs/dev/debt/libc.md
PR 10512 docs/dev/debt/libc.md
PR 10565 docs/dev/debt/libc.md
PR 10757 docs/dev/ENVIRONMENT.md
PR 10861 docs/user/USAGE.md
PR 10894 docs/dev/ENVIRONMENT.md
PR 10987 docs/dev/debt/libc.md
PR 11260 docs/dev/debt/libc.md
PR 11262 docs/dev/debt/libc.md
PR 11266 docs/dev/debt/libc.md
PR 11332 docs/dev/debt/libc.md
PR 11351 docs/dev/ENVIRONMENT.md
PR 11435 docs/dev/ENVIRONMENT.md
PR 11436 docs/dev/ENVIRONMENT.md
PR 11632 docs/dev/debt/libc.md
PR 11634 docs/dev/debt/libc.md
PR 11724 docs/dev/debt/libc.md
PR 11726 docs/dev/debt/libc.md
PR 11831 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 11907 docs/dev/debt/libc.md
PR 12120 docs/dev/ENVIRONMENT.md
PR 12122 docs/dev/debt/libc.md
PR 12323 docs/dev/ENVIRONMENT.md
PR 12324 docs/dev/ENVIRONMENT.md
PR 12397 docs/dev/debt/libc.md
PR 12514 docs/dev/debt/libc.md
PR 12544 docs/dev/ENVIRONMENT.md
PR 12560 docs/dev/debt/libc.md
PR 12567 docs/dev/ENVIRONMENT.md
PR 12574 docs/dev/debt/libc.md
PR 12593 docs/dev/debt/libc.md
PR 12622 docs/dev/debt/libc.md
PR 12627 docs/dev/debt/libc.md
PR 12678 docs/user/USAGE.md
PR 12682 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 12688 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 12700 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 12746 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 12863 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 12921 docs/dev/ENVIRONMENT.md
PR 12930 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 12965 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 12970 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 13119 docs/dev/debt/libc.md
PR 13390 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 13578 CMakeLists.txt
PR 13646 docs/dev/ENVIRONMENT.md
PR 13707 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 13804 docs/dev/debt/libc.md
PR 13863 docs/dev/ENVIRONMENT.md
PR 13920 docs/dev/ENVIRONMENT.md
PR 13928 CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 13929 CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 14212 CMakeLists.txt
docs/dev/debt/libc.md
PR 14264 CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 14299 docs/dev/ENVIRONMENT.md
PR 14585 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 14610 docs/dev/debt/libc.md
PR 14943 docs/dev/ENVIRONMENT.md
PR 15059 docs/dev/ENVIRONMENT.md

The schema test starts run_report_tests from Python: the libc folder was not
on PATH, so the executable failed to load (0xc0000135), and the --dump mode
that writes the sample reports existed only on POSIX, so there was nothing to
validate.
# Conflicts:
#	docs/dev/debt/libc.md
@JJenkx

JJenkx commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Linux title validation of head 37945925073dc3a1e6cacfc5baaaf4afa168c4ee on main 1f2c1da1fbc2e455b921616cdacb5a714d7fe7ba:

  • Private integration 13970f33540e927e71123795c983ccdbbfcd9c98 preserves both histories. The only conflict was additive entries in docs/dev/debt/libc.md; both were retained. Source/test/workflow files merged automatically. Conventions pass.
  • Asterix & Obelix Slap Them All!, PPSA08576 01.000.000, Linux/RADV Mesa26.2.6, RX6650XT. Main and integration used independent empty saves/caches and the same scripted inputs. Both reached the first forest/game-over scene and closed normally: native exit0, 152.3s including scheduled close/cleanup. Reviewed composite and near-time X11 captures agree; enemy animations differ. This is not a timing or FPS comparison.
  • Main wrote no run report. The integration, with reporting left at its default, wrote anyps5-report.json (1,395bytes). It validates against the schema and records the exact integration commit, modified:false, correct title/version/name, Linux/CPU/RAM metadata and clean guest exit0. GPU/FPS/shader coverage remains false. framesPresented:0 is the documented uncollected placeholder, not zero observed frames; average FPS and GPU are null.
  • The same five runtime groups pass on both builds: guest_crt, guest_path_errors, guest_app_info, guest_directory_link_types, public_headers. Integration also passes run_report (47passed, 0failed, 2explicitly not run), run_report_schema, run_report_revision (8cases), 27schema tests and 6docs tests. Both full libs/relinker builds pass. Original inputs and frozen SDK hashes remain unchanged, kernel setting restored, no remaining test-game processes.

Normal Linux exit only; no Windows/macOS, crash/kill recovery, audio, completion or performance claim.

Exact source integration · Report, tests, patch and reviewed captures. Archive SHA256 9a931e71a6cd1a4f5721804f81df2aab280f662c1dc10bdb4a20c19a11f2157c; downloaded copy and all16 internal hashes verified. No guest binaries/assets/saves/shader data included. AI-assisted: yes (Codex).

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: this PR breaks the Emscripten portability build with a link error

The Emscripten library-portability job fails on this head at link time, and the cause is this PR. It changes NotImplemented_nid_no_patch in core/libs/prx/libc/include/General.hpp into a macro that calls a new function, NotImplementedAt_nid_no_patch(name, __FILE__, __LINE__). The Emscripten test emscripten_module_unwind compiles libkernel/Module/src/Module.cpp, which uses that macro, and it defines only NotImplemented_nid_no_patch (core/libs/tests/emscripten/EmscriptenModuleUnwind.cpp, line 18). The new symbol is not defined in that link, so it fails.

What I ran

  • Head a6bb84be17d6c58584ce6bdbfeb603cf462db496; base 90cc8d57a5c98bc1ae1237c94516c025031c7c58. The PR touches the libc run-report files, General.hpp, General.cpp, the libc and root CMake files, a schema workflow and the docs (the full list was not counted).
  • Read the General.hpp change at the head (lines 15-17: the new declaration and the macro) and the base (line 15: the function). Read the new definition in General.cpp (around lines 1020-1030).
  • Read the emscripten_module_unwind_tests target in core/libs/tests/emscripten/CMakeLists.txt: it compiles EmscriptenModuleUnwind.cpp, libkernel/Module/src/Module.cpp and libSceSysmodule/Export.cpp. It does not compile General.cpp.
  • Read EmscriptenModuleUnwind.cpp at the base and at the head: both define NotImplemented_nid_no_patch(const char*) at line 18; neither defines NotImplementedAt_nid_no_patch.
  • Hosted: the library-portability job fails with wasm-ld: error: … undefined symbol: NotImplementedAt_nid_no_patch in emscripten_module_unwind_tests.dir/…/Module.cpp.o. No NotImplementedAt appears anywhere in the base.
  • Hosted, other jobs: conventions, eligibility, labels, report, schema, the three macOS and Ubuntu and Windows relinkers, relinker-asan and the write-watch jobs passed; windows was cancelled; linux skipped.
  • Read-only checks from the trusted main checkout: diff check, conventions and PR template, and the stack check all passed (no declared dependencies, no errors). ABI audit passed with warnings: 16 findings, not read in detail.
  • No MarcZX10 review at this head.

Results

Check Result Note
Diff check passed
Conventions and PR template passed conventions check from the main checkout
Mergeability and dependencies passed stack check passed; no declared dependencies; no errors
Emscripten library-portability (hosted) failed link error: undefined symbol: NotImplementedAt_nid_no_patch in emscripten_module_unwind_tests; caused by the new macro in General.hpp
NotImplementedAt_nid_no_patch defined for the Emscripten test no the test defines only NotImplemented_nid_no_patch
Windows CTest cancelled no result for this head
Relinkers and relinker-asan (hosted) passed all succeeded
ABI audit (main-checkout tool) passed with warnings 16 findings, not read in detail
Negative controls not run no local build
Hosted CI failed library-portability failed; windows cancelled
Read-only check output

Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: passed with warnings (16). Stack check: passed, no errors. Hosted: gh api repos/boykopovar/AnyPS5/commits/a6bb84be17d6c58584ce6bdbfeb603cf462db496/check-runs, and the library-portability job log.

Negative control

Not run here. A negative control needs a local build, and code from this head is not run here.

Findings

Blocking

  • The Emscripten library-portability job fails at link time on this head. The new macro in General.hpp (lines 16-17) makes Module.cpp call NotImplementedAt_nid_no_patch, which core/libs/tests/emscripten/EmscriptenModuleUnwind.cpp does not define. Fix one of these: define NotImplementedAt_nid_no_patch in that test with the new signature, or keep the call sites linking as they did before. Then rerun the library-portability job.

Non-blocking

  • The ABI audit reports 16 findings that were not read in detail.

Sources

Not verified

  • The 16 ABI findings.
  • Whether any other test target builds Module.cpp without General.cpp.
  • The Windows result (cancelled).

To get this to a good state

  • Define NotImplementedAt_nid_no_patch in EmscriptenModuleUnwind.cpp, or change the macro so the Emscripten target still links. Rerun library-portability.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 2, 2026
# Conflicts:
#	core/libs/prx/libc/CMakeLists.txt
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 2, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 3, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 4, 2026
NotImplemented_nid_no_patch now expands to NotImplementedAt_nid_no_patch, so
Module.cpp in emscripten_module_unwind_tests references the located entry
point, which that test target does not link from libc. Stub it next to the
existing one.
The Start-time checkpoint calls Snapshot before the exit hook runs, so the
function-local static regexes it uses (and the component list) were
constructed early and destroyed by the library's finalizer before
FinishAtExit read them. A run with a title id then crashed at exit.
Allocate them once and never destroy them.
@oneandonlydean
oneandonlydean dismissed MarcZX10’s stale review November 5, 2026 01:08

The Emscripten link error is fixed on the current head ba6ccc0: the library-portability job passes there. Dismissing as met; happy to look again if you see anything else.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head ba6ccc0 merged onto main b611e63 · tested 2026-11-05 02:35 UTC · 73 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 3,867 passed · 19 failed (0 new, 14 also fail on main, 5 unstable on main) · 62 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Vulkan validation ✅ no new validation IDs vs main (1405 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.4 s, ⚠️ agc_driver_graphics_maps_fallback 120.3 s, ⚠️ agc_driver_graphics 120.2 s, ⚠️ agc_driver_bda_device 67.5 s, ⚠️ public_headers 66.3 s
Unstable on main (5, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_array_layer_target_cpu: failed in 3 of the last 10 main runs
agc_driver_graphics: failed in 3 of the last 10 main runs
agc_driver_graphics_maps_fallback: failed in 2 of the last 10 main runs
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
agc_driver_two_sample_alpha_to_coverage_sample_mask_export: failed in 4 of the last 10 main runs
Failing on main too (14, not counted against this PR)
agc_driver_alpha_to_coverage_sample_mask_export
agc_driver_guest_memory_lifetime_direct
agc_driver_image_gather_volume
agc_driver_image_table
agc_driver_job_manager_compute_capacity
agc_driver_native_depth_bda_clear
agc_driver_native_depth_buffer_clear
agc_driver_native_depth_clears
agc_driver_native_multisample_depth
agc_driver_submit_progress
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Passed on retry (2, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)
agc_driver_emulated_color_compare_srgb_decode: Timeout in the parallel run; also passed only on retry in 34 other runs in the last 7 days
agc_driver_sgpr_pattern_fill_keys: Failed in the parallel run; also passed only on retry in 9 other runs in the last 7 days
Validation IDs already present on main (4 IDs in 811 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (811 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_draw_space_reuse, agc_driver_address_draw_space_reuse_held, agc_driver_address_draw_space_reuse_off, agc_driver_address_draw_space_reuse_transitions, agc_driver_address_draw_space_reuse_verify, agc_driver_address_passes, and 803 more
VUID-vkCmdCopyImage-srcImage-01548 (11 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store_image_copy, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_partially_unmapped_plane, agc_driver_depth_plane_unmapped_plane, and 3 more
VUID-vkCmdCopyImage-srcImage-01551 (11 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store_image_copy, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_partially_unmapped_plane, agc_driver_depth_plane_unmapped_plane, and 3 more
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
Skipped (62)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_copied_writer_label_order_drain: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_idle_publish_wait: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a forced watch of the import reads its submissions as CPU stores
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_storage_pending_key_refresh: skipped, refreshes over a pending key store are not testable here
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergp
Reproduce
git fetch origin ba6ccc01c6de67f5591fd83d2404a3d6418cf046 b611e634f7fc024f0c13e342d96de744448ef1d9
git checkout b611e634f7fc024f0c13e342d96de744448ef1d9 && git merge --no-ff ba6ccc01c6de67f5591fd83d2404a3d6418cf046
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@oneandonlydean
oneandonlydean merged commit 1fe3ee8 into boykopovar:main Nov 5, 2026
20 of 21 checks passed
oneandonlydean pushed a commit that referenced this pull request Nov 6, 2026
…ruction

FindFrameFast (Linux) and IndexFrames (Windows) cache each image's data in a
function-local static std::map guarded by a static std::mutex. Both are
destroyed at exit when libc.prx is finalized, while another thread can still
be throwing. Since #14235 the run report reads the title metadata on a
detached thread, and in the ASan nightly the throw from AppMetadata's
copyToFixedBuffer in that thread reads the freed map (heap-use-after-free at
Unwind.cpp:233) in download_data_mount_invalid, guest_flexible_memory_invalid
and three guest_convert_keycode_title tests.

Allocate the caches and their mutexes and never destroy them, as libkernel
does for its unwind images, its frame table cache and its thread stacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants