Repository navigation
Description
Summary
On a GMKtec Strix Halo box (Ryzen AI Max+ 395, Radeon 8060S, gfx1151, 128GB unified memory, Fedora Linux 44, native install — not WSL), Unsloth Studio's bundled llama-server prebuilt (unslothai/llama.cpp@b10069-mix-fb3d4ca, tag b10069) segfaults instantly on startup, for every model tried, with the exact same crash address every time. unsloth studio update confirms this is the current/latest prebuilt for gfx1151 ("up to date and validated").
This looks like it may be a bare-metal-Linux sibling of the bug fixed in #6227 (bundled HIP runtime libraries loading ahead of/conflicting with what Strix Halo needs) — that fix is explicitly WSL-gated and a no-op on bare-metal Linux, so if the root cause is similar, it isn't covered yet.
Environment
- Hardware: GMKtec EVO-X2, AMD Ryzen AI Max+ 395 (Strix Halo), Radeon 8060S, gfx1151, 128GB unified LPDDR5X
- OS: Fedora Linux 44 Server, native (bare metal, no WSL/container involved in the crash — reproduced directly from a normal shell)
- ROCm:
/opt/rocm,hipconfig: 7.13.99004-3309c6114a - Unsloth Studio: installed via
curl -fsSL https://unsloth.ai/install.sh | sh, confirmed viaunsloth studio updateto be on the current release (unsloth 2026.7.4, llama.cpp prebuiltb10069-mix-fb3d4ca) - Install auto-detected the GPU correctly:
gpu AMD ROCm (gfx1151) ... GPU: AMD RYZEN AI MAX+ 395 w/ Radeon 8060S— this is not a GPU-detection issue, PyTorch/GPU detection succeeded fine
Reproduction
Directly invoking the bundled binary (bypassing the Studio UI) reproduces it reliably:
~/.unsloth/llama.cpp/llama-server \
-m /path/to/any-model.gguf \
--port 39946 --parallel 1 --flash-attn on --no-context-shift \
-c 262144 --alias Q4_K_M -ngl -1 --fit off --jinja
Segmentation fault (core dumped) llama-server ...
Exit code 139 (SIGSEGV). Reproduced with two unrelated models (Qwen3.5-122B-A10B Q4_K_M GGUF, and gemma-4-26B-A4B-it UD-Q6_K GGUF) — same crash both times, so it's not model-specific. Also tried with --fit on and --flash-attn off (Studio's own automatic retry logic tries these combinations) — all four flag combinations crash identically.
Through the Studio UI, this surfaces as a generic Error loading model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory. — misleading, since the actual issue is a startup segfault, not a memory or file-validity problem (confirmed: 137GB GTT available, only ~260MB in use at time of crash; both GGUF files load and run fine via a different llama.cpp build on the same hardware — see below).
Crash details
No log output whatsoever precedes the crash — it dies before llama.cpp's own startup banner prints, suggesting a crash during dynamic-library init/constructor time rather than inside normal request/model-loading code.
coredumpctl info on three separate crashes (two different model-load attempts plus the direct-reproduction run above) all show the identical single-frame stack trace:
Stack trace of thread <pid>:
#0 0x0000000100000001 n/a (n/a + 0x0)
0x0000000100000001 is not a valid code address on this system (real loaded-library addresses look like 0x00007f...) — this looks like a corrupted function pointer / vtable jump, not a hardware fault, and it's 100% deterministic across independent runs.
Ruling out environment/host causes
lddon the bundledllama-servershows every dependency resolving cleanly — no missing libraries. Unsloth's build bundles its own complete copies oflibhipblas,librocblas,libamdhip64,libhipblaslt,librocroller, etc. (all resolve to.../llama.cpp/build/bin/, not/opt/rocm), so the host's system ROCm install largely isn't in play for these libraries.- A separately-built llama.cpp (community
kyuz0/amd-strix-halo-toolboxes:rocm-7.2.4container, llama.cpp build b10073, i.e. a build ~4 versions newer) loads and serves the exact same GGUF files on the exact same hardware/kernel/OS without any issue — ruling out a host-level/driver/kernel-flag problem, since that build works fine under identical conditions. - All shared-library modules in the coredump report "without build-id," so a full symbol-level backtrace would need debug symbols we don't have access to (or
sudo dnf install gdbplus symbols that may not be shipped) — happy to gather more if useful, just let me know what's most helpful.
Possible relation to #6227
The description of #6227 — bundled HIP runtime libraries taking precedence over system ROCm libraries via LD_LIBRARY_PATH, causing failures specific to Strix Halo — sounds like it could be the same category of bug manifesting differently on bare-metal Linux vs WSL. That PR is explicitly WSL-gated and a no-op elsewhere, so if the root cause is related, bare-metal Linux may need the equivalent fix (e.g. preferring system libamdhip64/ROCm libs over the bundled ones at runtime, the way #6227 does for the WSL case).
Happy to test any proposed fix directly on this hardware — it's a dedicated Strix Halo box that's otherwise idle for this kind of validation.
Activity
SyntaxGeek commentedon Jul 21, 2026
Possibly related: #7307 reports the identical crash signature (
segfault at 100000001 ip 0000000100000001), but on completely different hardware — dual Radeon AI PRO R9700 (gfx1201/RDNA4), not Strix Halo (gfx1151).Since the crash address and mechanism are identical across two unrelated GPU architectures, this looks like a bug in the prebuilt
llama-serverbuild itself rather than anything gfx1151-specific — possibly something in the build/toolchain shared across architectures rather than a per-arch kernel issue.That report also notes that building llama.cpp from source (instead of using the prebuilt) avoids the crash. Going to try that on this hardware as a stopgap and will report back with results.
SyntaxGeek commentedon Jul 21, 2026
Confirmed: building from source fixes it here too, matching what #7307 found on gfx1201. Same clean result — no crash, clean model load, correct inference output.
For anyone else hitting this on Strix Halo, here's exactly what worked:
Note: Unsloth's own bundled ROCm SDK (the
_rocm_sdk_corepip package under the Studio venv) is runtime-only — it's missing the HIP compiler's CMake integration (hip-lang-config.cmake), so it can't be used to build from source. Needed a real system ROCm dev toolchain instead. On Fedora 44, that's available directly from the distro's own repo (tracks ROCm 7.1.1, no need for AMD's separate repo):Then, building
unslothai/llama.cppfrom source:(Had to turn
GGML_HIP_ROCWMMA_FATTNoff — therocwmmaheaders aren't packaged in the Fedora repo I used, and it's optional for flash-attn perf, not required for correctness.)Resulting binary loads and runs cleanly:
Given the crash is identical (same address, same mechanism) across two completely different GPU architectures and both go away with a from-source build, this really does point at something specific to how the prebuilt is being built/packaged rather than the ggml/llama.cpp source itself. Happy to help narrow it down further if useful — this box is free for testing.
danielhanchen commentedon Jul 22, 2026
Fixed by #7233, now merged to main. Your diagnosis was right: this is the bare-metal-Linux sibling of #6227, which was WSL-gated. On native Linux (/dev/kfd present, not /dev/dxg) with a bundled libggml-hip, the loader now prepends your system ROCm lib dir (HIP_PATH / ROCM_PATH, else /opt/rocm) ahead of the bundled HIP runtime, so llama-server links the driver-matched stack instead of the incompatible bundled one. Your setup (Fedora 44, /opt/rocm, hipconfig 7.13.99) hits that path. It is in main now and will land in the next release; there is an opt-out (UNSLOTH_LLAMA_NO_SYSTEM_ROCM=1) if you ever need the old behavior. Thanks for the very detailed report.