Retail title (1.0.2.1) on RTX 3080 + i9-14900KF: deterministic 0xc0000005 read at 0xe (NULL deref) at +0x56edab after the loading panel #813
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#813
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@kalijerry on GitHub · 2026-11-24 05:47 UTC · original
### Game and package version
The retail title (Xbox Series 1.0.2.1) —
<package id>/ 1.0.2.1, unpackedpackage,
game_scarlett_master.exeSHA-256e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993(matches the publisher-of-record's hash).
What happens
The title boots, streams, and draws its loading panel (frame 260: 518400/518400 dumped samples
non-black). It then dies deterministically at
game_scarlett_master.exe+0x56edabwith0xc0000005— a read at address 0xe,rax = 0,rsi = 0. Four runs, same address and stackevery time:
Presents before the fault: 267 / 320 / 456 / 637 (the last two with a warm caches).
The faulting code
File offset
0x56e1abis8a 40 0e=mov al, byte [rax+0xe], directly after a call:The byte read before the call is guarded; the value this call returns is not. Whatever the call is
supposed to give back (rcx = a heap object, edx = 0) came back NULL.
What I tried — all the same crash
e50836b(main)+0x56edabe50836bXCL_SPLIT_WAVE64=1+0x56edabe50836bXCL_UMA_MB=2048+0x56edabe50836b+ #757/#758/#759XCL_UMA_MB=2048+0x56edabSo not the wave width, not the UMA size, and not the pipeline-journal branch.
Environment
XCL_NETWORK=0, DXC 1.9.2609.5 (XCL_DXC_DIR), builde50836b,cargo build --releaseEvidence
report.json,xcl.log(with the 164-thread dump) and crash minidumps (<data>\temp\*.dmp, thetitle's own Breakpad) are in
%LOCALAPPDATA%\XCL\<package id>\. Amplest detail incalled_stubs:ID3D12GraphicsCommandList10::#75 (console extension)is called 268× before thefault (
+0x32820);#131/#13212×.Expected
Per README this title reaches its menus at 30 fps on an RX 9070. Here it never gets past the loading
panel on NVIDIA + Intel.
+0x56edablooks like the caller trusting a NULL from a D3D12.X result;would a stub that returns 0 be the source, or is a resource/query expected to be non-null here?
@kalijerry on GitHub · 2026-11-24 06:02 UTC · original
Two more data points from the same machine, after patching the first fault out.
1. The first fault is a stubbed return being dereferenced
Patching the three bytes at file offset
0x56e1ab(8a 40 0e->31 c0 90, i.e. "return false"instead of reading
[rax+0xe]) removes the crash. The title then runs 2400+ frames at ~30 fps,all frames fully drawn (518400/518400 dumped samples non-black) — it is a flat grey fill, no menu
yet.
The stub profile for that run:
ID3D12GraphicsCommandList10::#1422520 calls,#75(consoleextension) 2443,
#1262442,ID3D12CommandAllocator::#92556 — i.e. a handful of console-onlymethods called once per frame, each returning 0. The value read at
+0x56edabcomes from a callthrough the thunk at
+0x28cd220(mov rdx, 0x4eaa16dd829995bcthenjmp), consistent with oneof these stubs.
2. The next stop is a write to absolute address 0
With the first fault patched, the title dies deterministically at
+0x23cf683, 2425 presents,0xc0000005write at address 0x0:The frame below it in the stack is
+0x2215c35, which is the same pattern (anothermov dword ptr [0x0], 0), i.e. the site #159 crashes at on an RX 6600. So the title expects pagezero to be mapped writable; on Windows it is not.
Reproduced twice (once with a cold cache, once at 305 translated pipelines), identical registers.
Is page 0 expected to be mapped by XCL here (console titles often write to it), or is a stub
supposed to provide that? If a mapping of one page at 0 is the fix, that would unblock the whole
loading path for this title.
@FxyFmby on GitHub · 2026-11-24 06:09 UTC · original
Would be awesome if you can mention a game we know, I never heard of such game u mentioned 🤔
@kalijerry on GitHub · 2026-11-24 06:37 UTC · original
Progress on this from the RTX 3080 machine — with the null path removed the title renders.
There are seven sites, all "write a code to absolute address 0 (a global at NULL), then
int3" asserthelpers (
mov dword ptr [0x0], <0 or a hash-like immediate>; six of them followed byint3, theseventh returns). Patching them out together with the
[rax+0xe]read from my first comment:gives no crash, ~28-30 fps steady, and 7,235 draws with translated pipelines (0 skipped, 0 on PC
pipelines), real rendered frames — 518116/518400 dumped samples non-black, 1757 colours. Before the
patch the same build draws nothing at all.
So on this title the null-region writes are not incidental: they gate the renderer. Two things worth
knowing:
VirtualAlloc(1, 0x1000/0x10000, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE)->ERROR_INVALID_PARAMETERNtAllocateVirtualMemory(base=1)->STATUS_CONFLICTING_ADDRESSES;VirtualQuery(0)saysMEM_FREEVirtualAlloc2withMEM_ADDRESS_REQUIREMENTS{Lowest=0, Highest=0x10000}->ERROR_INVALID_PARAMETERWindows 11 26300, xcl.exe built from
main(e50836b) + #757/#758/#759, DXC 1.9.57,018 and memory is the limit (~1 GB commit free,
wait_for_memorywants 6).A
VirtualAlloc-based null-page mapping in the host would replace the exe patches, if it can be madeto work on current Windows at all.
@kalijerry on GitHub · 2026-11-24 08:35 UTC · original
More from the same machine, now with 48 GB of RAM (was 32):
The title renders — 79,251 draws through translated pipelines, 30 fps, real frames. But it does not stay alive long enough to be usable, for two separate reasons.
1. The process working set grows ~10 GB per minute and does not stop. Capping
title_memory_mbat 12288 andXCL_UMA_MBat 1024 does not change the slope:At ws ≈ 36 GB the commit is gone (0.4 GB free) and everything freezes:
wait_for_memorycan never admit a compile (0 running, 0 done, 56940 queued), draws stop at 79,251, presents stop, only XAudio2/Opus keeps running (222k packets decoded). It never recovers on its own.Growth correlates with the sparse-window path in the log (
sparse windows: 8192 submits, 1392 MB of CPU writes uploaded, 13438 tiles mapped), so tiles/windows that keep being mapped for shader writes look like the candidate.2. With memory actually free, it dies at a new site:
+0x4e5984b,0xc0000005read at address0xffffffffffffffff, after 10,020 presents (~9 min) — a chain that takes a bad pointer out of a heap object:The same class as the earlier ones: something hands back a garbage/zero pointer where the title expects a live object.
With
XCL_NETWORK=0both runs freeze at the same place (auth path is not the difference); with the network on,auth-arc-prod.ros.rockstargames.comis unreachable from here (ERROR_INTERNET_CANNOT_CONNECT), so that only adds a wait.