claude-code-android icon indicating copy to clipboard operation
claude-code-android copied to clipboard

[BUG] New Claude Code version crashes

Open pidir048-beep opened this issue 5 months ago • 4 comments

Environment

  • Device: Honor X7d 4G
  • Android version: Android 15
  • Architecture: aarch64
  • Kernel version: 5.15.180-android13-8-00018-g9b2308ac0ad6-ab14563692
  • Termux source: F-Droid
  • Install path: Native Termux
  • Launch command used: claude
  • Node.js version: v24.15.0
  • Claude Code version: 2.1.181 (Claude Code)

Steps to Reproduce

Expected Behavior

For Claude CLI to launch normally

Actual Behavior

Just crashes.

Error Output

~/test $ claude
============================================================
Bun v1.4.0 (324c5f012) Linux arm64                    Linux Kernel v5.15.180 | glibc v2.42-0
CPU: neon fp aes crc32
Args: "/data/data/com.termux/files/home/.local/share/claude/versions/2.1.181"                               Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch jsc standalone_executable yaml_parse(2) claude_code
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:http2" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/posix" "node:path/win32" "node:perf_hooks" "node:process" "node:readline" "node:stream" "node:stream/consumers" "node:stream/promises" "node:string_decoder" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:vm" "node:zlib"

Elapsed: 605ms | User: 621ms | Sys: 156ms
RSS: 41.1 MB | Peak: 0.29 GB | Commit: 41.1 MB | Faults: 3 | Machine: 8.0 GB

panic: Segmentation fault at address 0x0
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.4.0/L_1324c5f0kgggkEugogC2pl8Buxz0uCm12//C+00//C2pl9kCmxy8kCu6x8kC+q275B+ytiB2568BA2AA

Trap                       claude
~/test $

Additional Context

Just was using Claude CLI normally, relaunched it, wrapper (from native termux install approach) found a new version and downloaded it, patched it and then it started to crash. Also, heres the stacktrace:

 Bun v1.4.0 ([`324c5f0`](<https://github.com/oven-sh/bun/tree/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8>)) on linux aarch64 [StandaloneExecutable]

Segmentation fault at address 0x00000000

- `??`
- [`linux.rs:38`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/platform/linux.rs#L38>): `sys_epoll_pwait2`
- [`epoll_kqueue.c:142`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/packages/bun-usockets/src/eventing/epoll_kqueue.c#L142>): `bun_epoll_pwait2`
- [`epoll_kqueue.c:391`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/packages/bun-usockets/src/eventing/epoll_kqueue.c#L391>): `us_loop_run_bun_tick`
- [`Loop.rs:249`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/uws_sys/Loop.rs#L249>): `tick`
- [`HTTPThread.rs:1372`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/http/HTTPThread.rs#L1372>): `<bun_http::http_thread::HttpThread>::process_events`
- [`HTTPThread.rs:1336`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/http/HTTPThread.rs#L1336>): `on_start`
- [`HTTPThread.rs:1240`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/http/HTTPThread.rs#L1240>): `{closure#0}`
- [`backtrace.rs:166`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/std/src/sys/backtrace.rs#L166>): `std::sys::backtrace::__rust_begin_short_backtrace::<bun_http::http_thread::_event_loop_draft::init_once::{closure#0}, (...)>`
- [`lifecycle.rs:70`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/std/src/thread/lifecycle.rs#L70>): `{closure#0}<bun_http::http_thread::_event_loop_draft::init_once::{closure_env#0}, (...)>`
- [`unwind_safe.rs:275`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/core/src/panic/unwind_safe.rs#L275>): `call_once<(), std::thread::lifecycle::spawn_unchecked::{closure#1}::{closure_env#0}<bun_http::http_thread::_event_loop_draft::init_once::{closure_env#0}, (...)>>`
- [`panicking.rs:581`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/std/src/panicking.rs#L581>): `do_call<core::panic::unwind_safe::AssertUnwindSafe<std::thread::lifecycle::spawn_unchecked::{closure#1}::{closure_env#0}<bun_http::http_thread::_event_loop_draft::init_once::{closure_env#0}, ()>>, (...)>`
- [`panicking.rs:544`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/std/src/panicking.rs#L544>): `catch_unwind<(), core::panic::unwind_safe::AssertUnwindSafe<std::thread::lifecycle::spawn_unchecked::{closure#1}::{closure_env#0}<bun_http::http_thread::_event_loop_draft::init_once::{closure_env#0}, (...)>>>`
- [`panic.rs:359`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/std/src/panic.rs#L359>): `catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<std::thread::lifecycle::spawn_unchecked::{closure#1}::{closure_env#0}<bun_http::http_thread::_event_loop_draft::init_once::{closure_env#0}, ()>>, (...)>`
- [`lifecycle.rs:68`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/std/src/thread/lifecycle.rs#L68>): `{closure#1}<bun_http::http_thread::_event_loop_draft::init_once::{closure_env#0}, (...)>`
- [`function.rs:250`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/core/src/ops/function.rs#L250>): `<std::thread::lifecycle::spawn_unchecked<bun_http::http_thread::_event_loop_draft::init_once::{closure#0}, ()>::{closure#1} as core::ops::function::FnOnce<(...)>>::call_once::{shim:vtable#0}`
- [`boxed.rs:2275`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/alloc/src/boxed.rs#L2275>): `call_once<(), (...), alloc::alloc::Global>`
- [`unix.rs:118`](<https://github.com/oven-sh/bun/blob/324c5f012a5fa29c1b6dcbe59ae4f8fd0475c7a8/src/rust/library/std/src/sys/thread/unix.rs#L118>): `<std::sys::thread::unix::Thread>::new::thread_start`

Features: spawn, standalone\_executable, yaml\_parse, claude\_code, Bun.stderr, Bun.stdin, Bun.stdout, fetch, jsc

pidir048-beep avatar Jun 18 '26 16:06 pidir048-beep

Yup. Its the new bun 1.4 (that is unreleased publicly it appears) I am actively working it as we speak. I am about to push a hotfix/ patch that will pin Claude Code to 2.1.176 I am testing now. 2.1.181 pushed a new bun giving us a regression

ferrumclaudepilgrim avatar Jun 18 '26 17:06 ferrumclaudepilgrim

I just pushed an update. Re-running install.sh (steps here) refreshes the launcher in place.

The launcher now launch-tests each Claude Code version on your device and rolls back from one that crashes, so it won't strand you on 2.1.181. I'm following the Bun fix in PR #32490 closely and will note here when a working release lands.

ferrumclaudepilgrim avatar Jun 19 '26 00:06 ferrumclaudepilgrim

Update on situation: When i received update to version 2.1.191 this error somehow fixed itself and now 2.1.191 claude code launches cleanly.

pidir048-beep avatar Jun 25 '26 16:06 pidir048-beep

Yes I see my devices are all running up 2.1.195 that are able to get past the pin.

Glad the bun fix made it in and the install script is working as designed.

ferrumclaudepilgrim avatar Jun 29 '26 16:06 ferrumclaudepilgrim