[GH-ISSUE #5539] [Engine] STRATA_KVA=1: device memory access fault (SIGABRT) on chunked deep prefill (93,821 tokens, 3x32K chunks) #5510

Open
opened 2026-11-08 07:03:10 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @xyzzing on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5539

Title: [Engine] STRATA_KVA=1: device memory access fault (SIGABRT) on chunked deep prefill (93,821 tokens, 3x32K chunks)

Desktop app, Terminal or source?

Terminal (source build on Fedora; the HIP engine served via the OpenAI-compatible server).

What happened

With STRATA_KVA=1, a 93,821-token request under --prefill auto (three ~32K chunks) aborts the
engine ~90 s into the prompt read: the ROCm runtime raises a device memory access fault and the
engine exits with signal 6 (the engine stopped unexpectedly (exit code -6)), 0 tokens out,
finish_reason never set. Deterministic: 3/3 occurrences across two sessions on the same build
and workload. The captured fault line (from the engine's log, stderr unbuffered):

Memory access fault by GPU node-1 (Agent handle: 0x56504e56b070) on address 0x177000. Reason: Page not present or supervisor privilege.

The address is small and offset-like (~1.5 MB). At the fault the prompt path had borrowed 6,931
KV cache slots (13.11 GiB) for the chunk ladder. Single-chunk prompts do NOT reproduce: a
4,700-token request engages KVA (split 36, suffix 2048) and completes normally — and measured 45%
faster prefill than the baseline with probe quality identical to baseline (5-fact retrieval
probe), so the mechanism is attractive and this bug is the only blocker at depth.

Smallest steps or command that reproduce it

  1. Serve with STRATA_KVA=1 (split 36, suffix 2048 defaults) on --prefill auto (chunk 32768).
  2. POST a ~93,821-token chat request (one document, temperature 0).
  3. ~90 s into the prompt read the engine aborts (exit -6); the server reports the error response.

Reproduction status

Reproduced locally on the reported hardware, 3/3.

Strata version

engine 0.1.55 = upstream v0.2.9 + 10 locally replayed fork commits (attention/prefill-path
commits; the KVA sources are not in the replay set); also observed on the 2026-11-07 build of the
same line. Happy to re-run on a clean upstream build if that would help triage.

Graphics card, memory and system

RX 7900 XTX 24 GB · Ryzen 9 7900X · 96 GB RAM · Fedora (Linux), HIP SDK 7.17.26392

Model, size and settings

Qwen3.8-Flash-Next GSQ/RCO IQ3_S, --kv int8, --max-context 131072, --kv-resident 49152,
--prefill auto (chunk 32768), expert cache auto/PROFILE.

Logs

Captured engine log with the fault line available on request (or attached on filing); the run
also left a full server log. Not OOM (96 GB RAM, 64+ GB free at the fault; the fault line is the
runtime's, not the kernel OOM killer's), and not the copy_blobs path.

Area

[Engine] (speed, kernels, models, the server and API)

Originally created by @xyzzing on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5539 Title: [Engine] STRATA_KVA=1: device memory access fault (SIGABRT) on chunked deep prefill (93,821 tokens, 3x32K chunks) ### Desktop app, Terminal or source? Terminal (source build on Fedora; the HIP engine served via the OpenAI-compatible server). ### What happened With `STRATA_KVA=1`, a 93,821-token request under `--prefill auto` (three ~32K chunks) aborts the engine ~90 s into the prompt read: the ROCm runtime raises a device memory access fault and the engine exits with signal 6 (`the engine stopped unexpectedly (exit code -6)`), 0 tokens out, `finish_reason` never set. Deterministic: 3/3 occurrences across two sessions on the same build and workload. The captured fault line (from the engine's log, stderr unbuffered): Memory access fault by GPU node-1 (Agent handle: 0x56504e56b070) on address 0x177000. Reason: Page not present or supervisor privilege. The address is small and offset-like (~1.5 MB). At the fault the prompt path had borrowed 6,931 KV cache slots (13.11 GiB) for the chunk ladder. Single-chunk prompts do NOT reproduce: a 4,700-token request engages KVA (split 36, suffix 2048) and completes normally — and measured 45% faster prefill than the baseline with probe quality identical to baseline (5-fact retrieval probe), so the mechanism is attractive and this bug is the only blocker at depth. ### Smallest steps or command that reproduce it 1. Serve with `STRATA_KVA=1` (split 36, suffix 2048 defaults) on `--prefill auto` (chunk 32768). 2. POST a ~93,821-token chat request (one document, temperature 0). 3. ~90 s into the prompt read the engine aborts (exit -6); the server reports the error response. ### Reproduction status Reproduced locally on the reported hardware, 3/3. ### Strata version engine 0.1.55 = upstream v0.2.9 + 10 locally replayed fork commits (attention/prefill-path commits; the KVA sources are not in the replay set); also observed on the 2026-11-07 build of the same line. Happy to re-run on a clean upstream build if that would help triage. ### Graphics card, memory and system RX 7900 XTX 24 GB · Ryzen 9 7900X · 96 GB RAM · Fedora (Linux), HIP SDK 7.17.26392 ### Model, size and settings Qwen3.8-Flash-Next GSQ/RCO IQ3_S, `--kv int8`, `--max-context 131072`, `--kv-resident 49152`, `--prefill auto` (chunk 32768), expert cache auto/PROFILE. ### Logs Captured engine log with the fault line available on request (or attached on filing); the run also left a full server log. Not OOM (96 GB RAM, 64+ GB free at the fault; the fault line is the runtime's, not the kernel OOM killer's), and not the copy_blobs path. ### Area [Engine] (speed, kernels, models, the server and API)
Author
Owner

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

  • Fill in "Area".

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:6714429175 --> @github-actions[bot] commented on GitHub (Nov 7, 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: - [ ] Fill in "Area". 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

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

Thanks, this follows the format now.

<!-- gh-comment-id:6714438993 --> @github-actions[bot] commented on GitHub (Nov 7, 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#5510
No description provided.