Skip to content

Bug: iqk/fa/iqk_fa_templates.h:1175: GGML_ASSERT(S > 0) failed #1910

Description

@rofl0r

What happened?

after a while, llama-server crashes with the above assert. i compiled RelWithDebInfo to be able to debug it and ran it in gdb, however some odd stuff happens (it appears ik_llama has its own signal handler which tries to ptrace, which fails), so i cannot get a backtrace.

ik_llama.cpp/ggml/src/./iqk/fa/iqk_fa_templates.h:1175: GGML_ASSERT(S
 > 0) failed
[Detaching after fork from child process 1519249]
[Detaching after fork from child process 1519250]
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
warning: process 1515739 is already traced by process 1515725
ptrace: Operation not permitted.
No stack.
The program is not being run.

Thread 1659 "llama-server" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffb8b762640 (LWP 1517399)]
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140718353294912) at ./nptl/pthread_kill.c:44
44  ./nptl/pthread_kill.c: No such file or directory.
(gdb) Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
warning: process 1515739 is already traced by process 1515725
ptrace: Operation not permitted.
No stack.
The program is not being run.

Name and Version

/ik_llama.cpp[main]$ build/bin/llama-cli --version
version: 4551 (3f40e73)
built with cc (Ubuntu 11.4.0-1ubuntu1
22.04.3) 11.4.0 for x86_64-linux-gnu

What operating system are you seeing the problem on?

Linux

Relevant log output

command line used for llama-server is:

build/bin/llama-server --model ~/models/Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled.IQ4_XS.gguf --spec-type mtp --draft-max 3 --draft-p-min 0.0 --spec-autotune -cnv --color --jinja --special -smgs -sas -mea 256 --temp 0.7 -t 6 --parallel 6 --cpu-moe --merge-up-gate-experts --flash-attn on --mla-use 3 --mlock --run-time-repack --no-kv-offload --host 127.0.0.1 --port 18081 --timeout 36000 --reasoning-budget 2048

it's a CPU-only build (no GPU exists).

last lines before crash is:

INFO [    batch_pending_prompt] kv cache rm [p0, end) | tid="140737325548096" ti
mestamp=1780318796 id_slot=2 id_task=20748 p0=0
llama_decode_internal: qwen3next mixed-sequence batch contains repeated seq_id v
alues; falling back to single-token chunking
[New Thread 0x7ffa1663a640 (LWP 1519244)]
[New Thread 0x7ff9f0b8c640 (LWP 1519245)]
[New Thread 0x7ff9f038b640 (LWP 1519246)]
[New Thread 0x7ff9efb8a640 (LWP 1519247)]
[New Thread 0x7ffa16e3b640 (LWP 1519248)]
[Thread 0x7ffa1663a640 (LWP 1519244) exited]
[Thread 0x7ff9efb8a640 (LWP 1519247) exited]
[Thread 0x7ff9f038b640 (LWP 1519246) exited]
[Thread 0x7ff9f0b8c640 (LWP 1519245) exited]
[Thread 0x7ffa16e3b640 (LWP 1519248) exited]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions