Skip to content

opencode 1.18.21 crashes with SIGILL at UD2 instruction #46172

Closed as not planned

Description

@felixzsh

Description

opencode 1.18.21 crashed with SIGILL while running a session.

Crash details

  • Version: 1.18.21
  • Command line: opencode --session ses_fb57a18d8ffe3w2WSbWSw3CR62
  • Signal: SIGILL
  • Signal code: ILL_ILLOPN
  • Crash time: 2026-08-29 12:03:34 CDT
  • Binary: /home/felix/.local/share/mise/installs/opencode/1.18.21/opencode
  • Build ID: c30f169b1bef81fa57467cd091ba53aab5235468
  • CPU: Intel Core i7-8665U
  • OS: Arch Linux, kernel 7.1.11-arch1-1
  • Architecture: x86-64

The kernel reported:

traps: opencode[15987] trap invalid opcode

The instruction at the crash address is:

0x2607064: ud2

The coredump backtrace is unsymbolized:

#0  0x0000000002607064 in ?? ()

The core contained 29 threads. Most other threads were in runtime/internal wait or worker code. The coredump also recorded two deleted temporary modules without build IDs:

/tmp/.bcd9cfdfbfadf27d-00000001.so
/tmp/.9adb4bfbeef0ef8f-00000000.so

There was no evidence of OOM: at diagnosis time the system had approximately 6.7 GiB available memory and no swap in use.

This appears to be an internal fatal path or assertion in the opencode executable, but the available symbols do not identify the triggering code path.

The crash has only been observed once so far.

Expected behavior

The opencode process should continue running or report a recoverable application error rather than terminate with SIGILL.

Additional information

The coredump is available locally through systemd-coredump, but it has not been uploaded because it may contain private prompts, tokens, and user data.

Filed by the current model via pi coding-agent harness.

Activity

  1. github-actions commented on Aug 29, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    The crash address 0x2607064 appears consistently across these reports, suggesting they share a root cause.

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions