mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3071] [Windows/NVIDIA 0.1.45] engine 0xC0000005 at strata.exe+0x535c60 (Q4_K CPU dot product reads past a weight buffer), UD-Q4_K_XL with --batch-mtp on a RAM budget #1231
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#1231
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 @dnnspaul on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3071
Summary
strata.exe0.1.45 (ready-made Windows release, CUDA 13.0) crashed twice within three minutes with anaccess violation (
0xC0000005, server: "the engine stopped unexpectedly (exit code 3221225477)"). Thefaulting offset was the same both times. The fault is a read past the end of an expert weight buffer
inside the CPU Q4_K x Q8_K dot product, while serving Unsloth
UD-Q4_K_XLwith--batch-mtpon a RAM budget.
Setup
BUILD.json: cuda 13.0, archs 75/86/89/120, vision gpu), repo at tagv0.1.45(477ac13)UD-Q4_K_XL(rev 38bb39e),--compat-bf16pack, MTP draft layer, vision on--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp ... --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 1212 --resident-budget-gib 57 --batch-mtp --batch 3(
"parallel": 3), envSTRATA_HC_Q8=1 STRATA_ROUTE_TAIL_SKIP=0(written by setup)What happened
--batch-mtp:strata verify: window up to 8 tokens(6 without it), andFileExpertSource: WARNING: 91 of 1276 lendable slots (7%) will read their experts from the pack during a long prompt(39 of 1276 without it),
the mapped view of the experts is closed (3 GGUF shards unmapped; every expert outside RAM and VRAM is read unbuffered),only 673 MiB of VRAM free at the start of this request (below 1024 MiB).strata batchlines at all): sessions of~110-127k tokens with cached follow-ups and resumed prompts of ~50k new tokens.
prompt 121481 tokens = 121386 reused + 95 read ... 4125 generated)with no error line; the server restarted the engine on the next request.
Application Error1000, faulting modulestrata.exe(timestamp
0x6ad2b51e), exception0xc0000005, offset0x0000000000535c60.Dump analysis (two WER minidumps, available on request)
ExceptionInformation[0] = 0) at0xe308e0000(crash 1) and0xca7168000(crash 2), both page-aligned, i.e. the read ran from a valid page into an unmapped one.0x535c60is the Q4_K x Q8_K dot product (ggml-cpu style:and 0x3f3f3f3f,0x0f0f0f0f,0x30303030scale unpacking). The faulting load isvmovdqu ymm5, [rbx+0x20], whererbxwalksthe weight block (
d/dmin/scalesatrbx-0x4e..-0x44). So a CPU expert kernel read a Q4_K expertthrough a buffer that ends early, or through a stale pointer.
What did not reproduce it
--batch-mtpconfig: 10 rounds and 49 requests (cold 105-118kprefills, cached follow-ups, +50-85k resumed prefills up to 246k). No crash.
--batch-mtpthat morning (257k cold prefills, 3-4 concurrent ~240ksessions) also had no crash.
Memory situation at the time (may matter)
The Windows commit limit was 125.6 GiB: 94 GiB RAM plus a 33 GB system-managed page file that never grew.
strata.exeheld about 106 GiB of private bytes. The engine loggedWindows commit: 4.3 GiB leftat start, andduring our repro requests commit free was only 0.3-0.8 GiB. We cannot tell from the dumps whether the faulting
page was part of a mapping, because the WER minidumps have no MemoryInfoList. So a failed allocation or file-view
map whose NULL/short result is not checked is also possible, as distinct from the
0xC0000409commit-limit exit (#1607).We have since set a fixed 64-96 GB page file (commit free now ~34 GiB while serving).
Guess
Something on the solo path that
--batch-mtpchanges, either the 8-token verify window or the largeruncovered lend region (91 instead of 39 slots read from the file), leaves a CPU expert pointer or length that
does not match the blob actually staged. We have reverted
--batch-mtpfor now (10 rounds of the repro pattern on the reverted config: no crash).A short
--batch-mtpre-check with the larger page file (1-4 x 2k, 2-3 x 32k) also ran clean. If more logging would help(
STRATA_TRACE,--stats), tell us which switches to run with.@dnnspaul commented on GitHub (Oct 18, 2026):
Update from the reporter, same machine and setup (Windows 11, RTX 5090, 96 GB DDR5-6000 with EXPO, Strata 0.1.45, UD-Q4_K_XL,
--resident-budget-gib 57, parallel 3).A third crash happened at 19:37 local time, and this one was not in Strata.
--batch-mtp, and the fixed 64-96 GB page file was in place.(0x2, 0xc24fe0, 0x17dde7f, 0x2). Kernel-Power 41 followed, and a full kernel dump was written.139869 tokens = 139050 reused + 819 read), then a long decode (3326 generated, MTP drafts on). The next request at that size took the machine down.A user-mode bug cannot corrupt the kernel's page-frame lists. So I now think the 0xC0000005 reads at
strata.exe+0x535c60are most likely a symptom of unstable memory on this box: the RAM (EXPO), or something in the page-locked/CUDA memory path under ~57 GiB of locked experts plus KV streamed from pinned RAM. A bug in--batch-mtpor the Q4_K kernel now looks less likely.--batch-mtpis off and stays off here, and the box runs under a crash watch while we narrow it down (RAM test, and an analysis of the kernel dump for the faulting driver). I'll report back if the dump or the RAM test points at Strata after all. Until then, please treat this as probably not a Strata bug.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.