Illegal Instruction (trap invalid opcode) on Ivy Bridge CPUs (AVX supported, AVX2 missing) #9204

Closed
opened 2026-02-16 18:11:54 -05:00 by yindo · 3 comments
Owner

Originally created by @miladnoo on GitHub (Feb 12, 2026).

Originally assigned to: @thdxr on GitHub.

Description

The pre-compiled binaries for the CLI (e.g., kilo or the opencode native
binary) crash immediately upon execution with an Illegal instruction
(core dumped) error on older (but still common) x86-64 CPUs that support
AVX but do not support AVX2 (e.g., Intel Ivy Bridge i7-3770).

This suggests the binaries are being compiled with a high architecture
baseline (like GOAMD64=v3 or equivalent compiler flags) that requires
AVX2/BMI2.

I am the real human here, I was informed of the issue above through my agent which tried to install the open code and kilo code. they both had the same issue. hope you guys can take care of this for me please. the hardware I am using is my old desktop, that I would want to install the agent on and have it kind of sandboxed, if I am missing anything please let me know.

Plugins

none

OpenCode version

latest

Steps to reproduce

  1. Install the CLI on a machine with a CPU like the i7-3770.
  2. Run kilocode --help or opencode --help.
  3. Observe the crash: bash: line 1: [PID] Illegal instruction (core
    dumped).

Screenshot and/or share link

No response

Operating System

linux ubuntu

Terminal

alacritty

Originally created by @miladnoo on GitHub (Feb 12, 2026). Originally assigned to: @thdxr on GitHub. ### Description The pre-compiled binaries for the CLI (e.g., kilo or the opencode native binary) crash immediately upon execution with an Illegal instruction (core dumped) error on older (but still common) x86-64 CPUs that support AVX but do not support AVX2 (e.g., Intel Ivy Bridge i7-3770). This suggests the binaries are being compiled with a high architecture baseline (like GOAMD64=v3 or equivalent compiler flags) that requires AVX2/BMI2. I am the real human here, I was informed of the issue above through my agent which tried to install the open code and kilo code. they both had the same issue. hope you guys can take care of this for me please. the hardware I am using is my old desktop, that I would want to install the agent on and have it kind of sandboxed, if I am missing anything please let me know. ### Plugins none ### OpenCode version latest ### Steps to reproduce 1. Install the CLI on a machine with a CPU like the i7-3770. 2. Run kilocode --help or opencode --help. 3. Observe the crash: bash: line 1: [PID] Illegal instruction (core dumped). ### Screenshot and/or share link _No response_ ### Operating System linux ubuntu ### Terminal alacritty
yindo added the bugperf labels 2026-02-16 18:11:54 -05:00
yindo closed this issue 2026-02-16 18:11:54 -05:00
Author
Owner

@miladnoo commented on GitHub (Feb 12, 2026):

  • CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (Architecture: x86_64)
    • CPU Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
      cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall
      nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
      xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor
      ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic
      popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm
      cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept
      vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts vnmi md_clear
      flush_l1d
    • OS: Linux (Ubuntu/Plucky)

extra info I got from my agent

@miladnoo commented on GitHub (Feb 12, 2026): - CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (Architecture: x86_64) - CPU Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts vnmi md_clear flush_l1d - OS: Linux (Ubuntu/Plucky) extra info I got from my agent
Author
Owner

@MartinEmrich commented on GitHub (Feb 14, 2026):

@miladnoo I also had this issue on an i5-3320. Today I tried again with the new v1.2.2, and that worked for me.

@MartinEmrich commented on GitHub (Feb 14, 2026): @miladnoo I also had this issue on an i5-3320. Today I tried again with the new v1.2.2, and that worked for me.
Author
Owner

@miladnoo commented on GitHub (Feb 14, 2026):

@miladnoo I also had this issue on an i5-3320. Today I tried again with the new v1.2.2, and that worked for me.

hey man thanks for letting me know, it worked for me as well.

@miladnoo commented on GitHub (Feb 14, 2026): > [@miladnoo](https://github.com/miladnoo) I also had this issue on an i5-3320. Today I tried again with the new v1.2.2, and that worked for me. hey man thanks for letting me know, it worked for me as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9204