[loader] crash at title entry on Title ID 7952987A (v1.0.2.1-CYBERLEEK): .xbld[9] stub table jumps into zero-fill tail #2876

Open
opened 2026-11-26 05:16:29 +00:00 by github-bot · 2 comments
Owner

@⁠al77777777a-svg on GitHub · 2026-11-25 22:55 UTC · original

Summary

Running victory run against the GTA VI Xbox Series dump
v1.0.2.1-CYBERLEEK (Title ID 7952987A) crashes immediately after binding
imports, before any GPU work begins. The crash is in section[9] (.xbld)
of game_scarlett_master.exe. The same crash reproduces on
VICTORY_D3D12_WARP=1, so this is not a GPU/driver issue.

Reproduction

target\release\victory.exe run "<game_dir>\game_scarlett_master.exe" --execute --unimplemented zero

Crash

VIctory: first-chance exception 0xc0000005 at 0x7ff74fa7c864
  (execute 0x7ff74fa7c864: nothing mapped there)
  rax 0x7ff74fa7c864  rbx 0x14b06c200  rcx 0x0
  rsi 0x6acc1ff680   rdi 0x7ff744a10000
  #0  0x7ff74fa7c864
  #1  victory-image-f36dea98c6f0eac8.dll+0xb06c236

The address is randomized by ASLR between runs (one run also showed
rax=0x14b06c864 rdi=0x140000000), but always evaluates to
image_base + 0xb06c864, with #1 always at +0xb06c236.

Title binary structure

game_scarlett_master.exe:

  • File size: 0x072A6A00 (120 MB)
  • Image base: 0x140000000
  • Machine: 0x8664 (x86-64)
  • Entry RVA: 0xB06C200
  • Subsystem: 2 (Windows GUI) — note: not 14 (XboxOne)
  • Section count: 10

The relevant section:

[9] .xbld      VA=0x0B06C000 VS=0x000162F0 RAW=0x0729D200 RS=0x00009800
              chr=0xE0000040  (RWX, INITIALIZED_DATA)
              -- entry & crash are both in this section

VS (90736 bytes) is more than twice RS (38912 bytes), so about 50 KB
of this section are zero-filled by the loader after mapping the raw bytes.

Crash disassembly

Entry point (0xB06C200) sets up rbx = image_base + entry_rva and
shortly after reaches 0xB06C236:

0xb06c236: 48 89 83 13 01 00 00   mov  [rbx+0x113], rax     ; save prior rax
0xb06c23d: 48 8B 83 1B 01 00 00   mov  rax,  [rbx+0x11b]     ; reads jump offset
0xb06c244: 48 01 F8               add  rax, rdi              ; rdi is module base
0xb06c247: FF D0                  call rax                   ; <<< CRASH

The 8-byte value at 0xB06C41B (entry + 0x11b) decodes to
0x00000000_b06c864, which is added to rdi (random module base) to
form the call target.

The target offset 0xb06c864 IS inside section[9] (range
0xB06C000..0xB0822F0), but lands between the raw bytes (RS=0x9800)
and meaningful code: the call hits a zero-filled region. VIctory's
crash dump says "nothing mapped there", which suggests the loader hasn't
actually filled this far into the section with the GameOS rewrite the
real Xbox loader does at boot time.

Workaround tried

  • VICTORY_D3D12_WARP=1 — same crash, never even logs
    "host device on the software adapter (WARP)" because the crash is
    pre-GPU.
  • VICTORY_LOG=victory_loader=trace,... — only loader INFO lines; no
    pre-crash code trace.
  • diag build (cargo build --profile diag -p victory --features diagnostics)
    — same crash, same offsets.

Environment

  • VIctory: f36dea98c6f0eac8 (diag profile)
  • Windows 10 Pro x64 (10.0.19045)
  • GPU: NVIDIA GeForce RTX 5060 / 4 GB VRAM (well below the README's
    10 GB figure; device-removed logs in crashes.log confirm running
    out of VRAM is an independent issue)
  • CPU: i7-14700F, 32 GB RAM

Suggested fix area

  • victory-loader's section mapping for VS > RS segments — section[9]
    seems to be loaded with the first RS bytes but not patched by the
    GameOS loader fixups that, on a real Xbox, would turn offsets like
    +0x864 (within the section's zero-fill region) into real
    GameOS-runtime addresses before the entry runs.
  • The victory-hle::modules::xgameruntime work the README references,
    QueryApiImpl hand-out, may be where 0xb06c864 should resolve to a
    real exported function.
**@⁠al77777777a-svg** on GitHub · 2026-11-25 22:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/2876) ## Summary Running `victory run` against the GTA VI Xbox Series dump `v1.0.2.1-CYBERLEEK` (Title ID 7952987A) crashes immediately after binding imports, before any GPU work begins. The crash is in section[9] (`.xbld`) of `game_scarlett_master.exe`. The same crash reproduces on `VICTORY_D3D12_WARP=1`, so this is not a GPU/driver issue. ## Reproduction ```powershell target\release\victory.exe run "<game_dir>\game_scarlett_master.exe" --execute --unimplemented zero ``` ## Crash ```text VIctory: first-chance exception 0xc0000005 at 0x7ff74fa7c864 (execute 0x7ff74fa7c864: nothing mapped there) rax 0x7ff74fa7c864 rbx 0x14b06c200 rcx 0x0 rsi 0x6acc1ff680 rdi 0x7ff744a10000 #0 0x7ff74fa7c864 #1 victory-image-f36dea98c6f0eac8.dll+0xb06c236 ``` The address is randomized by ASLR between runs (one run also showed `rax=0x14b06c864 rdi=0x140000000`), but always evaluates to `image_base + 0xb06c864`, with `#1` always at `+0xb06c236`. ## Title binary structure `game_scarlett_master.exe`: - File size: 0x072A6A00 (120 MB) - Image base: 0x140000000 - Machine: 0x8664 (x86-64) - Entry RVA: **0xB06C200** - Subsystem: 2 (Windows GUI) — note: not 14 (XboxOne) - Section count: 10 The relevant section: ``` [9] .xbld VA=0x0B06C000 VS=0x000162F0 RAW=0x0729D200 RS=0x00009800 chr=0xE0000040 (RWX, INITIALIZED_DATA) -- entry & crash are both in this section ``` `VS` (90736 bytes) is more than twice `RS` (38912 bytes), so about 50 KB of this section are zero-filled by the loader after mapping the raw bytes. ## Crash disassembly Entry point (`0xB06C200`) sets up `rbx = image_base + entry_rva` and shortly after reaches `0xB06C236`: ```asm 0xb06c236: 48 89 83 13 01 00 00 mov [rbx+0x113], rax ; save prior rax 0xb06c23d: 48 8B 83 1B 01 00 00 mov rax, [rbx+0x11b] ; reads jump offset 0xb06c244: 48 01 F8 add rax, rdi ; rdi is module base 0xb06c247: FF D0 call rax ; <<< CRASH ``` The 8-byte value at `0xB06C41B` (entry + 0x11b) decodes to `0x00000000_b06c864`, which is added to `rdi` (random module base) to form the call target. The target offset `0xb06c864` IS inside section[9] (range `0xB06C000..0xB0822F0`), but lands between the raw bytes (`RS=0x9800`) and meaningful code: the call hits a zero-filled region. VIctory's crash dump says "nothing mapped there", which suggests the loader hasn't actually filled this far into the section with the GameOS rewrite the real Xbox loader does at boot time. ## Workaround tried - `VICTORY_D3D12_WARP=1` — same crash, never even logs "host device on the software adapter (WARP)" because the crash is pre-GPU. - `VICTORY_LOG=victory_loader=trace,...` — only loader INFO lines; no pre-crash code trace. - diag build (`cargo build --profile diag -p victory --features diagnostics`) — same crash, same offsets. ## Environment - VIctory: `f36dea98c6f0eac8` (diag profile) - Windows 10 Pro x64 (10.0.19045) - GPU: NVIDIA GeForce RTX 5060 / 4 GB VRAM (well below the README's 10 GB figure; device-removed logs in `crashes.log` confirm running out of VRAM is an independent issue) - CPU: i7-14700F, 32 GB RAM ## Suggested fix area - `victory-loader`'s section mapping for `VS > RS` segments — section[9] seems to be loaded with the first `RS` bytes but not patched by the GameOS loader fixups that, on a real Xbox, would turn offsets like `+0x864` (within the section's zero-fill region) into real GameOS-runtime addresses before the entry runs. - The `victory-hle::modules::xgameruntime` work the README references, `QueryApiImpl` hand-out, may be where `0xb06c864` should resolve to a real exported function.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:16:29 +00:00
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 23:42 UTC · original

One detail in the report constrains the mechanism. The faulting VA image_base + 0xb06c864 sits inside .xbld[9] (VA 0xB06C000, VS 0x162F0) — and on the same 4K page as the entry code that just ran: the call site is entry+0x36 (0xB06C236), the target is 0xB06C864, both below 0xB06D000. A page that executed a call can't report MEM_FREE at a neighboring offset under a normal MEM_IMAGE mapping — so "nothing mapped there" is more likely a pointer into the wrong address than a partial section map.

Two candidate shapes:

  1. Un-relocated absolute pointer. If .xbld[9] was appended by the repack and its qword pointers never got .reloc entries, a rebase leaves them at preferred-base values — the call lands at preferred_base + 0xb06c864, which is MEM_FREE whenever ASLR moves the image. Run 2's rax = 0x14b06c864 is exactly the preferred-base value; that run may simply be the one where the image wasn't at 0x140000000 (rdi holding that value doesn't prove the load base). This predicts rax is always 0x14b06c864 — worth checking against the captured runs; "always image_base + offset" vs "always 0x14b06c864" distinguishes the two cases.
  2. Self-unpacking bootstrap stub. .xbld[9] raw is 0x9800 vs 0x162F0 virtual — i.e. roughly half the section has no file bytes. If the first bytes are a stub that decompresses/decrypts the remainder in place (it is RWX), on this host the decompression step may be skipped or keyed differently, so the jump-table entry it builds is garbage-shaped-like-a-VA. Then rax is derived, not relocated — also consistent with run-to-run variation.

Concrete next checks on that exact dump: (a) whether rax is constant 0x14b06c864 across ASLR'd runs — settles (1); (b) disassemble the entry prologue around +0x31..0x36 to see whether rax comes from a relocated qword (PE with rebase = case 1) or is computed/decrypted at runtime (case 2). The pointer itself is at a file offset you can read statically once you find the load site.

For comparison: on the retail v1.0.2.1 build the entry is in .text (0x56a1ec8) and .xbld[9] is a 0xdc-byte stub — this build genuinely repackages the entry path, so the loader may be meeting a section layout the prepare/map path never exercised.

**@⁠kotekompotek** on GitHub · 2026-11-25 23:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/2876#issuecomment-7177938643) One detail in the report constrains the mechanism. The faulting VA `image_base + 0xb06c864` sits inside `.xbld[9]` (VA `0xB06C000`, VS `0x162F0`) — and on the **same 4K page** as the entry code that just ran: the call site is `entry+0x36` (`0xB06C236`), the target is `0xB06C864`, both below `0xB06D000`. A page that executed a call can't report `MEM_FREE` at a neighboring offset under a normal `MEM_IMAGE` mapping — so "nothing mapped there" is more likely a pointer into the *wrong* address than a partial section map. Two candidate shapes: 1. **Un-relocated absolute pointer.** If `.xbld[9]` was appended by the repack and its qword pointers never got `.reloc` entries, a rebase leaves them at preferred-base values — the call lands at `preferred_base + 0xb06c864`, which is `MEM_FREE` whenever ASLR moves the image. Run 2's `rax = 0x14b06c864` is exactly the preferred-base value; that run may simply be the one where the image wasn't at `0x140000000` (`rdi` holding that value doesn't prove the load base). This predicts `rax` is *always* `0x14b06c864` — worth checking against the captured runs; "always image_base + offset" vs "always 0x14b06c864" distinguishes the two cases. 2. **Self-unpacking bootstrap stub.** `.xbld[9]` raw is `0x9800` vs `0x162F0` virtual — i.e. roughly half the section has no file bytes. If the first bytes are a stub that decompresses/decrypts the remainder in place (it is RWX), on this host the decompression step may be skipped or keyed differently, so the jump-table entry it builds is garbage-shaped-like-a-VA. Then `rax` is derived, not relocated — also consistent with run-to-run variation. Concrete next checks on that exact dump: (a) whether `rax` is constant `0x14b06c864` across ASLR'd runs — settles (1); (b) disassemble the entry prologue around `+0x31..0x36` to see whether `rax` comes from a relocated qword (PE with rebase = case 1) or is computed/decrypted at runtime (case 2). The pointer itself is at a file offset you can read statically once you find the load site. For comparison: on the retail `v1.0.2.1` build the entry is in `.text` (`0x56a1ec8`) and `.xbld[9]` is a `0xdc`-byte stub — this build genuinely repackages the entry path, so the loader may be meeting a section layout the prepare/map path never exercised.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-26 00:43 UTC · original

Automated triage for the maintainers.

Disassembly and byte-level detail of the title's own code must not be posted in this repository; please keep reports to VIctory's side (our messages, crashes.log, our functions).

The executable described here does not have the layout of the retail title that VIctory targets (its entry point sits in a different section), so the loader in crates/victory-loader is not expected to start it. VIctory runs files dumped from your own console. To make this actionable, please:

  • retry with an unmodified dump of your own copy, and
  • give the VIctory commit you built from (git rev-parse HEAD); the hash in the report is the image DLL's, not a commit.

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-26 00:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/2876#issuecomment-7179050057) <!-- victory-issue-triage v1 verdict=needs-info seen=2026-11-25T23:42:31Z at=2026-11-26T00:57:00Z --> Automated triage for the maintainers. Disassembly and byte-level detail of the title's own code must not be posted in this repository; please keep reports to VIctory's side (our messages, `crashes.log`, our functions). The executable described here does not have the layout of the retail title that VIctory targets (its entry point sits in a different section), so the loader in `crates/victory-loader` is not expected to start it. VIctory runs files dumped from your own console. To make this actionable, please: - retry with an unmodified dump of your own copy, and - give the VIctory commit you built from (`git rev-parse HEAD`); the hash in the report is the image DLL's, not a commit. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#2876
No description provided.