Repository navigation
Conversation
a_page_whose_move_fails_stays_mapped_where_it_was made its destination "an address with nothing reserved" by reserving a page and releasing it again. With tests on other threads, Windows can hand that address to one of them before the move: the commit then succeeds, the test fails at `move_away(..).is_err()`, and the move writes the page's bytes into the other test's reservation (a_page_leaving_plain_memory_has_the_tiles_over_it_linked_again then read 7, this test's value, where it had written 0xA - seen in a parallel run of hle::kernelx). The destination is now the first page past the user address space (GetSystemInfo's lpMaximumApplicationAddress + 1, rounded up to 64 KiB): committing there always fails, and no other test can be given it. Test code only. Assisted-by: Claude Code (Claude Opus 5.5)
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
a_page_whose_move_fails_stays_mapped_where_it_wasgets "an address with nothing reserved" for its move by reserving a page and releasing it again. With tests running on other threads, Windows can give that address to one of them before the move. The commit then succeeds and the test fails atmove_away(..).is_err(). Worse, the move writes this test's page into the other test's reservation. In one parallel run,a_page_leaving_plain_memory_has_the_tiles_over_it_linked_againread7, this test's value, where it had written0xA. The destination is now the first page past the user address space. Committing there always fails, and Windows never gives that address to anyone. Found while checking thenvidia-devtest failures reported in #42.What is in it
crates/xcl/src/hle/kernelx.rs(inmod tests): the destination isGetSystemInfo'slpMaximumApplicationAddress + 1, rounded up to 64 KiB. Test code only;windows-sysalready has theWin32_System_SystemInformationfeature.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4at this PR's head: 1745 passed, 5 failed, 48 ignored. The 5 failures are the ones reported in GPU test results: NVIDIA RTX 3080 (wave32) and AMD RDNA2 iGPU (no mesh shaders) #42: four are fixed by Tests: wait for late release before checking released pipelines are gone #2770 and Tests: some_ranges in texture_upload wraps its generator instead of overflowing #2771, and the mesh test is in amd-dev 6a0bb5b: 13 tests fail on an RX 9070 XT, and the lib test binary aborts after 1,024 of 1,564 tests #2632.XCL_HEAP_WINDOWS=1.cargo test -p xcl --lib hle::kernelx -- --test-threads=4, repeated:an_address_keeps_the_page_the_title_mapped_there_last); that is the release race kernelx: forget a graphics reservation before Windows can hand its address out #2772 fixes;Regression run
#[cfg(test)] mod testsand never reachesxcl.exe, butscripts/pr_check.pycounts any file undercrates/xcl/src/as runtime. Smoke blocks fromnvidia-devand from this head will be added once a title is available, unless a maintainer prefers thetest-onlylabel.main:
PR:
Not tested
AI use