[BUG] Bun has crashed. Segmentation fault at address 0x35C23800000
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
After I updated claude to 2.1.113 (or higher) when I open it, it just crashes with this error:
Bun v1.3.13 (6db6c97b) Linux x64 (baseline)
Linux Kernel v6.8.0 | glibc v2.39
Args: "claude"
Features: jsc no_avx2 no_avx standalone_executable claude_code
Builtins: "bun:main"
Elapsed: 20333ms | User: 13995ms | Sys: 6347ms
RSS: 4.55GB | Peak: 4.03GB | Commit: 4.55GB | Faults: 3 | Machine: 8.33GB
CPU lacks AVX support. Please consider upgrading to a newer CPU.
panic(main thread): Segmentation fault at address 0x35C23800000
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
What Should Happen?
It should open the claude code in terminal
Error Messages/Logs
Bun v1.3.13 ([`0aa3dbc`](<https://github.com/oven-sh/bun/tree/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57>)) on linux x86_64_baseline [StandaloneExecutable]
Segmentation fault at address 0x56B1D800000
- [`encoding.zig:215`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/src/bun.js/webcore/encoding.zig#L215>): `bun.js.webcore.encoding.toBunStringComptime`
- [`string.zig:208`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/src/string.zig#L208>): `string.String.cloneUTF8`
- [`ModuleLoader.zig:1150`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/src/bun.js/ModuleLoader.zig#L1150>): `bun.js.ModuleLoader.getHardcodedModule`
- [`ModuleLoader.zig:1175`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/src/bun.js/ModuleLoader.zig#L1175>): `bun.js.ModuleLoader.fetchBuiltinModule`
- [`ModuleLoader.zig:861`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/src/bun.js/ModuleLoader.zig#L861>): `Bun__fetchBuiltinModule`
- [`ModuleLoader.cpp:971`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/src/bun.js/bindings/ModuleLoader.cpp#L971>): `JSC::JSValue Bun::fetchESMSourceCode<true>`
- [`ModuleLoader.cpp:1200`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/src/bun.js/bindings/ModuleLoader.cpp#L1200>): `Bun::fetchESMSourceCodeAsync`
- [`ZigGlobalObject.cpp:3404`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/src/bun.js/bindings/ZigGlobalObject.cpp#L3404>): `Zig::GlobalObject::moduleLoaderFetch`
- [`JSModuleLoader.cpp:277`](<https://github.com/oven-sh/WebKit/blob/bun-0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/Source/JavaScriptCore/runtime/JSModuleLoader.cpp#L277>): `JSC::JSModuleLoader::fetch`
- [`JSModuleLoader.cpp:509`](<https://github.com/oven-sh/WebKit/blob/bun-0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/Source/JavaScriptCore/runtime/JSModuleLoader.cpp#L509>): `JSC::moduleLoaderFetch`
- *1 unknown/js code*
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/0aa3dbc9ae7d49f06ec39f09667ae262c590ba57/ld-temp.o#L0>): `llint_op_call`
Features: standalone\_executable, claude\_code, jsc, no\_avx2, no\_avx
Steps to Reproduce
Just install claude and run it.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.112
Claude Code Version
2.1.119
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗