Deterministic crash (null deref) in victory-image during loading — victory-image-*.dll+0x2215c35 #416
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#416
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?
@alain0308t on GitHub · 2026-11-25 00:31 UTC · original
Environment
Description
The game crashes deterministically during loading (before the intro video) with an unhandled exception in victory-image-*.dll.
Crash details
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
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.
@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) withobjdump. The watchdog is a thread whose function starts at+0x2215a60. Its loop:Sleep(1000), reads the timer again;2.0f), it sets its countdown back to 30 and moves on;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 deliberatemov dword [0], 0at+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 = 0andrbp = 0in all your runs. The countdown path clearsebxbefore it jumps to the end, andebpis the countdown itself. The 300 s path enters withebxholding 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:
+0x2215c35runs on intoint3padding at+0x2215c40, so whether the title then carries on depends on how that breakpoint is handled in your setup.VICTORY_NO_WATCHDOG=1). They check the build hash and the exact bytes, and jump over the call instead.Sleepcalls (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/xclkernelx/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'sSleepwhile 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 forb99f876b74d4a77fonly).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.
@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.
@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 wasvictory-image-b99f876b74d4a77f.dlland 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.