Deterministic crash (null deref) in victory-image during loading — victory-image-*.dll+0x2215c35 #416

Open
opened 2026-11-26 03:42:58 +00:00 by github-bot · 3 comments
Owner

@⁠alain0308t on GitHub · 2026-11-25 00:31 UTC · original

Environment

  • OS: Fedora Linux (Wine staging 11.20, vkd3d-proton 3.1)
  • GPU: NVIDIA GeForce GTX 1650 (4 GB VRAM)
  • RAM: 16 GB
  • Build: victory-fork (as of 2026-11-25), built with cargo xwin (target x86_64-pc-windows-msvc), Rust stable 1.99
  • Game: GTA VI Xbox Series build 1.0.2.1 (game_scarlett_master.exe)

Description

The game crashes deterministically during loading (before the intro video) with an unhandled exception in victory-image-*.dll.

Crash details

  • Exception: 0xc0000005 (access violation, write to 0x0)
  • Location: victory-image-b99f876b74d4a77f.dll+0x2215c35
  • Registers are IDENTICAL across all runs (deterministic, not random):
    rax 0x6ffff1424380 rbx 0x0 rcx 0x4189374bc6a7f0 rdx 0x52ee50048
    rsi 0x358fec8 rdi 0x33d4594421 rsp 0x358fea0 rbp 0x0
    r8 0x7fda29d010e8 r9 0x7fda29d01128 r10 0x2942cf2 r11 0x202
    r12 0x33c0a8cf82 r13 0x6ffff7c65c28 r14 0x6ffffff615c0 r15 0x33c27328a1

Root cause analysis (static, Ghidra 12.1.4)

The crash instruction at 0x2215c35 is:
movl $0x0, 0x0 (c7 04 25 00 00 00 00 00 00 00 00)

Preceded by:
142215c27: mov 0x4fa071a(%rip), %rax # load function pointer from 0x1471b6348
142215c2e: test %rax, %rax # null check
142215c31: je 0x142215c35 # if null -> crash
142215c33: call *%rax # if not null -> call

This is an intentional assertion/crash: the game expects a function pointer at global 0x1471b6348 to be set during initialization. On Xbox (console), something configures it. Under victory-fork, it is never set, so the game deliberately writes to null (crash).

Patching the instruction to NOPs (11 bytes -> 0x90) allows the game to continue past this point without crashing. After patching, the game progresses further (reaches the intro / loading).

Full crash log

unix time 1795565778, process 316
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there)
  rax 0x6ffff1424380 rbx 0x0 rcx 0x4189374bc6a7f0 rdx 0x52ee50048 rsi 0x358fec8 rdi 0x33d4594421 rsp 0x358fea0 rbp 0x0
  r8 0x7fda29d010e8 r9 0x7fda29d01128 r10 0x2942cf2 r11 0x202 r12 0x33c0a8cf82 r13 0x6ffff7c65c28 r14 0x6ffffff615c0 r15 0x33c27328a1
  #0  victory-image-b99f876b74d4a77f.dll+0x2215c35
  #1  victory-image-b99f876b74d4a77f.dll+0x2215eca
  #2  kernel32.dll+0x11719
  #3  ntdll.dll+0x10e0f

Note

This analysis was performed by an AI assistant (Beam, via Opencode) on behalf of the user (Alain, GitHub: alain0308t). The user authorized sharing this crash information and the AI's involvement. Static analysis used Ghidra 12.1.4.

**@⁠alain0308t** on GitHub · 2026-11-25 00:31 UTC · [original](https://github.com/fxceless/victory-fork/issues/416) ## Environment - OS: Fedora Linux (Wine staging 11.20, vkd3d-proton 3.1) - GPU: NVIDIA GeForce GTX 1650 (4 GB VRAM) - RAM: 16 GB - Build: victory-fork (as of 2026-11-25), built with cargo xwin (target x86_64-pc-windows-msvc), Rust stable 1.99 - Game: GTA VI Xbox Series build 1.0.2.1 (game_scarlett_master.exe) ## Description The game crashes deterministically during loading (before the intro video) with an unhandled exception in victory-image-*.dll. ## Crash details - Exception: 0xc0000005 (access violation, write to 0x0) - Location: victory-image-b99f876b74d4a77f.dll+0x2215c35 - Registers are IDENTICAL across all runs (deterministic, not random): rax 0x6ffff1424380 rbx 0x0 rcx 0x4189374bc6a7f0 rdx 0x52ee50048 rsi 0x358fec8 rdi 0x33d4594421 rsp 0x358fea0 rbp 0x0 r8 0x7fda29d010e8 r9 0x7fda29d01128 r10 0x2942cf2 r11 0x202 r12 0x33c0a8cf82 r13 0x6ffff7c65c28 r14 0x6ffffff615c0 r15 0x33c27328a1 ## Root cause analysis (static, Ghidra 12.1.4) The crash instruction at 0x2215c35 is: movl $0x0, 0x0 (c7 04 25 00 00 00 00 00 00 00 00) Preceded by: 142215c27: mov 0x4fa071a(%rip), %rax # load function pointer from 0x1471b6348 142215c2e: test %rax, %rax # null check 142215c31: je 0x142215c35 # if null -> crash 142215c33: call *%rax # if not null -> call This is an intentional assertion/crash: the game expects a function pointer at global 0x1471b6348 to be set during initialization. On Xbox (console), something configures it. Under victory-fork, it is never set, so the game deliberately writes to null (crash). Patching the instruction to NOPs (11 bytes -> 0x90) allows the game to continue past this point without crashing. After patching, the game progresses further (reaches the intro / loading). ## Full crash log ``` unix time 1795565778, process 316 VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there) rax 0x6ffff1424380 rbx 0x0 rcx 0x4189374bc6a7f0 rdx 0x52ee50048 rsi 0x358fec8 rdi 0x33d4594421 rsp 0x358fea0 rbp 0x0 r8 0x7fda29d010e8 r9 0x7fda29d01128 r10 0x2942cf2 r11 0x202 r12 0x33c0a8cf82 r13 0x6ffff7c65c28 r14 0x6ffffff615c0 r15 0x33c27328a1 #0 victory-image-b99f876b74d4a77f.dll+0x2215c35 #1 victory-image-b99f876b74d4a77f.dll+0x2215eca #2 kernel32.dll+0x11719 #3 ntdll.dll+0x10e0f ``` ## Note This analysis was performed by an AI assistant (Beam, via Opencode) on behalf of the user (Alain, GitHub: alain0308t). The user authorized sharing this crash information and the AI's involvement. Static analysis used Ghidra 12.1.4.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:42:58 +00:00
Author
Owner

@⁠Arvi23 on GitHub · 2026-11-25 01:10 UTC · original

This is the title's own stall watchdog ending the process on purpose, not a pointer the console fills in. Your registers show which of its two checks fired.

I read the same code on the same image (victory-image-b99f876b74d4a77f.dll, the hash in your log) with objdump. The watchdog is a thread whose function starts at +0x2215a60. Its loop:

  • reads the timer, calls Sleep(1000), reads the timer again;
  • if that sleep took more than 2.0 s (the constant is 2.0f), it sets its countdown back to 30 and moves on;
  • otherwise it compares the main loop's last progress time (a global the main loop updates) with the value it saw on the previous pass. If it has not changed, the countdown drops by one; at 0 the title ends itself. If it has changed, the countdown goes back to 30.
  • When another global is set, it checks a table of 64 timestamp slots instead, and ends the title if any slot is 300 s old (300.0f).

Both checks end at +0x2215c16. The path you hit is the one at +0x2215c27: if a handler pointer (the global at +0x71b6348) is set it is called, otherwise the deliberate mov dword [0], 0 at +0x2215c35. The handler is presumably where the other reported kill site, +0x23cf683 (mov dword [0], 0x4d8bd421), comes from. That is not checked here.

Your crash is the countdown, not the 300 s check: rbx = 0 and rbp = 0 in all your runs. The countdown path clears ebx before it jumps to the end, and ebp is the countdown itself. The 300 s path enters with ebx holding the count that was left. So in your runs the title's main loop made no progress for about 30 s during loading, and none of the watchdog's 1 s sleeps took longer than 2 s.

On patching it:

  • NOPing the 11 bytes at +0x2215c35 runs on into int3 padding at +0x2215c40, so whether the title then carries on depends on how that breakpoint is handled in your setup.
  • #364 carries the opt-in hooks from upstream Marvisak/VIctory#454 (VICTORY_NO_WATCHDOG=1). They check the build hash and the exact bytes, and jump over the call instead.
  • Turning the watchdog off also hides real hangs. The XCL project hit the same watchdog on the same build (xcl-dev/xcl#505, where pipeline builds on AMD took 15–60 s on the title's thread). There I made the title's long Sleep calls (500 ms or more) last until no title thread was waiting for a pipeline, at most 60 s longer each. A sleep longer than 2 s resets the countdown, so the watchdog sees a host-side stall as a pause and still catches a real hang. Branch: Arvi23/xcl kernelx/hold-sleeps-during-pipeline-builds. In XCL that ran 34 min on an RX 9070 XT without a watchdog stop, where the title had ended itself at 112 s before. VIctory makes pipelines on worker threads with a per-frame budget, so the same idea would hook the title's Sleep while a frame is held up. That isn't written for VIctory yet.

Why your loading stalls for 30 s is still open. On a 4 GB card under Wine, a long pipeline build or paging are likely candidates. The log lines just before the crash should show a gap of about 30 s and what came before it.

Not checked: the handler's target (the global at +0x71b6348) at run time; other builds of the title (the offsets are for b99f876b74d4a77f only).

No game data here: offsets, constants and register values only.

AI use: Claude Code (Claude Opus 5.5) disassembled the watchdog on my machine and wrote this; the XCL change and its runs are from my earlier work with it.

**@⁠Arvi23** on GitHub · 2026-11-25 01:10 UTC · [original](https://github.com/fxceless/victory-fork/issues/416#issuecomment-7149281451) **This is the title's own stall watchdog ending the process on purpose, not a pointer the console fills in.** Your registers show which of its two checks fired. I read the same code on the same image (`victory-image-b99f876b74d4a77f.dll`, the hash in your log) with `objdump`. The watchdog is a thread whose function starts at `+0x2215a60`. Its loop: - reads the timer, calls `Sleep(1000)`, reads the timer again; - **if that sleep took more than 2.0 s** (the constant is `2.0f`), it sets its countdown back to 30 and moves on; - otherwise it compares the main loop's last progress time (a global the main loop updates) with the value it saw on the previous pass. **If it has not changed, the countdown drops by one; at 0 the title ends itself.** If it has changed, the countdown goes back to 30. - When another global is set, it checks a table of 64 timestamp slots instead, and ends the title if any slot is **300 s** old (`300.0f`). Both checks end at `+0x2215c16`. The path you hit is the one at `+0x2215c27`: if a handler pointer (the global at `+0x71b6348`) is set it is called, otherwise the deliberate `mov dword [0], 0` at `+0x2215c35`. The handler is presumably where the other reported kill site, `+0x23cf683` (`mov dword [0], 0x4d8bd421`), comes from. That is not checked here. **Your crash is the countdown, not the 300 s check:** `rbx = 0` and `rbp = 0` in all your runs. The countdown path clears `ebx` before it jumps to the end, and `ebp` is the countdown itself. The 300 s path enters with `ebx` holding the count that was left. So in your runs the title's main loop made no progress for about 30 s during loading, and none of the watchdog's 1 s sleeps took longer than 2 s. On patching it: - NOPing the 11 bytes at `+0x2215c35` runs on into `int3` padding at `+0x2215c40`, so whether the title then carries on depends on how that breakpoint is handled in your setup. - #364 carries the opt-in hooks from upstream Marvisak/VIctory#454 (`VICTORY_NO_WATCHDOG=1`). They check the build hash and the exact bytes, and jump over the call instead. - Turning the watchdog off also hides real hangs. The XCL project hit the same watchdog on the same build (xcl-dev/xcl#505, where pipeline builds on AMD took 15–60 s on the title's thread). There I made the title's long `Sleep` calls (500 ms or more) last until no title thread was waiting for a pipeline, at most 60 s longer each. A sleep longer than 2 s resets the countdown, so the watchdog sees a host-side stall as a pause and still catches a real hang. Branch: [`Arvi23/xcl` `kernelx/hold-sleeps-during-pipeline-builds`](https://github.com/Arvi23/xcl/tree/kernelx/hold-sleeps-during-pipeline-builds). In XCL that ran 34 min on an RX 9070 XT without a watchdog stop, where the title had ended itself at 112 s before. VIctory makes pipelines on worker threads with a per-frame budget, so the same idea would hook the title's `Sleep` while a frame is held up. That isn't written for VIctory yet. Why your loading stalls for 30 s is still open. On a 4 GB card under Wine, a long pipeline build or paging are likely candidates. The log lines just before the crash should show a gap of about 30 s and what came before it. Not checked: the handler's target (the global at `+0x71b6348`) at run time; other builds of the title (the offsets are for `b99f876b74d4a77f` only). No game data here: offsets, constants and register values only. AI use: Claude Code (Claude Opus 5.5) disassembled the watchdog on my machine and wrote this; the XCL change and its runs are from my earlier work with it.
Author
Owner

@⁠kaayzouee on GitHub · 2026-11-25 01:58 UTC · original

Possible overlap with #57 / #222 — confirmation requested.

The crash at +0x2215c35 appears to match the watchdog path already discussed here and addressed by PR #364. Could you test that opt-in fix and report whether loading completes or the process remains stalled? Disabling a watchdog can hide a real hang; this is a diagnostic check, not a claim that the underlying stall is fixed.

This is an automated message. This issue should remain open pending confirmation. If you believe the overlap is incorrect, please reply with the relevant technical differences.

**@⁠kaayzouee** on GitHub · 2026-11-25 01:58 UTC · [original](https://github.com/fxceless/victory-fork/issues/416#issuecomment-7150166832) Possible overlap with #57 / #222 — confirmation requested. The crash at +0x2215c35 appears to match the watchdog path already discussed here and addressed by PR #364. Could you test that opt-in fix and report whether loading completes or the process remains stalled? Disabling a watchdog can hide a real hang; this is a diagnostic check, not a claim that the underlying stall is fixed. This is an automated message. This issue should remain open pending confirmation. If you believe the overlap is incorrect, please reply with the relevant technical differences.
Author
Owner

@⁠rafaconvaitis on GitHub · 2026-11-26 20:10 UTC · original

I observed the same watchdog signature once on native Windows 11 with an RTX 4070 12 GB, using a Series S Cool Fox diagnostic build based on c3e5c375. The image was victory-image-b99f876b74d4a77f.dll and the unhandled null write was at +0x2215c35. The run ended about 39.6 seconds after launch, before account selection or any XGameSave read.

The run loaded a warm 187,254,590-byte host pipeline library. The D3D12 host first became ready about 34 seconds after launch. The same executable and cache seed reached account selection in a subsequent Stage 1 run, where the role of Stage 1 versus Stage 2 was the configuration difference. The failed run had no reported device removal or executed card-step copy. Stage 2 can still affect allocation choice during recording, so this single pair leaves the underlying stall open.

This adds an occurrence of the signature outside Wine. I have left the title watchdog enabled.

**@⁠rafaconvaitis** on GitHub · 2026-11-26 20:10 UTC · [original](https://github.com/fxceless/victory-fork/issues/416#issuecomment-7202379377) I observed the same watchdog signature once on native Windows 11 with an RTX 4070 12 GB, using a Series S Cool Fox diagnostic build based on `c3e5c375`. The image was `victory-image-b99f876b74d4a77f.dll` and the unhandled null write was at `+0x2215c35`. The run ended about 39.6 seconds after launch, before account selection or any XGameSave read. The run loaded a warm 187,254,590-byte host pipeline library. The D3D12 host first became ready about 34 seconds after launch. The same executable and cache seed reached account selection in a subsequent Stage 1 run, where the role of Stage 1 versus Stage 2 was the configuration difference. The failed run had no reported device removal or executed card-step copy. Stage 2 can still affect allocation choice during recording, so this single pair leaves the underlying stall open. This adds an occurrence of the signature outside Wine. I have left the title watchdog enabled.
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/fxceless--victory-fork#416
No description provided.