[GH-ISSUE #5156] [Engine] SIGSEGV in native_gu_rows (CPU expert pool) on Meteor Lake iGPU, SYCL i915 path #3066

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

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

Problem: On a Core Ultra 7 155H (integrated Arc, i915), the SYCL engine loads Coder IQ1_M and reports ready, then dies with SIGSEGV in the strata-pool-N threads at the first request. gdb puts the crash in strata::kernels::cpu::native_gu_rows, which reads an offset from the NativeFmt descriptor whose value is a garbage 64-bit number. Integrated Arc is listed as untested in INTEL_ARC.md, so I don't expect support; I'm reporting the failure mode in case it points to a data bug in the CPU path that other configs could hit too.

Environment:

  • Commit ffa80d73133ea5c548aefe57889a16e8085a938f, engine 0.1.56
  • CPU Intel Core Ultra 7 155H (6P+8E+2LP-E); flags: avx avx2 avx_vnni bmi1 bmi2 f16c fma, no AVX-512
  • GPU Intel Arc Graphics (Meteor Lake-P), PCI 8086:7d55, driver i915 (xe module loaded, unused); shared system memory, 62 GB RAM
  • Fedora 44, kernel 7.2.11-200.fc44.x86_64
  • intel-compute-runtime 26.35.39758.17, intel-igc 2.41.15, level-zero 1.33.1 (Fedora packages); sycl-ls: [level_zero:gpu] Intel(R) Arc(TM) Graphics 12.71.4
  • oneAPI compiler 2026.2 from Intel's dnf repo (the INTEL_ARC.md reference build is 2026.1 in Docker)
  • Model: Coder IQ1_M, --max-context 4096

Local changes (so you can judge validity):

  • Native build, no Docker: cmake -S sycl -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DSTRATA_SYCL_PARITY=OFF (JIT, no AOT)
  • setup_intel.py skips integrated GPUs, so I added "7d55": ("Arc Graphics (Meteor Lake iGPU)", 8.0) to INTEL_ARC to get the A750/i915 config (8 GB is a stand-in)
  • sycl/serve/server_intel.py needed the separate fix in issue # to start at all
  • A native wrapper replaces strata-sycl.sh: sources setvars.sh; sets SYCL_CACHE_PERSISTENT=0 ZES_ENABLE_SYSMAN=1 STRATA_VERIFY_DEVICE_PLAN=1; drops STRATA_* variables whose value is 0, as the Docker wrapper does
  • --ple-io ram removed from the generated config (RAM)
  • Engine args: --pack … --native …-00001-of-00002.gguf --ple-gguf …-00002-of-00002.gguf --expert-profile data/expert-profile-coder.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp …/mtp/rt --max-context 4096 --vision --pool-workers 10 --vram-reserve-mib 300

Reproduce: Start the generated run-coder-iq1_m.sh and send any short chat request; or one-shot under gdb:

gdb -q -batch -ex run -ex 'p/x $_siginfo._sifields._sigfault.si_addr' -ex "info registers rax rcx r12" \
  --args build-sycl/strata --pack <pack> --native <shard1> --ple-gguf <shard2> \
  --expert-profile data/expert-profile-coder.bin --expert-cache auto --prefill auto \
  --spec 4 --spec-min-p 0.5 --mtp <mtp/rt> --max-context 4096 --pool-workers 10 \
  --vram-reserve-mib 300 --tokens "1,2,3" --max-new 4

Expected: Generation, or a clear error. Actual: the engine loads (experts 23.42 GiB; GPU expert cache about 1850–2070 slots, 3.6–4.0 GiB; cudaMalloc requests of 4.75 GiB and above fail, 3.66 GiB succeeds), the server reports ready, and the first request kills it with exit code -11. The first time this took ~60 s (kernel JIT); with warm caches it is ~1 s.

Evidence (sanitized logs attached: strata-coder-iq1_m.sanitized.log, gdb-strata2.sanitized.txt):
strata-coder-iq1_m.sanitized.log
gdb-strata2.sanitized.txt

dmesg:

strata-pool-0[…]: segfault at 2a222700 ip 000000002a222700 sp 00007fab7ddb1c10 error 15
(several pool threads at once with the same address; address varies per run: 139a0d80, 1983df80, 206ca600)
Fence expiration time out i915-0000:00:02.0:strata[…]   (afterwards)

gdb, thread strata-pool-2 stops with SIGSEGV:

#0 strata::kernels::cpu::native_gu_rows(NativeFmt const&, unsigned char const*, void const* const*, int, float* const*, int, int)+415
#1 strata::kernels::cpu::ExpertPool::drain(int, ExpertScratch&, unsigned int)
#2 strata::kernels::cpu::ExpertPool::worker(int)

Disassembly around the crash:

0x8b51dc  mov  0x58(%r12),%rax
0x8b51e1  test %rax,%rax
0x8b51e4  je   …
0x8b51ea  mov  0x18(%rsp),%rcx
0x8b51ef  movss (%rcx,%rax,1),%xmm0      <- faults

Registers: rax=0xfd43e81a18e3b710, rcx=0x7ff86713b400, r12=0x108ff3d0, si_addr=0x0.

Reproduction status: Reproduced locally on every attempt, server mode and one-shot gdb mode.

Observations vs. interpretation:

  • Observed: the offset loaded from NativeFmt+0x58 (r12 points into the heap) is 0xfd43e81a18e3b710; adding it to rcx gives a non-canonical address (si_addr 0).
  • Unconfirmed interpretation: the descriptor was never initialised or was overwritten. The earlier dmesg faults, where the instruction pointer equals a low heap-range address, would fit the same kind of corruption. I have not verified either.

Tried, no change in the crash: --pool-workers 1; --pool-affinity p-cores; STRATA_NO_AVXVNNI=1; STRATA_NO_IQ256=1 (log confirms ggml-cpu vec_dot (STRATA_NO_IQ256 set)); STRATA_PF_XMX=0. --no-pool is unusable here: the native IQ pack requires --spec, and with --no-pool the engine exits at startup with "verify: needs the profile-filled VRAM expert tier".

Not run: a build with oneAPI 2026.1 (to rule out a compiler difference — unconfirmed hypothesis); the xe driver on this GPU; a Docker-based build; a sanitizer/debug build. I can run any of these or test a patch if useful.

Originally created by @pascalbrax on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5156 **Problem:** On a Core Ultra 7 155H (integrated Arc, i915), the SYCL engine loads Coder IQ1_M and reports ready, then dies with SIGSEGV in the `strata-pool-N` threads at the first request. gdb puts the crash in `strata::kernels::cpu::native_gu_rows`, which reads an offset from the `NativeFmt` descriptor whose value is a garbage 64-bit number. Integrated Arc is listed as untested in INTEL_ARC.md, so I don't expect support; I'm reporting the failure mode in case it points to a data bug in the CPU path that other configs could hit too. **Environment:** - Commit `ffa80d73133ea5c548aefe57889a16e8085a938f`, engine 0.1.56 - CPU Intel Core Ultra 7 155H (6P+8E+2LP-E); flags: avx avx2 avx_vnni bmi1 bmi2 f16c fma, no AVX-512 - GPU Intel Arc Graphics (Meteor Lake-P), PCI 8086:7d55, driver i915 (xe module loaded, unused); shared system memory, 62 GB RAM - Fedora 44, kernel 7.2.11-200.fc44.x86_64 - intel-compute-runtime 26.35.39758.17, intel-igc 2.41.15, level-zero 1.33.1 (Fedora packages); sycl-ls: `[level_zero:gpu] Intel(R) Arc(TM) Graphics 12.71.4` - oneAPI compiler 2026.2 from Intel's dnf repo (the INTEL_ARC.md reference build is 2026.1 in Docker) - Model: Coder IQ1_M, `--max-context 4096` **Local changes (so you can judge validity):** - Native build, no Docker: `cmake -S sycl -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DSTRATA_SYCL_PARITY=OFF` (JIT, no AOT) - `setup_intel.py` skips integrated GPUs, so I added `"7d55": ("Arc Graphics (Meteor Lake iGPU)", 8.0)` to `INTEL_ARC` to get the A750/i915 config (8 GB is a stand-in) - `sycl/serve/server_intel.py` needed the separate fix in issue #<other> to start at all - A native wrapper replaces `strata-sycl.sh`: sources setvars.sh; sets `SYCL_CACHE_PERSISTENT=0 ZES_ENABLE_SYSMAN=1 STRATA_VERIFY_DEVICE_PLAN=1`; drops `STRATA_*` variables whose value is 0, as the Docker wrapper does - `--ple-io ram` removed from the generated config (RAM) - Engine args: `--pack … --native …-00001-of-00002.gguf --ple-gguf …-00002-of-00002.gguf --expert-profile data/expert-profile-coder.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp …/mtp/rt --max-context 4096 --vision --pool-workers 10 --vram-reserve-mib 300` **Reproduce:** Start the generated `run-coder-iq1_m.sh` and send any short chat request; or one-shot under gdb: ``` gdb -q -batch -ex run -ex 'p/x $_siginfo._sifields._sigfault.si_addr' -ex "info registers rax rcx r12" \ --args build-sycl/strata --pack <pack> --native <shard1> --ple-gguf <shard2> \ --expert-profile data/expert-profile-coder.bin --expert-cache auto --prefill auto \ --spec 4 --spec-min-p 0.5 --mtp <mtp/rt> --max-context 4096 --pool-workers 10 \ --vram-reserve-mib 300 --tokens "1,2,3" --max-new 4 ``` **Expected:** Generation, or a clear error. **Actual:** the engine loads (experts 23.42 GiB; GPU expert cache about 1850–2070 slots, 3.6–4.0 GiB; `cudaMalloc` requests of 4.75 GiB and above fail, 3.66 GiB succeeds), the server reports ready, and the first request kills it with exit code -11. The first time this took ~60 s (kernel JIT); with warm caches it is ~1 s. **Evidence** (sanitized logs attached: `strata-coder-iq1_m.sanitized.log`, `gdb-strata2.sanitized.txt`): [strata-coder-iq1_m.sanitized.log](https://github.com/user-attachments/files/34341390/strata-coder-iq1_m.sanitized.log) [gdb-strata2.sanitized.txt](https://github.com/user-attachments/files/34341389/gdb-strata2.sanitized.txt) dmesg: ``` strata-pool-0[…]: segfault at 2a222700 ip 000000002a222700 sp 00007fab7ddb1c10 error 15 (several pool threads at once with the same address; address varies per run: 139a0d80, 1983df80, 206ca600) Fence expiration time out i915-0000:00:02.0:strata[…] (afterwards) ``` gdb, thread `strata-pool-2` stops with SIGSEGV: ``` #0 strata::kernels::cpu::native_gu_rows(NativeFmt const&, unsigned char const*, void const* const*, int, float* const*, int, int)+415 #1 strata::kernels::cpu::ExpertPool::drain(int, ExpertScratch&, unsigned int) #2 strata::kernels::cpu::ExpertPool::worker(int) ``` Disassembly around the crash: ``` 0x8b51dc mov 0x58(%r12),%rax 0x8b51e1 test %rax,%rax 0x8b51e4 je … 0x8b51ea mov 0x18(%rsp),%rcx 0x8b51ef movss (%rcx,%rax,1),%xmm0 <- faults ``` Registers: `rax=0xfd43e81a18e3b710`, `rcx=0x7ff86713b400`, `r12=0x108ff3d0`, `si_addr=0x0`. **Reproduction status:** Reproduced locally on every attempt, server mode and one-shot gdb mode. **Observations vs. interpretation:** - Observed: the offset loaded from `NativeFmt+0x58` (r12 points into the heap) is `0xfd43e81a18e3b710`; adding it to `rcx` gives a non-canonical address (si_addr 0). - Unconfirmed interpretation: the descriptor was never initialised or was overwritten. The earlier dmesg faults, where the instruction pointer equals a low heap-range address, would fit the same kind of corruption. I have not verified either. **Tried, no change in the crash:** `--pool-workers 1`; `--pool-affinity p-cores`; `STRATA_NO_AVXVNNI=1`; `STRATA_NO_IQ256=1` (log confirms `ggml-cpu vec_dot (STRATA_NO_IQ256 set)`); `STRATA_PF_XMX=0`. `--no-pool` is unusable here: the native IQ pack requires `--spec`, and with `--no-pool` the engine exits at startup with "verify: needs the profile-filled VRAM expert tier". **Not run:** a build with oneAPI 2026.1 (to rule out a compiler difference — unconfirmed hypothesis); the `xe` driver on this GPU; a Docker-based build; a sanitizer/debug build. I can run any of these or test a patch if useful.
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#3066
No description provided.