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

Closed
opened 2026-11-26 04:33:27 +00:00 by github-bot · 4 comments
Owner

@⁠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, unpacked
package, game_scarlett_master.exe SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993
(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+0x56edab with
0xc0000005 — a read at address 0xe, rax = 0, rsi = 0. Four runs, same address and stack
every time:

unhandled exception 0xc0000005 in game_scarlett_master.exe+0x56edab (read at address 0xe)
rax=0x0 rsi=0x0
on the stack: +0x4efc9f9, +0xab3cdf8, +0x258e252, +0x71c1560, +0x71c27c0, +0x1def3d3

Presents before the fault: 267 / 320 / 456 / 637 (the last two with a warm caches).

The faulting code

File offset 0x56e1ab is 8a 40 0e = mov al, byte [rax+0xe], directly after a call:

test rax, rax
jz  +5
mov al, [rax+5]
jmp +13
mov rcx, rdi
mov edx, esi
call ...                 ; returns NULL
mov al, [rax+0xe]        ; <-- no null check, faults

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

Build Extra setting Presents Crash
e50836b (main) — 267 +0x56edab
e50836b XCL_SPLIT_WAVE64=1 637 +0x56edab
e50836b XCL_UMA_MB=2048 320 +0x56edab
e50836b + #757/#758/#759 XCL_UMA_MB=2048 320 +0x56edab

So not the wave width, not the UMA size, and not the pipeline-journal branch.

Environment

  • Windows 11 Pro 10.0.26300, i9-14900KF, 32 GB, RTX 3080 10 GB (driver 32.0.16.1088)
  • XCL_NETWORK=0, DXC 1.9.2609.5 (XCL_DXC_DIR), build e50836b, cargo build --release
  • Not connectable (ISP CGNAT), 12 fps, ~15 GB commit in the title

Evidence

report.json, xcl.log (with the 164-thread dump) and crash minidumps (<data>\temp\*.dmp, the
title's own Breakpad) are in %LOCALAPPDATA%\XCL\<package id>\. Amplest detail in
called_stubs: ID3D12GraphicsCommandList10::#75 (console extension) is called 268× before the
fault (+0x32820); #131/#132 12×.

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. +0x56edab looks 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 05:47 UTC · [original](https://github.com/xcl-dev/xcl/issues/813) ### Game and package version The retail title (Xbox Series 1.0.2.1) — `<package id>` / 1.0.2.1, unpacked package, `game_scarlett_master.exe` SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993` (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+0x56edab` with `0xc0000005` — a **read at address 0xe**, `rax = 0`, `rsi = 0`. Four runs, same address and stack every time: ``` unhandled exception 0xc0000005 in game_scarlett_master.exe+0x56edab (read at address 0xe) rax=0x0 rsi=0x0 on the stack: +0x4efc9f9, +0xab3cdf8, +0x258e252, +0x71c1560, +0x71c27c0, +0x1def3d3 ``` Presents before the fault: 267 / 320 / 456 / 637 (the last two with a warm caches). ### The faulting code File offset `0x56e1ab` is `8a 40 0e` = `mov al, byte [rax+0xe]`, directly after a call: ``` test rax, rax jz +5 mov al, [rax+5] jmp +13 mov rcx, rdi mov edx, esi call ... ; returns NULL mov al, [rax+0xe] ; <-- no null check, faults ``` 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 | Build | Extra setting | Presents | Crash | |---|---|---|---| | `e50836b` (main) | — | 267 | `+0x56edab` | | `e50836b` | `XCL_SPLIT_WAVE64=1` | 637 | `+0x56edab` | | `e50836b` | `XCL_UMA_MB=2048` | 320 | `+0x56edab` | | `e50836b` + #757/#758/#759 | `XCL_UMA_MB=2048` | 320 | `+0x56edab` | So not the wave width, not the UMA size, and not the pipeline-journal branch. ### Environment - Windows 11 Pro 10.0.26300, i9-14900KF, 32 GB, RTX 3080 10 GB (driver 32.0.16.1088) - `XCL_NETWORK=0`, DXC 1.9.2609.5 (`XCL_DXC_DIR`), build `e50836b`, `cargo build --release` - Not connectable (ISP CGNAT), 12 fps, ~15 GB commit in the title ### Evidence `report.json`, `xcl.log` (with the 164-thread dump) and crash minidumps (`<data>\temp\*.dmp`, the title's own Breakpad) are in `%LOCALAPPDATA%\XCL\<package id>\`. Amplest detail in `called_stubs`: `ID3D12GraphicsCommandList10::#75 (console extension)` is called 268× before the fault (`+0x32820`); `#131`/`#132` 12×. ### 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. `+0x56edab` looks 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?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:33:27 +00:00
Author
Owner

@⁠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::#142 2520 calls, #75 (console
extension) 2443, #126 2442, ID3D12CommandAllocator::#9 2556 — i.e. a handful of console-only
methods called once per frame, each returning 0. The value read at +0x56edab comes from a call
through the thunk at +0x28cd220 (mov rdx, 0x4eaa16dd829995bc then jmp), consistent with one
of 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,
0xc0000005 write at address 0x0:

8b 4d 48              mov ecx,[rbp+0x48]
c7 04 25 00 00 00 00 21 d4 8b 4d   mov dword ptr [0x0], 0x4d8bd421
48 83 c4 48           add rsp,0x48
c3                    ret

The frame below it in the stack is +0x2215c35, which is the same pattern (another
mov dword ptr [0x0], 0), i.e. the site #159 crashes at on an RX 6600. So the title expects page
zero 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.

**@⁠kalijerry** on GitHub · 2026-11-24 06:02 UTC · [original](https://github.com/xcl-dev/xcl/issues/813#issuecomment-7123524521) 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::#142` 2520 calls, `#75` (console extension) 2443, `#126` 2442, `ID3D12CommandAllocator::#9` 2556 — i.e. a handful of console-only methods called once per frame, each returning 0. The value read at `+0x56edab` comes from a call through the thunk at `+0x28cd220` (`mov rdx, 0x4eaa16dd829995bc` then `jmp`), consistent with one of 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, `0xc0000005` **write at address 0x0**: ``` 8b 4d 48 mov ecx,[rbp+0x48] c7 04 25 00 00 00 00 21 d4 8b 4d mov dword ptr [0x0], 0x4d8bd421 48 83 c4 48 add rsp,0x48 c3 ret ``` The frame below it in the stack is `+0x2215c35`, which is the same pattern (another `mov dword ptr [0x0], 0`), i.e. the site #159 crashes at on an RX 6600. So the title expects page zero 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.
Author
Owner

@⁠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 🤔

**@⁠FxyFmby** on GitHub · 2026-11-24 06:09 UTC · [original](https://github.com/xcl-dev/xcl/issues/813#issuecomment-7123640371) Would be awesome if you can mention a game we know, I never heard of such game u mentioned 🤔
Author
Owner

@⁠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" assert
helpers (mov dword ptr [0x0], <0 or a hash-like immediate>; six of them followed by int3, the
seventh returns). Patching them out together with the [rax+0xe] read from my first comment:

+0x56edab 8a 40 0e            -> 31 c0 90          (return false)
every c7 04 25 00 00 00 00 <imm32> [cc]  -> nops

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:

  1. Page 0 could not be mapped on this machine, which is why patching was easier than fixing XCL:
    • VirtualAlloc(1, 0x1000/0x10000, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE) -> ERROR_INVALID_PARAMETER
    • NtAllocateVirtualMemory(base=1) -> STATUS_CONFLICTING_ADDRESSES; VirtualQuery(0) says MEM_FREE
    • VirtualAlloc2 with MEM_ADDRESS_REQUIREMENTS{Lowest=0, Highest=0x10000} -> ERROR_INVALID_PARAMETER
    • bases >= 0x10000 allocate fine, everything inside the 64 KiB null region conflicts
      Windows 11 26300, xcl.exe built from main (e50836b) + #757/#758/#759, DXC 1.9.
  2. After the patches, the remaining work is pipeline compilation, not crashes: the queue sits at
    57,018 and memory is the limit (~1 GB commit free, wait_for_memory wants 6).

A VirtualAlloc-based null-page mapping in the host would replace the exe patches, if it can be made
to work on current Windows at all.

**@⁠kalijerry** on GitHub · 2026-11-24 06:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/813#issuecomment-7124130460) 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`" assert helpers (`mov dword ptr [0x0], <0 or a hash-like immediate>`; six of them followed by `int3`, the seventh returns). Patching them out together with the `[rax+0xe]` read from my first comment: ``` +0x56edab 8a 40 0e -> 31 c0 90 (return false) every c7 04 25 00 00 00 00 <imm32> [cc] -> nops ``` 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: 1. **Page 0 could not be mapped on this machine**, which is why patching was easier than fixing XCL: - `VirtualAlloc(1, 0x1000/0x10000, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE)` -> `ERROR_INVALID_PARAMETER` - `NtAllocateVirtualMemory(base=1)` -> `STATUS_CONFLICTING_ADDRESSES`; `VirtualQuery(0)` says `MEM_FREE` - `VirtualAlloc2` with `MEM_ADDRESS_REQUIREMENTS{Lowest=0, Highest=0x10000}` -> `ERROR_INVALID_PARAMETER` - bases >= 0x10000 allocate fine, everything inside the 64 KiB null region conflicts Windows 11 26300, xcl.exe built from `main` (e50836b) + #757/#758/#759, DXC 1.9. 2. After the patches, the remaining work is pipeline compilation, not crashes: the queue sits at 57,018 and memory is the limit (~1 GB commit free, `wait_for_memory` wants 6). A `VirtualAlloc`-based null-page mapping in the host would replace the exe patches, if it can be made to work on current Windows at all.
Author
Owner

@⁠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_mb at 12288 and XCL_UMA_MB at 1024 does not change the slope:

t+30 s   ws  9.7 GB   free commit 32.6 GB
t+130 s  ws 19.7 GB
t+230 s  ws 35.0 GB

At ws ≈ 36 GB the commit is gone (0.4 GB free) and everything freezes: wait_for_memory can 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, 0xc0000005 read at address 0xffffffffffffffff, after 10,020 presents (~9 min) — a chain that takes a bad pointer out of a heap object:

48 8b 01        mov rax,[rcx]        ; rcx valid
48 8b 40 40     mov rax,[rax+0x40]   ; rax becomes 0x3d986d2f46537430 (ASCII garbage)
...             read [rax-1]         ; fault

The same class as the earlier ones: something hands back a garbage/zero pointer where the title expects a live object.

With XCL_NETWORK=0 both runs freeze at the same place (auth path is not the difference); with the network on, auth-arc-prod.ros.rockstargames.com is unreachable from here (ERROR_INTERNET_CANNOT_CONNECT), so that only adds a wait.

**@⁠kalijerry** on GitHub · 2026-11-24 08:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/813#issuecomment-7126321733) 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_mb` at 12288 and `XCL_UMA_MB` at 1024 does not change the slope: ``` t+30 s ws 9.7 GB free commit 32.6 GB t+130 s ws 19.7 GB t+230 s ws 35.0 GB ``` At ws ≈ 36 GB the commit is gone (0.4 GB free) and everything freezes: `wait_for_memory` can 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`, `0xc0000005` read at address `0xffffffffffffffff`**, after 10,020 presents (~9 min) — a chain that takes a bad pointer out of a heap object: ``` 48 8b 01 mov rax,[rcx] ; rcx valid 48 8b 40 40 mov rax,[rax+0x40] ; rax becomes 0x3d986d2f46537430 (ASCII garbage) ... read [rax-1] ; fault ``` The same class as the earlier ones: something hands back a garbage/zero pointer where the title expects a live object. With `XCL_NETWORK=0` both runs freeze at the same place (auth path is not the difference); with the network on, `auth-arc-prod.ros.rockstargames.com` is unreachable from here (`ERROR_INTERNET_CANNOT_CONNECT`), so that only adds a wait.
This discussion has been locked. Commenting is limited to contributors.
No description provided.