mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4190] [Engine] Random Xid 13 "illegal instruction" crashes on RTX 2080 Ti (sm_75) under sustained long-context inference — constant ESR 0x4c1eb72 #1840
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1840
Loading…
Add table
Add a link
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?
Originally created by @cyril-wx on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4190
Desktop app, Terminal or source?
Source (built for sm_75:
-DCMAKE_CUDA_ARCHITECTURES=75, CUDA 13.2, gcc 12, Ninja)What happened
Under sustained long-context serving (~47k-token prompts via the OpenAI-compatible API) the engine dies at random points — 10–25% of requests, no config eliminates it. Every crash is identical on the kernel side but the engine's last log line drifts each time:
Landing sites seen (rotating):
prefill copy_i32: an illegal instruction,dequant launch,K/V grown to 49152 cells,suffix drafts,conversation cache: parked 47186 tokens, non-finite logits. After Xid 13 the GPU wedges and the engine's own progress watchdog exits it (clients get HTTP 503; the wrapper restarts in ~2 min).The key invariant: ESR
0x4c1eb72(0x524f28 = 0x525728 = 0x5257a8 = 0x4c1eb72) is identical across 165+ Xid 13 events, two driver versions (595.58.03 / 580.178.04), two engine builds (0.1.44.1 and 0.1.51) and every config combination.cuobjdump -sassfull-text andnvdisasm -hexraw-encoding searches over all 66 sm_75 cubins: 0 matches — so it is not an immediate/instruction word from Strata binaries; it looks like a hardware-side status/address field, consistent with instruction-fetch corruption at the moment of failure.Ruled out with experiments (each one measured, not guessed):
--vram-reserve-mib 640(414 MiB free) vs 1792 (1568 MiB free): both crash;--expert-cache 4000(4882 MiB free) crashed morenvidia-smi -pl 200(257→200 W): 1/10 crash, no change--kv-grow/ conversation-cache parking / MTP /--pcie-frac 0.0·auto·1.0strata_like.cu, 5 profiles incl. 419 MiB free (same as production) and 1.9M H2D uploads → all 0 errorsStrata-specific factors the synthetic controls do not cover (candidates for an OOB write into the module code region — which would explain "all SMs fail fetch at once" + random landing site): expert cache on VMM (
cuMemCreate/cuMemMap) instead ofcudaMalloc; 67 MB / 264 cubins EAGER-loaded; 55 GB mmap'ed GGUF with direct I/O concurrent with GPU compute; 20 CPU pool workers on AVX2 simultaneously.Why compute-sanitizer can't close the loop:
--tool memcheckfails under cuBLAS 13 at startup ($__internal_11_$__cuda_sm70_votesync_ballotnot found, 6775 API errors); withCUDA_MODULE_LOADING=LAZYit starts, but at production footprint the shadow memory doesn't fit, and at reduced footprint the engine's own 5 s GPU watchdog kills it (memcheck slows the GPU ~700×; 256 tokens > 892 s). Memcheck reported 0 memory errors on the shortened path that did run. Question: is there a supported way to disable/raise the progress watchdog so sanitizer runs can reach production-ish configs on sm_75?Asks: (1) Is sm_75/Turing still exercised in CI (default arch moved to 120; we needed an explicit
-DCMAKE_CUDA_ARCHITECTURES=75build)? (2) Any known interaction between the VMM expert cache and CUDA Graph replay on Turing? (3) Honest caveat: this is a hardware-modded 22 GB 2080 Ti (11× 2 GB GDDR6 + strap mod) so a board-level marginal defect cannot be fully excluded — but burn-in, 5 stress profiles, driver A/B and the config matrix are all clean, and the single unchanging artifact is the ESR value.Smallest steps or command that reproduce it
Reproduction status
Reproduced locally (165+ independent events over several days)
Strata version
Strata 0.2.6 · engine 0.1.51 (also reproduced on Strata 0.1.44.1 · engine 0.1.44.1)
Graphics card, memory and system
RTX 2080 Ti 22 GB (hardware-modded: 11× 2 GB GDDR6 + strap resistor mod) · 125 GB RAM · Ubuntu 24.04, kernel 6.17.0-35, driver 580.178.04 (also on 595.58.03)
Model, size and settings
Qwen3.8-Flash-Next IQ3_S (chunked GGUF, mmap) · 65536 context (32768/100000 also crash) · KV int8 · MTP on · pictures on (vision on CPU)
Logs
Full logs are posted complete in comments below (this host's API can't reach the attachment upload endpoint): kernel-side
crash-1017-xid.log(165× Xid 13 with full ESR dumps) and engine-sidecrash-1017-engine.log, plus the repro config excerpt.Extras checked: troubleshooting page — nothing matching Xid 13 / ESR on Turing. Also checked: the Strata-2080Ti community fork (315 commits behind, 17 patches, 7 clean — none touch the crash paths; not applicable).
@github-actions[bot] commented on GitHub (Oct 26, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@cyril-wx commented on GitHub (Oct 26, 2026):
Full kernel-side evidence (
crash-1017-xid.log, 26395 chars, complete — 166 Xid lines):Note: on every event
0x524f28 = 0x525728 = 0x5257a8 = 0x4c1eb72.@cyril-wx commented on GitHub (Oct 26, 2026):
Engine-side log for the same crash window (
crash-1017-engine.log, complete):@cyril-wx commented on GitHub (Oct 26, 2026):
Repro config excerpt (from
strata-iq3_s.json):Stress reproducers (
bench_long.pydrives ~47k-token prompts;strata_like.cu/vram_burn.cuare the clean synthetic controls) available on request — the upload API for attachments is not reachable from our headless host, so logs are pasted inline above (full-text searchable).@github-actions[bot] commented on GitHub (Oct 26, 2026):
Thanks, this follows the format now.
@dandandelion commented on GitHub (Oct 26, 2026):
Also you can include RAM in this behavior as bad RAM cells can pollute an instruction going from RAM to VRAM. A 4-pass memtest86+ can eliminate this tho.
@PiccataPro commented on GitHub (Oct 26, 2026):
Additional data point: sm_86 (dual RTX 3080 20G), driver 610.88, engine 0.1.50 — plus an A/B that isolates which path turns Xid 153/14 into Xid 13
Not a duplicate report — same failure family as #4190, but on a different architecture, a third driver branch, and with one variable this issue has not isolated yet.
Environment
DEV_2206), both PCIe Gen4 x8--max-context 262144,--kv int8,--prefill auto:16384,--layer-split 23,--pcie-frac 0.5,--pipeline-windows 2Symptom match
Same landing sites, verbatim:
Windows records the same kernel events (Event ID 13/14/153, provider
nvlddmkm). One 5-minute run produced 189 Event-13 entries plus Event-14 and Event-153.Our ESR block differs from the reported constant:
vs
ESR 0x504728=0x4c1eb72in this issue. Same four-field layout, different payload — possibly worth comparing if the value is architecture-dependent.The A/B this issue does not have:
STRATA_HC_SPLITSTRATA_HC_SPLITselects the hyper-connection read strategy, and the engine logs which one it picked at startup:0runs as the plain one1runs as splitruns as staged ... staged ahead by cp.asyncAll three rows used the same load: 15 rounds of
16019 prompt + 1500 generate, 5 minutes each, dual-GPU layer split, 262144 context. Only the default (fully staged cp.async) reaches Xid 13;plainandsplitcap out at Xid 153/14 and the engine survives (though it later wedges, see below).This suggests the failure is amplified by the staged prefetch path, not caused solely by long context. If that holds on sm_75 too,
STRATA_HC_SPLIT=1may be a usable mitigation while the root cause is tracked — worth one run on the 2080 Ti.Additional failure mode: engine wedges without exiting
After Xid 153/14, the engine can enter a state where:
strata.exeis alive,/healthreturns 200 withloaded: truemtp chain: unknown errorfollowed by fourreleased the verify window's GPU waits (#267): the GPU finished in 0 msGPU finished in 0 mslooks like the CUDA context silently lost the work. Because/healthstill answers, the wrapper never restarts it — this is a silent outage, not a crash. A real inference probe (1-token request with a short timeout) would catch it.Trigger condition appears to be concurrent sessions
Single-lane load (16K prompt, sequential) does not reproduce on any of the three
HC_SPLITvalues. Concurrency does:conversation-cache-slots 5Under that load the conversation cache parks/restores 1.2–1.5 GB snapshots repeatedly (
parked … tokenslines interleaved withrestored … tokens), decode throughput collapses (44.9 → 15.5 tok/s), and then Xid fires. Single-lane runs show none of this churn and stay at 43–88 tok/s.So our current working hypothesis is: repeated park/restore of large snapshots while other work is in flight is the race, with cp.async staged prefetch making the window wider.
Repro assets
If useful I can attach: the three stress logs (plain/split/staged), the Windows event export, and a 21 GB full-memory dump of a wedged process. Not uploading those unprompted since the dump contains process memory.
@Adamyno commented on GitHub (Oct 27, 2026):
Counter-datapoint: three modded 22 GB 2080 Ti, ~2 weeks of long-context serving, zero Xid
Not a reproduction attempt — the opposite result on a comparable rig, in case it helps separate a Strata path from a board-level issue.
Hardware: 3× RTX 2080 Ti 22 GB (modded boards, 22,528 MiB reported), i9-7980XE (18c/36t), 125.5 GiB DDR4-3600, Ubuntu (kernel 7.0.0-38), driver 580.178.04, CUDA 13.0.
What has run on it:
-DCMAKE_CUDA_ARCHITECTURES=75, 3-card layer split (15, and16,32), 262,144 and 524,288 context, Q4_K_XL and IQ3_S packs, fresh prompts up to 83k tokens--batch 2)--expert-cache auto --prefill auto --kv int8 --spec 3 --mtpKernel log: zero NVRM/Xid lines of any kind since 2026-10-15 (three boots; the current one is 5 d 17 h old). The only NVRM line in the journal is the module load at boot. No Xid 13, 31 or 43, and no engine-side 503s.
Where my config differs from the repro: no
STRATA_ARENA_PIN_GIB, default--ple-io(notdirect),--prefill auto,--expert-cache auto,--kv int8,--spec 3 --spec-min-p 0.54 --mtp,--batch 2.Caveats: my cards are modded 22 GB boards as well, so this does not rule out a board-level marginality on your side, and I have not run your exact loop. If it is useful I can run your repro as-is on this rig — 10 × ~47k-token prompts at 65k context with your flags — to give you a second sample. Say the word.
@Adamyno commented on GitHub (Oct 27, 2026):
Same flags on 0.2.6, one modded 22 GB 2080 Ti, 15 long-context requests: 0 failures, 0 Xid
I ran your reproduction as closely as my rig allows, on the engine version in your report. Result: clean, so the counter-example now covers the same flags as well as the same card class.
Setup: 0.2.6 (
4b9e05a2, engine 0.1.51), source build-DCMAKE_CUDA_ARCHITECTURES=75; one RTX 2080 Ti 22 GB (modded, 22,528 MiB), i9-7980XE, 125.5 GiB DDR4-3600, kernel 7.0.0-38, driver 580.178.04, CUDA 13.0. GPU 2 only, the other two cards idle.Flags, copied from your excerpt:
--expert-cache auto --prefill auto:16384 --max-context 65536 --kv int8 --spec 4 --spec-min-p 0.5 --mtp mtp/rt --ple-io direct --vram-reserve-mib 640 --pool-workers 20 --mmap-experts, envSTRATA_SM75_PERF=1 STRATA_PREFILL_CPU_SHARE=0(plusSTRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1, which is my standard pair).Method: 15 sequential requests, greedy, each with a fresh ~143k-character prompt (unique tag, so nothing is reused). A
journalctl -k -fwatcher ran for the whole session.journalctlheader)The honest caveat: my prompts were 26.5k tokens, not your 47k. 143k characters tokenized to 26.5k with this pack, so this is the same serving shape but at ~56% of your prompt length. At your 10–25% per-request failure rate, 15 clean requests would happen ~21% of the time at 10% and ~1.3% at 25% — so this is evidence against "every board does it", not proof that your board is fine.
If you want, I can rerun with ~250k characters to hit your 47k tokens (about 7 minutes per request at this single-card mmap speed, so ~8 requests in an hour) and post that as a follow-up. The one thing I still cannot reproduce is your exact hardware history — mine is a modded board too, so "two modded boards, one crashes" remains a legitimate reading of the evidence.
@Adamyno commented on GitHub (Oct 27, 2026):
Follow-up: the 47k-token variant also ran clean — 23 long-context requests across both runs, 0 non-200, 0 Xid
Reran with prompts at your size. Still clean, so the counter-example now covers both the flags and the prompt length.
Second run: 8 sequential requests, 47,027–47,212 prompt tokens each (fresh unique text per request, greedy, 8 new tokens), 65,536-token context, the same single modded 22 GB 2080 Ti on 0.2.6 / engine 0.1.51 with your exact flags.
Engine side: no errors, no
503, expert cache reached 98–100% hit by the end of each run. Prefill climbed 175 → 329 tok/s as the page cache warmed, decode 0.7 → 9.4 tok/s across the run (single card, mmap experts — this regime is slow by design).What this does and does not say. If your failure rate were 10% per request, 23 clean requests would happen ~9% of the time; at 25%, ~0.1%. So "a modded 22 GB 2080 Ti running this config will hit Xid 13" does not hold on this board — which leaves your specific board (or something in your kernel/driver combination: you are on 6.17, I am on 7.0.0-38) as the more likely variable. It does not clear your board, and it does not reproduce your 165+ events.
If it helps, I can run a longer soak on request (say 50 requests at 47k, ~2 hours) or use your
bench_long.pyverbatim if it is in the issue — either would tell us whether the difference is rate-dependent or board-dependent.@Adamyno commented on GitHub (Oct 27, 2026):
40-request soak on 0.2.7 (engine 0.1.52): still 0 non-200 and 0 Xid — 74 long-context requests in total now
Third and longest run, on the engine that shipped today, so the counter-example is not tied to one engine build.
Setup: 0.2.7 (
5e8a4cca, engine 0.1.52), source build-DCMAKE_CUDA_ARCHITECTURES=75; one modded 22 GB 2080 Ti (GPU 2 only), driver 580.178.04, CUDA 13.0, kernel 7.0.0-38. Same flags as your repro:--expert-cache auto --prefill auto:16384 --max-context 65536 --kv int8 --spec 4 --spec-min-p 0.5 --mtp mtp/rt --ple-io direct --vram-reserve-mib 640 --pool-workers 20 --mmap-experts, envSTRATA_SM75_PERF=1 STRATA_PREFILL_CPU_SHARE=0.Method: 40 sequential requests, each a fresh ~255k-character prompt (47,025–47,212 prompt tokens), greedy, 8 new tokens.
journalctl -k -fwatched for the entire run.Running total on this rig
At your 10% per-request rate, 74 clean requests would happen ~0.04% of the time; at 25%, essentially never. So on this board the failure is not a property of the config, the flags or either engine build — which leaves your specific card (or its power/PCIe/thermal situation, or the exact kernel/driver combination: you are on 6.17, I am on 7.0.0-38) as the remaining variable.
If it helps, I can run your
bench_long.pyverbatim (point me at the file or paste it) so the request shape is identical down to the prompt generator, or repeat this soak at a different power limit / slot to hunt for a marginality.@cyril-wx commented on GitHub (Oct 29, 2026):
Closing: board-level, not engine-level.
Three independent engines now show the same signature on this machine — Strata (this report), ninfer, and a clean upstream llama.cpp build (
-DCMAKE_CUDA_ARCHITECTURES=75, CUDA 13.2). llama.cpp dies with Xid 13 within 1–3 requests (800+ events in 10 min), while the same binary with-dev none(CPU only) is clean, 0 Xid across all runs.Two more results changed my reading of the evidence:
0x4c1eb72is not a fault fingerprint. On this machine the value appears unchanged under four different exception descriptions:Illegal Instruction Encoding,Out Of Range Register,Out Of Range Address, and MMU Fault. It is the fixed Xid-13 report field on sm_75, so "constant ESR across drivers / builds / configs" carries no diagnostic weight — which removes the main argument for a single deterministic software fault.The VRAM data path is clean. 20 GiB allocated, filled with an index hash, fully verified: 0 mismatches; minimal CUDA kernels 200/200 rounds clean. So this is not bulk corruption — it only appears under sustained load.
The decisive one is dose-response to memory clock. Lowering
GPUMemoryTransferRateOffsetAllPerformanceLevelsmoves the failure monotonically:Software defects cannot be tuned away by memory clock.
Conclusion: the GDDR6 timing margin on this hardware-modded (11×2 GB + strap) board has degraded to the edge. Failures are device-level, surfacing as instruction-fetch / address-mapping faults. This matches @Adamyno's 74-request counter-example and @PiccataPro's staged-prefetch A/B (an amplifier, not the cause).
Not a fix, just a workaround:
-1400 MHzmemory offset + fan 100% + 220 W.Thanks @Adamyno and @PiccataPro for the data points. Closing as hardware/environment, not an engine defect.
@dandandelion commented on GitHub (Oct 30, 2026):
Can confirm on my box, reproduced a stable back & forth at
-300mhzmemory clock.