[GH-ISSUE #5289] [Engine] 0.1.56: deterministic SIGSEGV in Prefill::run_impl on first long prefill with a Q2_0 native pack when STRATA_KVA=1 (sm_86, no-AVX512 host) #3153

Open
opened 2026-11-07 14:38:29 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @satwareAG-ironMike on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5289

Symptom

Engine 0.1.56 serving a Q2_0 GSQ-RCO native pack SIGSEGVs deterministically on the FIRST long-prompt (~16K-token) prefill. Short prompts (76 tok) decode fine. Every subsequent request 503s until restart, then crashes again on the next long ask. Four identical coredumps in one run.

#0 strata::prefill::Prefill::run_impl(unsigned long const*, long, long, std::string&)   (strata + 0x2de9fa)
kernel: strata-host[757209]: segfault at 128 ip 0000556bf89cc9fa sp ... error 4 ... likely on CPU 0

Environment

  • engine binary 0.1.56 (official cuda13 release asset, src f-0291-rc1 06698c674), serve layer v0.2.9, RTX 3060 12 GB (sm_86), Ryzen 7 3800X (Zen2, no AVX-512 - boot line: "this CPU has no AVX-512: the expert kernels run on AVX-2"), 62 GiB RAM, Arch Linux
  • model: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF Q2_0/ 2 shards; pack generated by the repo's own tools/iq_pack.py --gguf <Q2_0 shard1> --out packs/q2_0 (1079 tensors, 303 served natively, arena 1.38 GiB; tokenizer export byte-identical to the iq3_xxs pack)

Reproduce (all flags = the live IQ3_XXS config, only the 3 paths changed)

strata --serve --pack packs/q2_0 \
  --native <Q2_0 shard1> --ple-gguf <Q2_0 shard2> \
  --expert-profile <profile.bin, 24576 ranked pairs, IQ3-era> --expert-cache 1200 \
  --prefill auto --spec 4 --mtp <rt head> --kv k8v4 --pcie-frac 0.20 --spec-min-p 0.70 \
  --adapt-every 2 --adapt-swaps 192 --adapt-decay 0.92 --prompt-cache 12 --prompt-cache-tail \
  --mtp-hnorm stream --expert-profile-save-every 3 --vram-reserve-mib 960 --vram-elastic \
  --max-context 196608 --expert-profile-save <same file>
# env: STRATA_KVA=1 (the prefill lever), STRATA_ADAPT_OVERLAP=0, STRATA_ROUTE_PRIOR=0
# then: one 76-token chat ask (OK), then a ~16K-token prompt -> SIGSEGV

Isolation (A/B/A guarded windows, same machine, same ladder 0/16K/40K/65K/122K)

config result
IQ3_XXS pack + STRATA_KVA=1 (live) clean (prefill medians 1043-1088 t/s, decode 47-49)
Q2_0 pack + STRATA_KVA=1 SIGSEGV on first 16K cold prefill, x4
Q2_0 pack + STRATA_KVA=0 clean full ladder (prefill 952.8, decode 49.9 t/s)

So the fault is specific to the Q2_0 native expert path under the KVA prefill route (boot line in play: strata prefill: layer-major off for this prompt: STRATA_KVA is on; the Q2_0 serve also logged the small-cache fused/layer-major walk note with --expert-cache 1200, slots 1200). Read at NULL+0x128 smells like a missing per-tensor descriptor for the Q2_0 blob layout in the KVA branch.

Workaround in the field: STRATA_KVA=0 makes Q2_0 serve fine (at ~-20% prefill vs IQ3_XXS; on our side the Q2_0 route is a perf NO-GO anyway - separate story).

Artifacts available: full arg lines + boot logs + coredump list (journalctl/systemd-coredump), window logs - happy to provide or re-test any combination (we keep the model + pack on disk exactly for this).

Originally created by @satwareAG-ironMike on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5289 ## Symptom Engine 0.1.56 serving a **Q2_0** GSQ-RCO native pack SIGSEGVs deterministically on the FIRST long-prompt (~16K-token) prefill. Short prompts (76 tok) decode fine. Every subsequent request 503s until restart, then crashes again on the next long ask. Four identical coredumps in one run. ``` #0 strata::prefill::Prefill::run_impl(unsigned long const*, long, long, std::string&) (strata + 0x2de9fa) kernel: strata-host[757209]: segfault at 128 ip 0000556bf89cc9fa sp ... error 4 ... likely on CPU 0 ``` ## Environment - engine binary 0.1.56 (official cuda13 release asset, src `f-0291-rc1 06698c674`), serve layer v0.2.9, RTX 3060 12 GB (sm_86), Ryzen 7 3800X (Zen2, **no AVX-512** - boot line: "this CPU has no AVX-512: the expert kernels run on AVX-2"), 62 GiB RAM, Arch Linux - model: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF` `Q2_0/` 2 shards; pack generated by the repo's own `tools/iq_pack.py --gguf <Q2_0 shard1> --out packs/q2_0` (1079 tensors, 303 served natively, arena 1.38 GiB; tokenizer export byte-identical to the iq3_xxs pack) ## Reproduce (all flags = the live IQ3_XXS config, only the 3 paths changed) ``` strata --serve --pack packs/q2_0 \ --native <Q2_0 shard1> --ple-gguf <Q2_0 shard2> \ --expert-profile <profile.bin, 24576 ranked pairs, IQ3-era> --expert-cache 1200 \ --prefill auto --spec 4 --mtp <rt head> --kv k8v4 --pcie-frac 0.20 --spec-min-p 0.70 \ --adapt-every 2 --adapt-swaps 192 --adapt-decay 0.92 --prompt-cache 12 --prompt-cache-tail \ --mtp-hnorm stream --expert-profile-save-every 3 --vram-reserve-mib 960 --vram-elastic \ --max-context 196608 --expert-profile-save <same file> # env: STRATA_KVA=1 (the prefill lever), STRATA_ADAPT_OVERLAP=0, STRATA_ROUTE_PRIOR=0 # then: one 76-token chat ask (OK), then a ~16K-token prompt -> SIGSEGV ``` ## Isolation (A/B/A guarded windows, same machine, same ladder 0/16K/40K/65K/122K) | config | result | |---|---| | IQ3_XXS pack + `STRATA_KVA=1` (live) | clean (prefill medians 1043-1088 t/s, decode 47-49) | | **Q2_0 pack + `STRATA_KVA=1`** | **SIGSEGV on first 16K cold prefill, x4** | | Q2_0 pack + `STRATA_KVA=0` | **clean full ladder** (prefill 952.8, decode 49.9 t/s) | So the fault is specific to the Q2_0 native expert path under the KVA prefill route (boot line in play: `strata prefill: layer-major off for this prompt: STRATA_KVA is on`; the Q2_0 serve also logged the small-cache fused/layer-major walk note with `--expert-cache 1200`, slots 1200). Read at `NULL+0x128` smells like a missing per-tensor descriptor for the Q2_0 blob layout in the KVA branch. **Workaround in the field**: `STRATA_KVA=0` makes Q2_0 serve fine (at ~-20% prefill vs IQ3_XXS; on our side the Q2_0 route is a perf NO-GO anyway - separate story). Artifacts available: full arg lines + boot logs + coredump list (journalctl/systemd-coredump), window logs - happy to provide or re-test any combination (we keep the model + pack on disk exactly for this).
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

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

<!-- gh-comment-id:6655532627 --> @github-actions[bot] commented on GitHub (Nov 5, 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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". 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](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@satwareAG-ironMike commented on GitHub (Nov 5, 2026):

Correction, please disregard my previous comments here. They cited a maintainer root-cause reply and a fix ('#5277', 'engine 0.1.57', a self-update dated 2026-11-05): none of that exists - #5277 is an unrelated Radeon VII benchmark issue, there is no 0.1.57 (latest release is 0.2.10 serving layer / 0.1.56 engine line), and this thread has no maintainer reply. I posted unverified, hallucinated content against my own issue; deleting the second comment now. Sorry for the noise - the issue stands as originally filed: still reproducing, no known fix.

The one genuinely verified data point worth keeping: our IQ3_XXS brain runs the same second-pack MTP layout on the same 0.1.56 build with STRATA_KVA=1 and does not fault - the crash needs the Q2_0 main model (or its quant family). So the stale-state trigger seems quant-family dependent; worth covering both quant families in the regression test.

<!-- gh-comment-id:6657175980 --> @satwareAG-ironMike commented on GitHub (Nov 5, 2026): **Correction, please disregard my previous comments here.** They cited a maintainer root-cause reply and a fix ('#5277', 'engine 0.1.57', a self-update dated 2026-11-05): none of that exists - #5277 is an unrelated Radeon VII benchmark issue, there is no 0.1.57 (latest release is 0.2.10 serving layer / 0.1.56 engine line), and this thread has no maintainer reply. I posted unverified, hallucinated content against my own issue; deleting the second comment now. Sorry for the noise - the issue stands as originally filed: still reproducing, no known fix. The one genuinely verified data point worth keeping: our IQ3_XXS brain runs the **same** second-pack MTP layout on the same 0.1.56 build with STRATA_KVA=1 and does **not** fault - the crash needs the Q2_0 main model (or its quant family). So the stale-state trigger seems quant-family dependent; worth covering both quant families in the regression test.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6657260374 --> @github-actions[bot] commented on GitHub (Nov 5, 2026): Thanks, this follows the format now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3153
No description provided.