[GH-ISSUE #5152] [Engine] Qwen3.8-Flash-Next: deterministic SIGSEGV (libamdhip64, strata-host, CPU 0) on first chat request with 4x R9700 layer split (engines 0.1.48 and 0.1.56) #3064

Open
opened 2026-11-07 14:37:45 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @matholland618 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5152

Summary

On a 4× AMD AI PRO R9700 (gfx1201) box, any Qwen3.8-Flash-Next model loaded with --layer-split auto across all four cards boots completely — session is up, verify windows captured, /v1/models reports loaded — and then the first /v1/chat/completions request kills the engine with a segfault inside the HIP runtime. The crash is 100% deterministic (8+ reproductions) with an identical fault site every time. The same model, same args, same engine binaries on 2 cards (gpu [0,1]) serve fine (87.5 tok/s decode measured the same day at ~35K-token prompts).

Kernel signature (identical every crash)

strata-host[4116460]: segfault at 18 ip 000074fafa50b131 sp 00007ffff42efea0 error 4 in libamdhip64.so.7[50a131,74fafa173000+3ea000] likely on CPU 0 (core 0, socket 0)

Null-pointer dereference (address 0x18) at the same offset in libamdhip64.so.7 every time, always CPU 0 / socket 0.

What does NOT change the outcome (all crash identically)

Variable Values tested
Quant / pack IQ3_S (GSQ-RCO) and Unsloth UD-Q4_K_XL (4 shards, GGUF-in-place)
Engine 0.1.48 and 0.1.56 (official linux-x86_64-hip-rx9070 packages, sha256-verified)
Drafter MTP (--spec 4 --spec-min-p 0.5) and DFlash2 (--draft dflash2 ... --spec 6 --draft-conf 0.35)
Serving layer Control strata serve and the legacy serve/server.py wrapper
STRATA_HIP_QUEUE_PRIME default and =0
Context 262144 (one 4-card boot also hit verify: timed out at layer 33; its GPU waits were released and the GPU finished (#267) on the same path before crashing the same way)

What DOES work (the boundaries)

  • Same everything on 2 cards (gpu [0,1] + --layer-split auto): serves fine — 87.5 tok/s decode, ~77% draft acceptance, ~2.9–3.5K tok/s prefill.
  • A different model family on the same 4 cards: GLM-5.3 served by Project Maya on this identical rig runs a 4-card split with no issues — hardware, driver, and 4-card splits per se are fine; the fault is specific to the Qwen multi-GPU path.
  • Boot on 4 cards always completes — only the first decode request kills it. One 0.1.48 run even returned a complete chat response for the first request and crashed immediately after, so the crash lands in post-request / next-work handling rather than in generation itself.

Repro (simplest form)

Engine 0.1.56, Qwen3.8-Flash-Next GSQ-RCO IQ3_S:

strata --serve --pack Strata-data/packs/iq3_s \
  --native Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf \
  --expert-profile data/expert-profile.bin --expert-cache auto --prefill auto \
  --spec 4 --spec-min-p 0.5 --mtp Strata-data/mtp/rt \
  --max-context 262144 --kv int8 --kv-resident 32768 \
  --gpu 0 --gpu 1 --gpu 2 --gpu 3 --layer-split auto

Wait for session is up (engine 0.1.56) in the log, then send one chat completion → SIGSEGV (fault site above in dmesg).

Environment

  • 4× AMD AI PRO R9700 32GB (gfx1201), dual Xeon E5-2699 v3, 121 GiB RAM (hugetlb pool 39424 × 2 MiB — the arena locks MAP_HUGETLB cleanly, cudaHostRegister PORTABLE ok; hugetlb 2 MB pages)
  • Ubuntu, kernel 6.8.0-147-generic
  • Engines: official 0.1.48 / 0.1.56 (v0.2.10 release) rx9070 packages, self-contained (RUNPATH $ORIGIN, bundled ROCm libs)
  • UD-Q4_K_XL install via Control (strata install --family unsloth --model UD-Q4_K_XL --gpus all --context 262144 --kv int8 --drafter mtp --no-start --yes) + engine component from the signed feed (sequence 120); config gpu [0,1,2,3], layer_split auto

Notes for triage

  • The Control serve wrapper auto-restarts the crashed engine, which makes this look like a hung 5–7-minute boot for hours unless you count engine had stopped lines in the wrapper output and check dmesg.
  • Full engine logs from the isolation arms (IQ3_S-4card, UD-MTP-4card, UD-DFlash2-4card, 0.1.48 arm) are available on request, as are the exact Control-written configs and a coredump if useful.
  • Possibly related to #267 (the layer-33 verify timeout observed on this same 4-card path) — mentioning for triage only.

Happy to provide anything else needed to reproduce on a 4× R9700 setup.

Originally created by @matholland618 on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5152 ## Summary On a 4× AMD AI PRO R9700 (gfx1201) box, any Qwen3.8-Flash-Next model loaded with `--layer-split auto` across all four cards boots completely — `session is up`, verify windows captured, `/v1/models` reports `loaded` — and then the **first `/v1/chat/completions` request kills the engine with a segfault inside the HIP runtime**. The crash is 100% deterministic (8+ reproductions) with an identical fault site every time. The same model, same args, same engine binaries on **2 cards** (`gpu [0,1]`) serve fine (87.5 tok/s decode measured the same day at ~35K-token prompts). ## Kernel signature (identical every crash) ``` strata-host[4116460]: segfault at 18 ip 000074fafa50b131 sp 00007ffff42efea0 error 4 in libamdhip64.so.7[50a131,74fafa173000+3ea000] likely on CPU 0 (core 0, socket 0) ``` Null-pointer dereference (address `0x18`) at the same offset in `libamdhip64.so.7` every time, always CPU 0 / socket 0. ## What does NOT change the outcome (all crash identically) | Variable | Values tested | |---|---| | Quant / pack | IQ3_S (GSQ-RCO) **and** Unsloth UD-Q4_K_XL (4 shards, GGUF-in-place) | | Engine | **0.1.48 and 0.1.56** (official linux-x86_64-hip-rx9070 packages, sha256-verified) | | Drafter | MTP (`--spec 4 --spec-min-p 0.5`) **and** DFlash2 (`--draft dflash2 ... --spec 6 --draft-conf 0.35`) | | Serving layer | Control `strata serve` **and** the legacy `serve/server.py` wrapper | | `STRATA_HIP_QUEUE_PRIME` | default **and** `=0` | | Context | 262144 (one 4-card boot also hit `verify: timed out at layer 33; its GPU waits were released and the GPU finished (#267)` on the same path before crashing the same way) | ## What DOES work (the boundaries) - **Same everything on 2 cards** (`gpu [0,1]` + `--layer-split auto`): serves fine — 87.5 tok/s decode, ~77% draft acceptance, ~2.9–3.5K tok/s prefill. - **A different model family on the same 4 cards**: GLM-5.3 served by Project Maya on this identical rig runs a 4-card split with no issues — hardware, driver, and 4-card splits per se are fine; the fault is specific to the Qwen multi-GPU path. - Boot on 4 cards always completes — only the first decode request kills it. One 0.1.48 run even **returned a complete chat response** for the first request and crashed immediately after, so the crash lands in post-request / next-work handling rather than in generation itself. ## Repro (simplest form) Engine 0.1.56, Qwen3.8-Flash-Next GSQ-RCO IQ3_S: ``` strata --serve --pack Strata-data/packs/iq3_s \ --native Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf \ --expert-profile data/expert-profile.bin --expert-cache auto --prefill auto \ --spec 4 --spec-min-p 0.5 --mtp Strata-data/mtp/rt \ --max-context 262144 --kv int8 --kv-resident 32768 \ --gpu 0 --gpu 1 --gpu 2 --gpu 3 --layer-split auto ``` Wait for `session is up (engine 0.1.56)` in the log, then send one chat completion → SIGSEGV (fault site above in dmesg). ## Environment - 4× AMD AI PRO R9700 32GB (gfx1201), dual Xeon E5-2699 v3, 121 GiB RAM (hugetlb pool 39424 × 2 MiB — the arena locks `MAP_HUGETLB` cleanly, `cudaHostRegister PORTABLE ok; hugetlb 2 MB pages`) - Ubuntu, kernel 6.8.0-147-generic - Engines: official 0.1.48 / 0.1.56 (v0.2.10 release) rx9070 packages, self-contained (`RUNPATH $ORIGIN`, bundled ROCm libs) - UD-Q4_K_XL install via Control (`strata install --family unsloth --model UD-Q4_K_XL --gpus all --context 262144 --kv int8 --drafter mtp --no-start --yes`) + engine component from the signed feed (sequence 120); config `gpu [0,1,2,3]`, `layer_split auto` ## Notes for triage - The Control serve wrapper auto-restarts the crashed engine, which makes this look like a hung 5–7-minute boot for hours unless you count `engine had stopped` lines in the wrapper output and check dmesg. - Full engine logs from the isolation arms (IQ3_S-4card, UD-MTP-4card, UD-DFlash2-4card, 0.1.48 arm) are available on request, as are the exact Control-written configs and a coredump if useful. - Possibly related to #267 (the layer-33 verify timeout observed on this same 4-card path) — mentioning for triage only. Happy to provide anything else needed to reproduce on a 4× R9700 setup.
Author
Owner

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

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

Thanks, this follows the format now.

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