[Bug 294215] misc/llama-cpp: illegal instruction/SIGILL on AMD 4750U

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 02 Apr 2026 20:54:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294215

            Bug ID: 294215
           Summary: misc/llama-cpp: illegal instruction/SIGILL on AMD
                    4750U
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: cracauer@cons.org
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Both llama-server and llama-cli show the same illegal instruction when the CPU
is initialized.

I tried both today's package and compiled from ports. Identical behavior.

OS is 16-current/AMD64

%%

Thread 1 received signal SIGILL, Illegal instruction.
Privileged opcode.
0x00000008011849f2 in ggml_cpu_init () from /usr/local/lib/libggml-cpu.so.0
(gdb) bt
#0  0x00000008011849f2 in ggml_cpu_init () from /usr/local/lib/libggml-cpu.so.0
#1  0x00000008011875e9 in ggml_backend_cpu_reg ()
   from /usr/local/lib/libggml-cpu.so.0
#2  0x00000008007d0ad7 in ggml_backend_registry::ggml_backend_registry() ()
   from /usr/local/lib/libggml.so.0
#3  0x00000008007ce076 in ggml_backend_reg_by_name ()
   from /usr/local/lib/libggml.so.0
#4  0x0000000800f99ee0 in llama_supports_rpc ()
   from /usr/local/lib/libllama.so.0
#5  0x00000000004260bc in ?? ()
#6  0x000000000043ee93 in ?? ()
#7  0x00000000002e0254 in ?? ()
#8  0x0000000804bcae4f in __libc_start1 (argc=1, argv=0x7fffffffd348, 
    env=0x7fffffffd358, cleanup=<optimized out>, mainX=0x2e0200)
    at /mnt/part2/usr/src/lib/libc/csu/libc_start1.c:180
#9  0x00000000002e01a4 in ?? ()

-- 
You are receiving this mail because:
You are the assignee for the bug.