Skip to content

[BUG] Crash: "Illegal instruction" (Bun panic) after extended use - memory leak (~20GB RSS) #26174

@tytnetmesta

Description

@tytnetmesta

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code crashes with "Illegal instruction" error after less than 1 hour of use.

Symptoms:

  • Applications freeze
  • White screens appear
  • Complete system hang requiring force quit

Frequency: 2 crashes today within hours of each other

Crash details from console:

  • Error: panic(main thread): Illegal instruction at address 0x7FF60CC90CFB
  • Memory at crash: 20.52GB RSS, 70GB virtual memory commit
  • Page faults: 8,631,806
  • Elapsed: ~13 minutes of runtime before crash

What Should Happen?

Claude Code should remain stable during normal use without:

  • Unbounded memory growth
  • System crashes
  • Application freezes

Error Messages/Logs

"claude"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) abort_signal(46) fetch(180) jsc spawn(217) standalone_executable proc
ess_dlopen
Builtins: "bun:main" "node: assert" "node: async_hooks" "node: buffer" "node:child_process" "node:constants" "node:crypto"
"node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node: module" "node:net" "node:os" "node: path" "node
: path/posix" "node: path/win32" "node: perf_hooks" "node: process" "node: stream" "node: timers/promises" "node:tls" "node:tt
y" "node:url" "node:util" "node:zlib" "node: worker_threads" "undici" "ws" "node:http2"
Elapsed: 784286ms | User: 93843ms | Sys: 49906ms
RSS: 20.52GB | Peak: 21.39GB | Commit: 0.07TB | Faults: 8631806 | Machine: 34.28GB
panic(main thread): Illegal instruction at address 0x7FF60CC90CFB
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.9/e_26d2fefbmgEuhogC2vms2C0qyqtC67gnxCmq/mxCgj1mxCyr3j78215sCy1wniD_A3s//B2vmk5M

Steps to Reproduce

  1. Start Claude Code on Windows 10.0.26100.7840
  2. Work with code normally for less than 1 hour
  3. Use various Claude Code features (editing, running commands, etc.)
  4. After ~13 minutes runtime: system freezes, applications show white screens
  5. Force quit required
  6. Check console - shows "Illegal instruction" panic with 20GB+ memory usage

Note: Unable to identify specific triggering action - appears to happen during normal use.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.41 (Claude Code)

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Bundled Bun version: 1.3.9 (based on crash log)

System specs:

  • Machine total RAM: 34.28GB
  • Available at crash: minimal (most consumed by Claude Code)

Screenshot of crash log attached below:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions