Skip to content

[Bug]: Segfault in v2.1.0 pre-built binary on macOS Tahoe 26.3.1 (arm64) #2645

@davidevans-ops

Description

@davidevans-ops

Bug Description

The pre-built v2.1.0 binary from curl -fsSL https://forgecode.dev/cli | sh segfaults immediately when the model begins streaming a response. This affects both REPL and non-REPL (zsh plugin) modes. All other commands (auth, model switching, config) work fine — the crash only occurs at the moment a model response starts streaming.

Building from source (cargo build --release) on the same machine completely resolves the issue, suggesting an ABI or SDK incompatibility between the pre-built binary and macOS 26 (Tahoe).

Claude Code (v2.1.81) works perfectly on the same machine, confirming there are no network or auth issues.

Environment:

  • Forge version: v2.1.0 (pre-built binary via install script)
  • macOS: 26.3.1 (Tahoe), build 25D2128
  • Chip: Apple Silicon arm64 (Mac16,5)
  • Binary: Mach-O 64-bit executable arm64
  • Works fine on: WSL and Linux with the same version

Crash details:

  • Exception: EXC_BAD_ACCESS (SIGSEGV)
  • Subtype: KERN_INVALID_ADDRESS at 0x0000000000000002
  • Faulting thread: tokio-rt-worker
  • ESR description: Data Abort — byte read Translation fault

Workaround:
Clone the repo and cargo build --release. The locally compiled binary works without issues.

Steps to Reproduce

  1. Install Forge via curl -fsSL https://forgecode.dev/cli | sh on macOS Tahoe 26.3.1 (arm64)
  2. Authenticate and run forge
  3. Enter any prompt (e.g., hello)
  4. Observe: zsh: segmentation fault forge

Expected Behavior

The model should respond

Actual Behavior

zsh: segmentation fault forge

Error Logs

Forge Version

2.1.0

Operating System

None

OS Version

No response

AI Provider

None

Model

No response

Installation Method

Other

Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions