Crash at +0x443b2fb: read of -1 pointer, 2 s after start, after fixing .rdata write fault #2123
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#2123
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?
@Sergi165 on GitHub · 2026-11-25 05:35 UTC · original
Windows 10 19045, Ryzen 5 5600, RTX 4060 8 GB, 16 GB RAM.
exe blake3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93 (120181760 bytes).
Reproduces on main
940d32f6, ada4060 (PR #1076), victory-gta6578d459c, Series X and S,with --unimplemented zero and trap.
Step 1, fixed by a local patch
Without a patch the title dies immediately after "graphics virtual memory flags=0":
0xc0000005 write <base+0x65f5420>: read-only
+0x65f5420 lies in .rdata (rva 0x5f41000..0x67d1c0c), flags 0x40000040.
Cause: LoadLibraryExW maps .rdata PAGE_READONLY, the title writes a call table there
(issue #630: "custom import call-table ... 275 FF 25 thunks into .rdata ~0x6794xxx").
Making the mapped image PAGE_EXECUTE_READWRITE removes this crash entirely.
Step 2, the new crash
0xc0000005 at image+0x443b2fb (read 0xffffffffffffffff)
#0 +0x443b2fb #1 +0x53c0c4c #2 0x970e9691d63f8d88 (unwound stack is garbage)
~2 s after start, sometimes ~20 s.
Last debug log lines:
device type read console="Xbox Series X" x2
graphics virtual memory flags=0 page_table_pages=4
XMemVirtualAlloc size=25769803776 kind=0x42000 flags=0x21 at=0x100000000
XMemVirtualAlloc size=25769803776 kind=0x42000 flags=0x3 at=0x700000000
XMemVirtualAlloc size=1228931072 kind=0x203000 flags=0x183 at=0xd00000000
All three returned valid addresses, so -1 does not come from XMemVirtualAlloc.
Matches the "cold-run sentinel family" from #630 (consumers filtering only null while
failure paths write 0/-1), but +0x443b2fb is not in that map.
Ask: which import should return something other than -1 here, and should the loader
map the title image the way the console does (no section protections) by default?
@AgneyaK on GitHub · 2026-11-25 06:12 UTC · original
One thing about step 1 that changes how to read step 2:
+0x65f5420isn't a call table. It's a class's vtable. From imageb99f876b…(base0x140000000):It's referenced only as
lea …,[+0x65f5420](at+0x2219b7b,+0x221a7eb,+0x28b7b0e,+0x43aef91,+0x5a5121b), and its first entry is a code pointer (+0x4db8160). The title's own call table is elsewhere: the IAT directory covers+0x6793490–+0x6794908.So a write to
+0x65f5420means some code used the vtable's address where it expected an object's address (an object pointer that is really&vtable, or one field too far through a pointer). On a console this would fault the same way, since.rdatais read-only there too. Making the image writable lets that write overwrite the first entries of the vtable, and the-1read at+0x443b2fba few seconds later may well be the result: a virtual call or field read through the damaged entries. I'd treat step 2 as a consequence of step 1 until shown otherwise.What would identify the writer is the instruction that wrote, which the report doesn't include. The
unhandled exception 0xc0000005 at victory-image-…dll+0x…line fromcrashes.logfor step 1 (without the patch) has it, along with#0…#5and the registers. Could you paste that? With the PC, the store and where its pointer came from can be decoded from the image.For comparison: on Windows 11 26300 (RTX 3050 laptop,
main940d32f, Series X and S, unmodified loader) this write never happens. Runs go past the menus with no exception at+0x65f5420. So something in your run steers the title onto this path early. The PC will say what.AI use: Claude Code (Claude Opus 5.5) disassembled the image locally and wrote this; no game data beyond addresses and instructions.
@Sergi165 on GitHub · 2026-11-25 06:21 UTC · original
Here is the step-1 dump you asked for (no patch, image b99f876b, base 0x7ffcd30a0000):
unhandled exception 0xc0000005 at image+0x52ed600 (write 0x7ffcd9695420: read-only, in image+0x65f5420)
rax=0x7ffcd9695420 rbx=0x0 rcx=0x7ffcda261560 rdx=0x7ffcda261560 rsi=0xa rdi=0x7ffcda2627e0
rsp=0xeb128ff978 rbp=0x7ffcd9228a00 r8=0xa r9=0x100 r12=0x7ffcda2613a8 r13=0x0 r14=0x7ffcda261560 r15=0x49400000
#0 +0x52ed600 #1 +0x1cf0d8e #2 +0x221a80e #3 +0x221a500 #4 +0x1e1d3bf #5 +0x1e0a375 #6 +0x5c1b689 #7 ucrtbase+0x1e473 #8 +0x56a1dd0
@Sergi165 on GitHub · 2026-11-25 06:21 UTC · original
Confirmation on a second, independent loader: XCL (Rust, different codebase) has the exact same pair.
Without a writable-image patch it faults "write at 0x1465f5420" at game+0x52ed600.
With the image made writable it then faults "read 0xffffffffffffffff" at game+0x443b2fb.
So step 2 follows step 1 on both loaders, exactly as you predicted (the patch corrupts the vtable).
@AgneyaK on GitHub · 2026-11-25 06:23 UTC · original
Thanks, that dump narrows it a lot, and it contains a contradiction worth chasing.
The registers fit the entry of a virtual call made inside the constructor of the static object at
+0x71c1560:Slot
0xF8of that vtable is+0x52ed600, your#0. In the image that function is five bytes:That instruction can't write anything, let alone to the vtable at
rax. So on your machine the bytes at+0x52ed600in the running process can't be these. Yourrax,rcx,rdx,rdi,r8andr14match this path exactly, so the path itself is right. Something has changed the code there, or the page holds something else, in both loaders on that machine.To check, VIctory's diagnostics build can save title memory on a crash:
Run once without the writable-image patch and paste the 16 bytes at
+0x52ed600, and the 8 bytes of the slot (+0x65f5518, expected to hold the image base +0x52ed600). If the 16 bytes aren't48 8b 41 20 c3 cc cc cc …, something on that machine writes into the mapped title code. That would explain both loaders failing the same way there and nowhere else. Software that injects into processes is the usual suspect: overlays, capture or monitoring tools, or "exploit protection" style hooks. A run with those turned off would be worth a try.AI use: Claude Code (Claude Opus 5.5) disassembled the image locally and wrote this; no game data beyond addresses and instructions.
@Sergi165 on GitHub · 2026-11-25 06:29 UTC · original
The 16 bytes at +0x52ed600 are NOT the file bytes — in the running process they are all zeros:
crash-52ed600.bin (22 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
(0xC3 and the CC padding are gone too — the whole page reads as 00.)
The vtable slot is intact: crash-65f5518.bin = 00 D6 B9 CE FC 7F 00 00 = 0x7ffcceb9d600
= image_base (0x7ffcc98b0000) + 0x52ed600. So the vtable points to the right RVA; only the code there is zeroed.
That decodes exactly: 00 00 = add [rax], al with rax = 0x7ffccfea5420 (the vtable) — the "write into the vtable".
Same on XCL (independent loader, same machine: Windows 10 19045, RTX 4060 8 GB, 16 GB RAM):
"write at 0x1465f5420" at game+0x52ed600.
Next: re-running with a control dump (entry point +0x56a1ec8 and +0x1000) to see whether only this page is zeroed, and with overlays / security tools off.
@Sergi165 on GitHub · 2026-11-25 06:31 UTC · original
Control dump (same run, no writable patch):
+0x1000 (start of .text): 56 57 53 48 83 EC 20 48 8B 59 08 (valid)
+0x56a1ec8 (entry point) : 48 83 EC 28 E8 0B 00 00 00 ... (valid)
+0x52ed600 : 00 00 00 00 00 ... (all zeros)
+0x65f5518 (vtable slot) : 00 D6 B9 CE FC 7F 00 00 = 0x7ffcceb9d600 = base + 0x52ed600 (intact)
So the image mapped correctly and the vtable points to the right RVA; only the single page at
+0x52ed600 is zeroed in memory (the file / your disassembly has 48 8B 41 20 C3 there).
Executing 00 00 = add [rax], al with rax = the vtable address -> the "write into the vtable".
@Sergi165 on GitHub · 2026-11-25 06:36 UTC · original
My exe is NOT the retail image. Size matches (120181760) but SHA-256 differs and the page is zeroed in the file itself:
my SHA-256 : 4CB40755 016C67E4 AFF5531E CF717161 C62D9946 D9F6DA5E DCCDBC39 37AA9280
retail (#630) : e95020b2 fa4a721d b3df59fd ecf75621 730ac559 d8835252 f6c3b658 d5a08993
same size, different hash.
At RVA +0x52ed600 (file 0x52ECA00) BOTH the raw exe on disk AND the loader's cached image read 00 00 00...
+0x1000 is valid (56 57 53 48 83 EC 20 ...) in both. So the release build (CYBERLEEK) zeroed that code region
in-place. Same on XCL. This is why both crash at +0x52ed600 with no writable patch.
Question: can you tell from the retail image how large the zeroed region is (how many bytes / what function it is)?
If it is a small, known function I may be able to restore those original bytes.
@Sergi165 on GitHub · 2026-11-25 06:38 UTC · original
Extent check: the zeros around +0x52ed600 run for at least 272 bytes (0x52EC9F0..0x52ECB00 all 00),
so it is a multi-function code region removed in-place, not a 5-byte thunk. Retail image is e95020b2,
mine is 4CB40755 (same size 120181760).
Two questions:
functions does it cover?
inside this region, or only +0x52ed600?
If it is a bounded region I can compare byte ranges against the retail hash to confirm exactly what
the release build removed.
@Sergi165 on GitHub · 2026-11-25 06:40 UTC · original
Extent measured: exactly ~1 MiB zeroed, page-aligned:
0x52BFFFE .. 0x53C0000 (1048578 bytes; the 0x52C0000..0x53C0000 1 MiB block plus 2 bytes)
before: 0F 84 B9 0B 00 00 8B 4F 10 E9 A9 0B (valid code)
after : 48 8D 75 80 49 89 CE 48 89 D7 4C 89 (valid code)
The crashing function (vtable slot +0x65f5518 -> +0x52ed600) is inside this wiped MiB.
So the release build zeroed a whole 1 MiB .text block in place; it cannot be restored from a few bytes.
This is a modified image (SHA 4CB40755 vs retail e95020b2, same 120181760 size). Clean retail exe needed.
Nothing in the loaders can fix this. Thanks — this closes the investigation on my side.
@Marvisak on GitHub · 2026-11-25 12:53 UTC · original
Automated triage for the maintainers.
Thanks for running this down. As your last comments show, both crashes come from the executable itself: in your copy (not the expected image), a 1 MiB block of code is zeroed on disk, so the call at
+0x52ed600executes zeros and writes into read-only data, and making the image writable only moves the failure to+0x443b2fb. Another loader fails the same way with that file. The loader inmainmaps.rdataread-only on purpose, and other runs with the expected image do not hit this.What remains open here is a request for the title's original code (its extent, functions or bytes), and that cannot be provided or discussed in this tracker. Disassembly and byte dumps of the title's code must not be posted here either; please keep to offsets and register values. A run from an intact copy of your own title would be a new report.
Proposed close (request for game material; the crash is caused by the supplied file, not by VIctory). This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the
triage: proposed closelabel.Generated by Claude Code