0x80000003 lands in function padding via call [r9+0x30] at the account-picker → world transition; a second crash overruns a 24-byte-stride table; crash-log appends interleave #2025
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#2025
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?
@remembering7896 on GitHub · 2026-11-25 03:27 UTC · original
Summary
On the account-picker → first-world transition, the title sometimes takes an indirect call through
[r9+0x30]on a fixed global object and lands inside single-byteint3padding between two functions, raising0x80000003. It hit 12 times inside one process (12 worker threads, same PC, one sharedr9), then on another run the same code path instead died with0xc0000005reading past the end of a committed table. Booting to the account picker and the Rockstar/start screens is fine (stable 30 fps, issue #417); this only shows up once the title starts building world state.Two separate things are worth a look, plus one logging bug (§3).
Build / host
mainas of 2026-11-25 09:24 local build (victory.exe7,291,392 B),cargo build --release -p victoryGTA6.Xbox.v1.0.2.1,game_scarlett_master.exe120,181,760 B, blake3b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93, title id7952987Aunimplementedpolicy (Trap)crashes.logfor that process (E:\victory-data\data\7952987A\crashes.log, headerunix time 1795571527= 2026-11-25 09:52:07):1.
0x80000003in the middle of inter-function paddingAll 12 records share one PC —
victory-image-b99f876b74d4a77f.dll+0x5149aec— and differ only inrbp,r12,rsp,rdi,r10,r11, i.e. distinct threads:r9is byte-identical in all 12 records (0x7ffa8bfd1de0), as arerbx = rdx = rsi = 0xcandr8 = 0xffffffff00000000.raxis0x10380001fffein 8 of them and0xc8e0001fffein the other 4;rbpspans0x5…0xc0,r12spans0x0…0xb0.The crash PC is a padding byte, not a stub and not an assertion
Bytes at
+0x5149aec(.text, VA0x1000/ raw0x400, so file offset0x5148eec):The byte at the reported PC is
CC(single-byteint3), sitting immediately after ajmp short +3(EB 03) that exists precisely to skip it, and in front of a normal epilogue (xor edi,edi; mov rax,rdi; add rsp,28h; pop rdi; pop rsi; ret). So this is ordinary alignment padding between two functions — something made an indirect call resolve into it.Also: none of the records contains the
VIctory: unimplemented import <dll>!<symbol> calledline thatthunks.rs'sTraparm writes, so this is not one of our import thunks.Where the call comes from
Reading the instruction that ends at each reported return address:
0xa5db2241 FF 51 30call qword ptr [r9+0x30]0x5453ac7E8 19 A0 60 FBcall rel320x23d0f9aE8 16 2B 08 03call rel32and
#3continues withi.e. it is a loop over elements that calls
[obj+0x30]once per element. The shared, fixedr9means every thread is calling a virtual method on the same global object, and that slot holds an address inside padding.That would explain the shape of the failure: one bad slot ⇒ every thread that reaches this loop traps at the same PC, with its own
rbp/r12loop counters (which is exactly what the 12 records show).Question: is
+0x30off that object a slot we populate (vtable built by the loader / a translated dispatch table), or guest data? If it is ours, this looks like one entry getting the address of padding rather than the real method — e.g. an offset resolved from a neighbouring symbol, or a relocation applied to the wrong slot.2.
0xc0000005reading past the end of a table (same code path, different run)unix time 1795574422= 2026-11-25 11:12:22, pid 25672:Code at
+0x28cd253:With
rcx = 0x50598c1b0(table base, allocation baser15 = 0x50598c000) andr10 = 0x147cc:So a lookup walks a 24-byte-stride entry table with a 16-bit counter and runs off the end of the committed region without meeting whatever terminator it is looking for (
r8 = 0x286030a358a789fbnever matches). Either the table's terminating entry is missing/not written, or the count/size handed to the title is short. (For reference, the same file recorded0x887A0004/0x887A0006device-removed failures earlier in the day, before the page file was enlarged; those are gone now.)3.
crashes.logappends are unsynchronisedThe header line of the process above is interleaved:
Multiple threads (12 of them, per §1) wrote their records concurrently into the same file with no lock, so a parser can no longer split records by the
unix time …, process …prefix. Worth a mutex around the record append (or a single dedicated writer), since the trap path is exactly the multi-thread case.What I already ruled out
unimplemented importline in any record, and--unimplemented zero(110 s) never produced this crash — it instead sits at the account picker at a steady 30 fps and never advances.commitpeaks at ~25 GB with a 250 GB page file, and the failure is a read ofreserved, never committed, not an allocation failure.host GPU device removedrecord after the page-file fix.--profile diag --features diagnosticsrun withVICTORY_LOG=debugreached the world (~T+50 s, 3610 draws) with no trap at all, so the failure is intermittent — it appears to depend on where the title is in world bring-up, not on the first frame.Happy to run anything you want instrumented (
VICTORY_STACKS, extra tracing atthunks.rs, or a build that dumps the object atr9and the pointer in[r9+0x30]when the loop starts).@AgneyaK on GitHub · 2026-11-25 04:42 UTC · original
On §1:
+0x5149aecisn't a call into padding. It's the title's ownint 3in a lock-free pool allocator, hit when the pool is empty. I decoded the same site earlier on an RTX 3050 laptop (#1232), and your registers match it exactly.Disassembly of the same image (
b99f876b…, image base0x140000000), from the function's entry:int 3is a branch target (twojes), not padding between functions. TheEB 03before it is the success path jumping over it to the shared epilogue.raxvalues end in the empty marker:0x10380001fffeand0xc8e0001fffeboth have low 32 bits0x0001fffe. The high 32 bits are the ABA tag, which is why they differ between records.r8 = 0xffffffff00000000is the tag mask loaded just above.call [r9+0x30]at+0xa5db22reached the right function (+0x5149a60, a normal entry). Twelve threads trap at one PC because they all allocate from the same global pool, and it's empty. It isn't a bad vtable slot of ours.So the question is why the pool runs dry during world entry, not where a bad pointer came from. On the laptop it came with very low frame rates (0.1–0.4 fps): the title seemed to return nodes to the pool only as frames complete, so they piled up. Your machine is far faster, so a slow-frame explanation is less obvious there. Something else that holds nodes (a fence or completion the title waits on before freeing) would fit too. I haven't identified which pool this is, or what it holds.
AI use: Claude Code (Claude Opus 5.5) disassembled the image locally and wrote this; no game data beyond addresses and instructions.
@AgneyaK on GitHub · 2026-11-25 04:43 UTC · original
On §2, the registers say a bit more than "ran off the end". The table's own count says it's longer than the memory that's committed for it:
edx = 0x7c00(also inrsi): 31,744 entries of 24 bytes. The index isr9 = 0x6d44= 27,972, and0x6d44 × 24 = 0xa3e60, which is exactlyfault − rcx. So it faulted at entry 27,972 of 31,744 (88%), well inside the count.r15 = 0x50598c000: the table needs0x1b0 + 0x7c00 × 24=0xba1b0bytes, but memory is committed only to0x505a30000, i.e.0xa4000bytes. That boundary is 64 KiB-aligned; the base itself isn't (…c000).So the walk didn't miss a terminator. It was still within the entries it was told exist, and the tail of the table was never committed (
reserved, never committed). That points at who sized or committed this block, rather than at the table's contents: a short commit of a reserved range, or the title committing on demand in steps the host didn't follow. I haven't found which allocation call made it. AVICTORY_LOGtrace ofxmem/VirtualAlloccalls covering0x50598c000, with reserve and commit sizes, would settle whether the title asked for0xba1b0+ and got less.AI use: Claude Code (Claude Opus 5.5) did the arithmetic from the registers in the report and wrote this.
@AgneyaK on GitHub · 2026-11-25 04:45 UTC · original
A candidate for §2's uncommitted tail, in our own code.
XMemVirtualAllocdocuments a shortcut: a reservation of 64 KiB pages becomes a host placeholder, and "committing part of such a reservation later would fail (Grand Theft Auto VI's 23 calls never do)". The tail boundary here is 64 KiB-aligned (0x505a30000), which fits that kind of reservation.I checked the shortcut with a throwaway unit test on
main940d32f(Windows 11 26300):So if the title commits into such a reservation on the way into the world (not just at boot, where it was counted), it gets null back, and the range stays reserved, as your fault says.
Could you check that run's log for either of these warnings shortly before the fault?
VICTORY_LOGat the default level shows them:committing virtual memory failed(withlen)XMemVirtualAlloc refused(withsize,kindandflags)If one is there with a
lenaround0x10000–0xba000, this is the cause, and the fix is the one the comment names: replace that part of the placeholder with committed memory. If neither is there, it's something else (for exampleXMemMapPhysicalPagesnot mapping the last page), and I'll look there instead.AI use: Claude Code (Claude Opus 5.5) wrote the probe and this; the results are from the run described.
@AgneyaK on GitHub · 2026-11-25 04:45 UTC · original
One data point against my lead above, for balance: none of the 62 title logs on my machine (RTX 3050 laptop, 2026-11-24/25) has
committing virtual memory failed,committing physical pages failedorXMemVirtualAlloc refused. That includes three 7–8.5-minute story-load runs (oldermain+ PRs), which stopped before the world. So up to the story load the title never commits into a 64 KiB-page reservation here. It could still start at world entry, which I can't reach, so your log is what decides it.AI use: Claude Code (Claude Opus 5.5) searched the local logs and wrote this.
@BaggyALPHA on GitHub · 2026-11-25 04:55 UTC · original · edited 2026-11-25 15:23 UTC
Partial progress on sections 1-2 (claimed in #1633), reported honestly since I could not confirm it live.
A candidate mechanism, from VIctory's own source only (no game data):
crates/victory-gpu/src/watch.rslines 33-35 document an accepted limitation:The unmarked copy-back path,
Shadow::copy_back_or_not(shadow.rs:339), keeps a per-submission "before" snapshot of title memory a GPU list may write, and writes GPU-changed bytes back into title memory once the submission completes. Nothing ties that pending snapshot towatch::title_memory_remapped: if the title frees and reallocates (or remaps) a title-memory range while a submission covering it is still betweenwriting()andcopy_back_or_not(), the stale "before" snapshot could be compared against, and written back over, memory that by then holds something unrelated — which would explain object state (e.g. a vtable pointer) going bad intermittently, exactly during the heavy alloc/free/remap churn of world loading. This is a hypothesis grounded in a documented gap, not a confirmed cause — I have not proven this is what happened in your two records.What I could and couldn't verify locally: Windows 11 (10.0.26300), RTX 3080 (621.24), with the same title build as the report (its blake3 prefix matches).
cargo build --release --features diagnosticssucceeded at upstream940d32f. Two scripted runs (VICTORY_KEYS) both ended in device removal before reaching the account-picker→world transition, for reasons unrelated to this issue:no host texturefor Xbox-only format 115 (2560x1440), then device removed — this is #1781/#1753, already tracked and has an open fix (#1775).0x887A0006after a 5.8 s submission of 26 compute lists — the already-tracked NVIDIA world-hang (#1670/#1317/#1968 territory).So on this hardware I cannot reach the code path #2025 describes at all right now; I can't corroborate or rule out the watch.rs hypothesis with a live run. The original report's AMD RX 7900 XTX evidently gets further than NVIDIA does here.
Suggested next step for whoever has a reliable repro (AMD, per the original report): the diagnostic you offered — dumping the object at
r9and[r9+0x30]when the loop starts, and checking whether that address falls inside a rangevictory-gpu'swatch/shadowmodules are tracking versus a plain title allocation — would directly confirm or rule this out, without needing any game-internal knowledge beyond "is this address one of ours."I'm releasing the claim rather than sitting on it, since I can't currently reproduce the scenario to take this further myself.
AI-assisted (Claude Code). No game files, disassembly, or raw logs are included above; addresses/instruction shapes already public in the issue body aren't repeated.
@AgneyaK on GitHub · 2026-11-25 05:14 UTC · original
Thanks for writing that up. One check of the copy-back idea against the two records, so the reporter knows which logs would still help:
reserved, never committed. A stale copy-back writes into title memory that is committed (it can put wrong bytes there, or fault on the GPU side's own thread). It can't leave the tail of the table uncommitted, and the table's own count (31,744 entries, fault at 27,972) says the title expected those pages to exist. So §2 still points at how that block was reserved and committed.call [r9+0x30]reached the right function, and theint 3at+0x5149aecis the title's pool-empty assert (rax's low 32 bits are the empty marker0x1fffein every record). Stale bytes inside the pool's free list could in theory make it look empty, but the 12 threads trapping together at one PC fit a pool that really ran dry.So for §2 the most useful thing from the reporter is still that run's log near the fault:
committing virtual memory failed,XMemVirtualAlloc refused, orVICTORY_LOG=victory_hle=debuglines forXMemVirtualAllocwith anatnear0x50598c000. The watch/copy-back gap you quote is real, but these two records don't need it.AI use: Claude Code (Claude Opus 5.5) wrote this from the decodes above; nothing new was run.
@AgneyaK on GitHub · 2026-11-25 05:25 UTC · original
Which pool §1 runs out of: the one the title's config calls
building. Decoded from imageb99f876b…(base0x140000000):0x5411E15Cis the one-at-a-time ("joaat") hash of the stringbuilding, which is in the image. I hashed all 558,443 strings in the image, and that's the only match. So the allocator at+0x5149a60that traps when the free list's low 32 bits are0x1fffehands out the title's building entries. That fits the moment both reports hit it: entering the world, when the map streams in.What that means:
+0xa9ec938is read at 15 other sites (for example+0x33b267,+0xd63f69,+0x21c0808,+0x5565d7b,+0x5897484,+0x5adb024), and the free path is among them.AI use: Claude Code (Claude Opus 5.5) disassembled the image locally and matched the hash against the image's strings; no game data beyond addresses, instructions and a hash name.
@Marvisak on GitHub · 2026-11-25 12:51 UTC · original
Automated triage for the maintainers.
Thanks, a detailed report: RX 7900 XTX, driver 32.0.32029.2010, Windows 11 26300, a
mainbuild of 2026-11-25 (please add the commit,git rev-parse --short HEAD).crashes.logrecords): confirmed inmain(940d32f).append_to_logincrates/victory-loader/src/crash.rsopens the file in append mode and writes the record with an unbufferedwrite!and no lock, so concurrent crash reports from several threads can interleave their pieces. Building the record into one string and writing it under a lock (or with onewrite_all) would fix it.0x80000003at+0x5149aec): per the comments, this is the title's own assert when a fixed-size pool runs empty during world entry, not a call through a bad pointer of ours; #1232 reports the same assert on a slower laptop. What keeps entries alive longer than on the console is open.0xc0000005reading reserved, never committed memory): still needs that run's log. Please paste, as text, anycommitting virtual memory failedorXMemVirtualAlloc refusedlines shortly before the fault; they would show whether a commit into a 64 KiB-page reservation was refused (the documented shortcut inXMemVirtualAlloc,crates/victory-hle/src/modules/xmem.rs).Disassembly and decoded internals of the title's code must not be posted in this tracker; please keep to offsets and register values.
Generated by Claude Code