agc_host_import_cut_lifetime fails on Windows since the merge of #9159 #10746

Closed
opened 2026-10-24 20:37:19 +00:00 by xXPBSXx · 0 comments
xXPBSXx commented 2026-10-24 20:37:19 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-24T20:37:19Z.


What happens

ctest -R ^agc_host_import_cut_lifetime$ fails on Windows with AGC graphics: the larger side of an unmap of 1440 KiB at the start of the import's first 2 MiB run left the write watch, on every main commit from the merge of #9159 (6b23aaf129) on; it passed on the merge before it (c035bd5b70, #9424).

Title, test or build step

CTest agc_host_import_cut_lifetime (agc_driver_recorder_tests --host-import-cut-only; registered in core/libs/prx/libSceAgcDriver/CMakeLists.txt). Synthetic test, no title.

AnyPS5 commit

Bisected on the first-parent line of main, unmodified main at each commit: last passing c035bd5b70 (merge of #9424), first failing 6b23aaf129 (merge of #9159, "fix(agc): keep a rewatched import's memory compared once it is shared", merged 24.10.2026 18:26Z). Still failing at 0ea0f25e1b.

System

Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs), Release, NVIDIA GeForce RTX 4080 SUPER. Windows only: not run on Linux or macOS.

Steps to reproduce

Build agc_driver_recorder_tests on the commit and run ctest -V -R ^agc_host_import_cut_lifetime$ in the build directory. It stops after about 1 to 3 seconds.

Log

Failing run on 6b23aaf129:

host import after cut: a page made inaccessible inside the import, nearer its start: the changed import was retired before the remaining range was imported, and the GPU and write watch see the guest's bytes
host import after cut: a page made inaccessible inside the import, nearer its end: the changed import was retired before the remaining range was imported, and the GPU and write watch see the guest's bytes
host import after cut: an unmap of a 2 MiB run inside the import: the changed import was retired before the remaining range was imported, and the GPU and write watch see the guest's bytes, also after the pages were mapped again
host import after cut: an unmap of the import's first 2 MiB run: the changed import was retired before the remaining range was imported, and the GPU and write watch see the guest's bytes, also after the pages were mapped again
AGC graphics: the larger side of an unmap of 1440 KiB at the start of the import's first 2 MiB run left the write watch
1/1 Test #426: agc_host_import_cut_lifetime .....***Failed    1.58 sec

Passing run on c035bd5b70:

Host import cut lifetime tests passed
1/1 Test #423: agc_host_import_cut_lifetime .....   Passed    1.24 sec

What was checked

  • Bisect, one run per commit, each commit built fresh: 5c90b0a65e, d003e64fcf, 29f539a5f3 and c035bd5b70 pass; 6b23aaf129, 1c6e10f170 and 0ea0f25e1b fail with the same message.
  • The test fails with the same message in 4 of 4 logged runs on a branch carrying #6565 and in 2 of 2 runs with that branch's three source files set back to main 0ea0f25e1b, so the failure does not come from #6565.
  • On 6b23aaf129, setting back only core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp to its c035bd5b70 state (the libc changes of #9159 stay) makes the test pass. Setting back all four production files of #9159 (that file, libc/include/WindowsMappings.hpp, libc/include/GuestArena.hpp, libc/src/GuestArena.cpp) passes too. Setting back only the three libc files does not build, because GuestMemory.cpp then calls GuestArena functions that do not exist.
  • The Windows job windows of #9159 was skipped; the Windows job that ran (relinker (windows-latest, g++), 244 tests, all passed) contains no agc_* test.
  • A search of issues and pull requests for agc_host_import_cut_lifetime, cut_lifetime, left the write watch and 9159 found no report of this failure.
  • Not established: which part of the change to GuestMemory.cpp in #9159 (+38/-3) (the refused map with refusedSince, noteRefusedWalk, the GuestArenaCompareWhenShared call in Rewatch, the GuestArenaCompareResidentWhenShared call in ImportWatched) causes it; whether the test or the product code needs the fix; Linux and macOS (the macOS write-watch jobs of #9159 passed; I did not check which tests they run); other GPUs.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6017350826 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/10746). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-24T20:37:19Z. --- ### What happens `ctest -R ^agc_host_import_cut_lifetime$` fails on Windows with `AGC graphics: the larger side of an unmap of 1440 KiB at the start of the import's first 2 MiB run left the write watch`, on every `main` commit from the merge of #9159 (`6b23aaf129`) on; it passed on the merge before it (`c035bd5b70`, #9424). ### Title, test or build step CTest `agc_host_import_cut_lifetime` (`agc_driver_recorder_tests --host-import-cut-only`; registered in `core/libs/prx/libSceAgcDriver/CMakeLists.txt`). Synthetic test, no title. ### AnyPS5 commit Bisected on the first-parent line of `main`, unmodified `main` at each commit: last passing `c035bd5b70` (merge of #9424), first failing `6b23aaf129` (merge of #9159, "fix(agc): keep a rewatched import's memory compared once it is shared", merged 24.10.2026 18:26Z). Still failing at `0ea0f25e1b`. ### System Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs), Release, NVIDIA GeForce RTX 4080 SUPER. Windows only: not run on Linux or macOS. ### Steps to reproduce Build `agc_driver_recorder_tests` on the commit and run `ctest -V -R ^agc_host_import_cut_lifetime$` in the build directory. It stops after about 1 to 3 seconds. ### Log Failing run on `6b23aaf129`: ``` host import after cut: a page made inaccessible inside the import, nearer its start: the changed import was retired before the remaining range was imported, and the GPU and write watch see the guest's bytes host import after cut: a page made inaccessible inside the import, nearer its end: the changed import was retired before the remaining range was imported, and the GPU and write watch see the guest's bytes host import after cut: an unmap of a 2 MiB run inside the import: the changed import was retired before the remaining range was imported, and the GPU and write watch see the guest's bytes, also after the pages were mapped again host import after cut: an unmap of the import's first 2 MiB run: the changed import was retired before the remaining range was imported, and the GPU and write watch see the guest's bytes, also after the pages were mapped again AGC graphics: the larger side of an unmap of 1440 KiB at the start of the import's first 2 MiB run left the write watch 1/1 Test #426: agc_host_import_cut_lifetime .....***Failed 1.58 sec ``` Passing run on `c035bd5b70`: ``` Host import cut lifetime tests passed 1/1 Test #423: agc_host_import_cut_lifetime ..... Passed 1.24 sec ``` ### What was checked - Bisect, one run per commit, each commit built fresh: `5c90b0a65e`, `d003e64fcf`, `29f539a5f3` and `c035bd5b70` pass; `6b23aaf129`, `1c6e10f170` and `0ea0f25e1b` fail with the same message. - The test fails with the same message in 4 of 4 logged runs on a branch carrying #6565 and in 2 of 2 runs with that branch's three source files set back to `main` `0ea0f25e1b`, so the failure does not come from #6565. - On `6b23aaf129`, setting back only `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` to its `c035bd5b70` state (the libc changes of #9159 stay) makes the test pass. Setting back all four production files of #9159 (that file, `libc/include/WindowsMappings.hpp`, `libc/include/GuestArena.hpp`, `libc/src/GuestArena.cpp`) passes too. Setting back only the three libc files does not build, because `GuestMemory.cpp` then calls `GuestArena` functions that do not exist. - The Windows job `windows` of #9159 was skipped; the Windows job that ran (`relinker (windows-latest, g++)`, 244 tests, all passed) contains no `agc_*` test. - A search of issues and pull requests for `agc_host_import_cut_lifetime`, `cut_lifetime`, `left the write watch` and `9159` found no report of this failure. - Not established: which part of the change to `GuestMemory.cpp` in #9159 (+38/-3) (the `refused` map with `refusedSince`, `noteRefusedWalk`, the `GuestArenaCompareWhenShared` call in `Rewatch`, the `GuestArenaCompareResidentWhenShared` call in `ImportWatched`) causes it; whether the test or the product code needs the fix; Linux and macOS (the macOS `write-watch` jobs of #9159 passed; I did not check which tests they run); other GPUs. AI-assisted (Claude Code).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#10746
No description provided.