You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SIGILL crash on AMD Ryzen Zen 3 (no AVX-512 support) — all sessions crash #38986
OpenCode Desktop crashes with SIGILL (Illegal Instruction) on every session.
The binary contains AVX-512 instructions that AMD Zen 3 CPUs do not support.
Evidence
The compiled binary at /opt/OpenCode/ai.opencode.desktop includes AVX-512
instructions using zmm registers:
These issues all cover the same root cause: bundled Bun/native binaries including AVX-512 or AVX2 instructions that crash on CPUs lacking those extensions. Your report adds useful evidence (AMD Zen 3 + desktop AppImage path) that may help narrow down the packaging issue.
This matters for scope: every Intel consumer CPU from 12th gen onward lacks AVX-512
(disabled because of the E-cores). So this is not an AMD-specific bucket — it covers
Alder Lake, Raptor Lake, and Meteor Lake desktops/laptops as well as Zen 3.
Two crashes, the same instruction pointer, different threads and different model
providers:
Aug 23 18:10:22 kernel: traps: HeapHelper[504903] trap invalid opcode
ip:2607064 sp:7217591ec8d0 error:0 in opencode[21a3064,24c8000+36e6000]
Aug 24 16:04:32 kernel: traps: opencode[3915644] trap invalid opcode
ip:2607064 sp:7ffd19044c90 error:0 in opencode[21a3064,24c8000+36e6000]
Crash 1 was on a local Ollama provider, crash 2 on a remote OpenAI-compatible endpoint,
so it is below the provider layer — consistent with what #33595 argues.
One difference worth noting
For us this is intermittent, not every session: 2 crashes in roughly 40 hours of
heavy agentic use, both during long tool-call loops, rather than a crash on every start.
That fits a rarely-taken code path containing AVX-512 rather than a hot one.
Possibly related on the same host: opencode run twice hung indefinitely with no output
and no upstream request ever sent (once ~19 minutes, zero completed turns, model server
idle with nothing loaded) and had to be killed. No log line after the run started. Not
claiming it is the same defect, only that it appeared on the same build.
Ruled out here: system OOM (55 GiB free at crash 1), machine fault (the later reboot was
a clean systemd-reboot), and the Raptor Lake Vmin-shift errata (microcode 0x133,
zero MCEs).
Happy to attach a full backtrace — systemd-coredump is now capturing cores on this host
with ProcessSizeMax=16G, so the next occurrence on 1.18.22 will produce one.
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.
Activity
github-actions commentedon Jul 26, 2026
This issue might be a duplicate of existing issues. Please check:
These issues all cover the same root cause: bundled Bun/native binaries including AVX-512 or AVX2 instructions that crash on CPUs lacking those extensions. Your report adds useful evidence (AMD Zen 3 + desktop AppImage path) that may help narrow down the packaging issue.
lqmnah commentedon Aug 25, 2026
Confirming this on Intel, not just AMD Zen 3 — and still present 16 releases later.
Environment
1.18.21(crashes) /1.18.22(currently installed, auto-updated)1.3.14(bundled), binary 184,498,304 bytes7.0.0-30-generic, x86_640x133~/.opencode/bin/opencode), not the desktop packageCPU lacks AVX-512
This matters for scope: every Intel consumer CPU from 12th gen onward lacks AVX-512
(disabled because of the E-cores). So this is not an AMD-specific bucket — it covers
Alder Lake, Raptor Lake, and Meteor Lake desktops/laptops as well as Zen 3.
Same evidence in the npm binary
Disassembling
.textof the installed binary:Concrete EVEX instructions present:
Kernel traps
Two crashes, the same instruction pointer, different threads and different model
providers:
Crash 1 was on a local Ollama provider, crash 2 on a remote OpenAI-compatible endpoint,
so it is below the provider layer — consistent with what #33595 argues.
One difference worth noting
For us this is intermittent, not every session: 2 crashes in roughly 40 hours of
heavy agentic use, both during long tool-call loops, rather than a crash on every start.
That fits a rarely-taken code path containing AVX-512 rather than a hot one.
Possibly related on the same host:
opencode runtwice hung indefinitely with no outputand no upstream request ever sent (once ~19 minutes, zero completed turns, model server
idle with nothing loaded) and had to be killed. No log line after the run started. Not
claiming it is the same defect, only that it appeared on the same build.
Ruled out here: system OOM (55 GiB free at crash 1), machine fault (the later reboot was
a clean
systemd-reboot), and the Raptor Lake Vmin-shift errata (microcode0x133,zero MCEs).
Happy to attach a full backtrace —
systemd-coredumpis now capturing cores on this hostwith
ProcessSizeMax=16G, so the next occurrence on1.18.22will produce one.bronger commentedon Sep 30, 2026
I this “illegal instruction” with OpenCode 1.18.33 on an AMD Turion II. Is this the same problem, or are such very old CPUs even another issue?
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊