Retail title: 0xc0000005 at +0x4dbd74d, a -1 index after out-of-range ExecuteIndirect skips (3/3, two machines) #3084
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?
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T02:20:43Z.
Retail title:
0xc0000005at+0x4dbd74d, a -1 index into an 8-byte array, 6-12 ms after out-of-rangeExecuteIndirectcalls are skipped. 3 of 3 crashes at this address across 2 machines, past world load, with no device removal.Occurrences (all with a 2 GiB NVIDIA shader-heap profile, #2403, and 0 device removals):
nvidia-deveae015020xf1f009c98nvidia-devd1be8103+ local change0xf1a8ecec8r13 = 0x71a8eced0,rdi = 0xffffffff0xf1a909f88r13 = 0x71a909f90,rdi = 0xffffffffread = r13 + 0xffffffff * 8(0x71a8eced0 + 0x7fffffff8 = 0xf1a8ecec8), so a zero-extended 32-bit-1indexes an 8-byte-stride array whose base is in the coherent window (0x71a8…). The 3090 address falls in the same band. Both 5090 crashes have the same stack (+0x4dbf9eb,+0x4dbe2e9,+0x4dbde22).ExecuteIndirect ... out of range, not runwarnings ("88 out of range so far" / "190 out of range so far"). The argument values look like garbage (0xffffffffor float-like values in the argument buffer). In one run the surrounding 2 s window was still presenting normally (3 presents, 48 submits, 7,228 draws, 14,865 dispatches).Hypothesis (not verified): these indirect calls read arguments that a GPU pass should have written but didn't, or not yet. XCL then skips them as out of range, and the title next reads a result that was never produced: a
-1sentinel used as an index on the CPU. If so, the root cause is upstream of the skip (whatever leaves the argument buffer unwritten), not the skip itself.What would narrow it down:
r13is in it).Not tested: AMD; trees without the heap profile (they don't get this far); whether
mainshows it.AI use: Gemini (Antigravity) compiled the occurrences; Claude Code (Claude Opus 5.5) ran the 5090 runs, checked the register arithmetic and wrote this issue.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-28T03:21:16Z.
We cannot run retail titles, but the indirect-arguments machinery is red for us on the NVIDIA/Wine lane too, so counts in case the overlap with your 'the pass never wrote the buffer' theory helps:
linux/stack-nvidia-dev 901384f7under Wine, rig2 (GTX 1070) failedbind::gpu_two_pass_indirect_commands_keep_their_own_recordsand bothindirect_guardgarbage-count tests (logged on #3067, comment 7232642855)f64494d1(posted on that PR, comment 7233002155), rig2 failed 4gpu::recompheap_window tests plusbind::gpu_two_pass_indirect..., while rig1 (RX 7900 XT, Wine) passed all of them753e8b1a, rig2'sbind::gpu_two_pass_indirect...is green in the suiteSo NVIDIA-side indirect/window failures show up under Wine on two trees and not on AMD/Wine, which is at least the same vendor split shape you are chasing.
AI use: Hermes agent (local Qwen-class) ran the suites; I checked it before posting.
Imported from ivall/xcl. Originally posted by psuedo-tty on 2026-11-28T04:35:25Z.
Same skips here on an RTX 5090 (621.40), no crash yet, and one question: which program do your skipped ExecuteIndirects belong to?
What our logs show, in case it narrows yours:
18567a5f0145bde9, dispatched on a compute-type list. Noc0000005in those runs.0xffff01ef, 0xffff00ac, 0xffff00ad/0xf93, 0xffff0000, 0xffff0001/0x144, 0x1, 0xffff0002: 16-bit ids with0xFFFFabove, consecutive (ac/ad,0/1,1/2,3/4). That reads as another pass's records left at that offset from an earlier frame, i.e. this frame's arguments had not been written when the consumer ran.If your skipped program is the same hash, the crash and these skips are one thing and the place to look is what orders that program's producer before it. If it is a different one, they are two.
Not tested: the cause. This is a reading of logs, not a fix.
AI use: Claude Code (Claude Fable 5.2) read the run logs on my hardware and drafted this comment for human review.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T04:38:12Z.
@psuedo-tty, thanks, useful. Yours is one of ours. Across our RTX 5090 logs there are 1,019 "out of range, not run" skips from 9 compute programs, and
18567a5f0145bde9is one of them (122 skips), with the same shape you see:0xffff1079, 0xffff0077, 0xffff0078, 16-bit ids with0xFFFFabove.4401d482ef24797c0x3f008081×3 (= 0.502f)9387facebc35be6d0x221b9bc0, 0x4, 0x120(a buffer V#: address0x4_221b9bc0, 0x120 bytes)1ada490879c33c0e0x685cd360, 0xe, 0x5c018567a5f0145bde90xffff1079, 0xffff0077, 0xffff0078a6724f20f309a4800x3f8ccccd×3 (= 1.1f)3402f74f1e2a90e00x20d940e0, 0x4, 0x120(another V#)The three crashes in this issue each came 6-12 ms after skips from
376a323cea463f28,3402f74f1e2a90e0and4401d482ef24797c, so the crash program is in that same family. And the slots hold other data, not stale counts: floats, packed colours and buffer descriptors. In our runs the argument addresses are all in one 0x420d…-0x4234… range that moves from frame to frame, which looks like a per-frame transient ring the title reuses. That fits your "an earlier frame's records at that offset".So we agree on where to look: what orders the producer before the consumer. We have two candidates, and a diagnostic that tells them apart:
XCL_INDIRECT_GUARD=compare(already in the tree, read-only) logs how often the title's buffer didn't show the counts the memory window holds. If that counter climbs with the skips it's (b); if it stays 0 it's (a). That's in one of our next runs. One difference: yours sit in a view window, while ours are in sparse VRAM window 0, so the same check on your side would show whether (b) can happen through a view as well.AI use: an agent swarm: Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T08:53:47Z.
An update with a third RTX 5090 occurrence, which weakens the timing link in the hypothesis above.
0xf1a8ecec8r13 0x71a8eced0,rdi 0xffffffff0xf1a909f88r13 0x71a909f90,rdi 0xffffffffnvidia-dev54225f58-based; level pages on)0xf1a901d98r13 0x71a901da0,rdi 0xffffffffread = r13 + 0xffffffff * 8, a zero-extended-1index, with the base in the same0x71a9…band. The stack is the same family:+0x4dbf9eb, then the NVIDIA user-mode driver, then xcl, then+0x4dbe2e9.indirect_guard.rs), so the logged values are what the GPU read when the call ran. Across our runs, 1,019 skips come from 9 compute programs (listed above for @psuedo-tty). The slots hold floats, packed colours and buffer descriptors, at argument addresses that move from frame to frame. That looks more like a reused per-frame ring than unwritten memory.Next on our side: a run with
XCL_INDIRECT_GUARD=compare. It separates "the ring was reused before the call ran" from "an upload of the title's CPU pages overwrote GPU-written arguments". We'll post what it shows.AI use: an agent swarm: Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T08:59:40Z.
The
XCL_INDIRECT_GUARD=comparerun, as promised (RTX 5090; this time the default UMA, not mixed):int3(0x80000003) at+0x3bf4, 246.1 s, stack+0x4ddb15b,+0x4de13a0,+0x4de2cb6, … It came 73 ms after skips of the same compute programs as this issue's crashes (376a323cea463f28,3402f74f1e2a90e0; argument records 0x20 apart), on another thread. 3.8 s later came a second exception:0xc0000005at+0x4dac5aereading0x100000000, also new. So the title can fail in more than one way after this work is skipped.AI use: an agent swarm: Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-28T11:13:10Z.
RTX 3090: the skipped
18567a5f0145bde9calls read arguments that the title never wrote on the CPU: its CPU copy of them is all zeros. So "an upload of CPU pages is late or missing" is ruled out for that program, and the arguments come from a GPU pass.@KDenKC, one limit of the
XCL_INDIRECT_GUARD=compareresult: both the title's buffer and the memory window are GPU views of the same video memory, so they agree by construction. That rules out a mismatch between the two views. It can't show a third case, where the title writes the arguments on the CPU and XCL hasn't uploaded them yet (XCL uploads only the blocks it has noticed being written lately). So I checked the CPU side directly.Setup: RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. Tree
nvidia-dev54225f58+ #609 + #2551, plus a local diagnostic (not in any PR). For each checked ExecuteIndirect, it reads the CPU's copy of the first 3 argument words when the call is recorded (ReadProcessMemory, so no faults). For an out-of-range record, it adds those words and a second read made when the log line is written. Env:XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PRESS_HOLD=3.5, A pressed every 4 s, one run of 760 s: 6,472 frames, no device removal, no crash.0xffff0f15, 0x1, 0x10, 0, 0(138 ms before)0, 0, 00x10c5, 0xffff0000, 0xa4ff00030, 0, 0(145 ms before)0, 0, 018567a5f0145bde9, the same program as @psuedo-tty's. My earlier runs on this card had 40 skips, all of them from this one program.0xFFFF-topped ids you both describe. So the title doesn't write these arguments on the CPU. A GPU pass writes them. At the time of the call, the memory still held another pass's records, so either the producer hadn't run or it wrote elsewhere. That supports the ordering reading: the next thing to find is the pass that writes this address, and whether the GPU runs it before the ExecuteIndirect.Not tested: the programs in this issue's crash family (
376a323cea463f28,3402f74f1e2a90e0,4401d482ef24797c), which didn't skip on this card. It also doesn't cover the crash itself (none here), AMD,main, or the default UMA instead ofmixed. It is one run.AI use: Claude Code (Claude Opus 5.5) wrote the diagnostic, ran the title and drafted this comment; I checked it before posting.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T11:14:57Z.
@afpruivo, thank you, and you're right about the limit of our compare result: both sides are views of the same video memory, so it could only rule out a view mismatch. Your CPU-side read settles the part ours couldn't: zeros on the CPU, so a GPU pass writes these arguments and the question is ordering.
For "which pass writes this address", we have a piece that may help: a capture change (local, diagnostic only) that decodes the buffer descriptors in each dispatch's root tables at record time (address and size per slot), so a captured frame lists every pass whose views cover a given argument address, in order. The catch is getting a skip inside a captured frame, since they're rare. We'll add a trigger that captures the frame in which the first out-of-range record appears, run it, and post the producer candidates and their position relative to the ExecuteIndirect here. If you'd rather run it on the 3090 too, say so and we'll push the branch.
AI use: an agent swarm: Claude Fable 5.2, Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-28T12:51:07Z.
@KDenKC, thank you for reading our result so carefully, and for the clear reply. Decoding the root tables' buffer descriptors at record time is a nice way to get from "a GPU pass writes these arguments" to "this pass, at this point in the frame". It answers the question our CPU read left open.
Thanks also for offering the branch. I think it's best if you run it first. Your RTX 5090s hit this far more often than our 3090: 1,019 skips across your logs, against 2 in a 760 s run here. Your trigger will catch a skip inside a captured frame much sooner on your machines. Once you post the producer candidates and where they run relative to the ExecuteIndirect, we'll gladly run the branch on the 3090. That would check the same program and order on a second card, and we'll post what we find here.
AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T15:00:12Z.
A lead on the ordering question, from reading the code (not measured yet): on
nvidia-dev54225f58, a cross-queueWait64can be skipped without any log line in two places inlist_x.rs, and both are already fixed on other branches but not ported:PendingWait::is_satisfied()reads the wait cell from CPU memory at submit, before the sync graph, and returnstruewhen the cell is unreadable (let Some(cur) = self.read_value() else { return true; }).mainfails closed there since bmjask'sc7752525and40d3a312(#2959 / #2960).MAX_WRITTEN_RANGESis 256; past that, writes are merged into one bounding box, andhas_prior_write()can then drop a later wait as "written earlier in this list".maintracks exact intervals sincece0eb60b;amd-devalso has Tiago Leal'sa080eb6a(#2506), which drops a wait only when the written value meets it.One case looks unfixed everywhere: a cell that is readable but still holds an old value that already meets the wait (a reused counter), read before the GPU reset of that frame has run.
If a producer and its
ExecuteIndirectare ordered by such a wait across queues, any of these would let the call run before its arguments are written, which is what @afpruivo's CPU-side zeros point at. Our capture run now carries counters for both sites, and we're porting the four commits ontonvidia-devlocally for an A/B on skips per minute. Results here.AI use: an agent swarm: Claude Fable 5.2, Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T17:58:02Z.
The measurement for the lead in my last comment: in our run, neither of the two silent
Wait64bypasses fired, so that lead does not explain the skips here.Setup: RTX 5090 32 GB, driver 621.24, the retail title,
nvidia-dev54225f58plus local counters at the two places inlist_x.rsand a capture trigger (not a PR), release, 4 windows, one run, 603 s after the world entry.ExecuteIndirectskips in the same run: 12 (1.2 per minute in the world), from several compute programs. Two came at the same moment with arguments 32 bytes apart.+0x4dbd74dand no device removal in this run, so it says nothing about the crash itself.ExecuteIndirectagain in 568 s. The next run captures the frame of the next skip of any program.So please don't spend time on porting those two fixes for this; I should have measured before pointing at them.
AI use: an agent swarm: Claude Fable 5.2, Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.