SciSharp / SciSharp/LLamaSharp

Getting a Illegal instruction (core dumped) when trying to run

Open
#1,422 5 comments 0 reactions 1 assignee View on GitHub

@modelpath-dev is already working on this.

Since Sep 4, 2026.

Dominant language
C#
Stars
3.8k
Forks
508
Avg merge
1d 5h
Merged PRs (30d)
12

Description

Getting the Illegal instruction (core dumped) when I try to run llamasharp. Here is my process of trying to run this repo:
-dotnet new console -n LlamaSharpProject
-cd LLamaSharpProject
-dotnet add package LLamaSharp (I did not see the notice at the bottom of the readme at first, so i also went back and did the process over with --version 0.24.0 appended)
-dotnet add package LLamaSharp.Backend.Cpu (appended --version 0.24.0 on other attempt)
-dotnet build
-dotnet run (it fails silently, get no feedback from console.)
I then try dotnet bin/Debug/net10.0/LlamaSharpProject.dll and that is when i see the core dump message.

I am running this on an old laptop. These are its flags from lscpu command:
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pg
e mca cmov pat pse36 clflush dts acpi mmx fxsr sse
sse2 ht tm pbe syscall nx lm constant_tsc arch_perf
mon pebs bts rep_good nopl cpuid aperfmperf pni dte
s64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lah
f_lm pti dtherm ida

I am able to run models fine using ggml's llama.cpp. I am running the Qwen3-0_6B-Q4_0
Any help would be greatly appreciated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.