[loader] crash at title entry on Title ID 7952987A (v1.0.2.1-CYBERLEEK): .xbld[9] stub table jumps into zero-fill tail #2876
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#2876
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?
@al77777777a-svg on GitHub · 2026-11-25 22:55 UTC · original
Summary
Running
victory runagainst the GTA VI Xbox Series dumpv1.0.2.1-CYBERLEEK(Title ID 7952987A) crashes immediately after bindingimports, before any GPU work begins. The crash is in section[9] (
.xbld)of
game_scarlett_master.exe. The same crash reproduces onVICTORY_D3D12_WARP=1, so this is not a GPU/driver issue.Reproduction
Crash
The address is randomized by ASLR between runs (one run also showed
rax=0x14b06c864 rdi=0x140000000), but always evaluates toimage_base + 0xb06c864, with#1always at+0xb06c236.Title binary structure
game_scarlett_master.exe:The relevant section:
VS(90736 bytes) is more than twiceRS(38912 bytes), so about 50 KBof this section are zero-filled by the loader after mapping the raw bytes.
Crash disassembly
Entry point (
0xB06C200) sets uprbx = image_base + entry_rvaandshortly after reaches
0xB06C236:The 8-byte value at
0xB06C41B(entry + 0x11b) decodes to0x00000000_b06c864, which is added tordi(random module base) toform the call target.
The target offset
0xb06c864IS inside section[9] (range0xB06C000..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; nopre-crash code trace.
cargo build --profile diag -p victory --features diagnostics)— same crash, same offsets.
Environment
f36dea98c6f0eac8(diag profile)10 GB figure; device-removed logs in
crashes.logconfirm runningout of VRAM is an independent issue)
Suggested fix area
victory-loader's section mapping forVS > RSsegments — section[9]seems to be loaded with the first
RSbytes but not patched by theGameOS loader fixups that, on a real Xbox, would turn offsets like
+0x864(within the section's zero-fill region) into realGameOS-runtime addresses before the entry runs.
victory-hle::modules::xgameruntimework the README references,QueryApiImplhand-out, may be where0xb06c864should resolve to areal exported function.
@kotekompotek on GitHub · 2026-11-25 23:42 UTC · original
One detail in the report constrains the mechanism. The faulting VA
image_base + 0xb06c864sits inside.xbld[9](VA0xB06C000, VS0x162F0) — and on the same 4K page as the entry code that just ran: the call site isentry+0x36(0xB06C236), the target is0xB06C864, both below0xB06D000. A page that executed a call can't reportMEM_FREEat a neighboring offset under a normalMEM_IMAGEmapping — so "nothing mapped there" is more likely a pointer into the wrong address than a partial section map.Two candidate shapes:
.xbld[9]was appended by the repack and its qword pointers never got.relocentries, a rebase leaves them at preferred-base values — the call lands atpreferred_base + 0xb06c864, which isMEM_FREEwhenever ASLR moves the image. Run 2'srax = 0x14b06c864is exactly the preferred-base value; that run may simply be the one where the image wasn't at0x140000000(rdiholding that value doesn't prove the load base). This predictsraxis always0x14b06c864— worth checking against the captured runs; "always image_base + offset" vs "always 0x14b06c864" distinguishes the two cases..xbld[9]raw is0x9800vs0x162F0virtual — 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. Thenraxis derived, not relocated — also consistent with run-to-run variation.Concrete next checks on that exact dump: (a) whether
raxis constant0x14b06c864across ASLR'd runs — settles (1); (b) disassemble the entry prologue around+0x31..0x36to see whetherraxcomes 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.1build the entry is in.text(0x56a1ec8) and.xbld[9]is a0xdc-byte stub — this build genuinely repackages the entry path, so the loader may be meeting a section layout the prepare/map path never exercised.@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-loaderis not expected to start it. VIctory runs files dumped from your own console. To make this actionable, please:git rev-parse HEAD); the hash in the report is the image DLL's, not a commit.Generated by Claude Code