Skip to content

Embedded bun (v1.3.x) causes segmentation faults with intel Apple MacOS. #311

@dderyldowney

Description

@dderyldowney

Description

Kilo Code CLI comes with bun embedded that is v1.3.8. Kilo Code CLI v0.25.1 is the last with the 1.2.x series bunembedded. This works perfectly fine. If I npm install -g @kilocode/cli, which installs v1.0.21 as of this post's timestamp. Immediate upon execution of kilo, it immediately dies with the following text:

kilo main [f6fb723]
============================================================
Bun v1.3.8 (b64edcb4) macOS x64
macOS v26.3
CPU: sse42 popcnt avx avx2
Args: "/usr/local/lib/node_modules/@kilocode/cli/node_modules/@kilocode/cli-darwin-x64/bin/kilo" "--user-agent=kilo/1.0.21" "--use-system-ca" "--"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(3) jsc spawn standalone_executable workers_spawned
Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:perf_hooks" "node:process" "node:querystring" "node:readline" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "undici" "node:v8" "node:http2" "node:diagnostics_channel" "node:dgram"
Elapsed: 1239ms | User: 1066ms | Sys: 226ms
RSS: ^[]11;rgb:213d/2743/33e7^G0.31GB | Peak: 0.31GB | Commit: 0.17GB | Faults: 200 | Machine: 0.07TB

panic: Bus error at address 0x7000030C5FE0
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

https://bun.report/1.3.8/ma1b64edcbmQugogC___A4gg4Bg+vxhD

Plugins

No response

Kilo version

1.0.x

Steps to reproduce

  1. npm install -g @kilocode/cli on an Intel-based Apple machine (This is a 2019 Intel-based i-9 2.4Ghz Apple MacBook Pro with 64GB RAM)
  2. Execute kilo in any project directory.
  3. Watch it immediately segmentation fault, and blame the embedded bun.

Screenshot and/or share link

Image

Operating System

macOS 0.26.3

Terminal

iTerm2 && Terminal.app

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions