Skip to content

Segfault in Bun v1.3.11 on macOS ARM64: JSHash.cpp jsHashProtoFuncUpdate crash #28024

Closed

Description

@JohnGalt017

Environment

  • Bun version: 1.3.11 (01210fb)
  • OS: macOS v15.3 (Silicon / ARM64)
  • CPU: neon fp aes crc32 atomics
  • RAM: 17.18GB

Crash Report

Crash report URL: https://bun.report/1.3.11/M_101210fbmgkgE+hogD_2+x1pB22ntiBuqx1sB+n/6tB____u7qtlDuoxvwCu+uvwC+/1rwCml140Cu2z4rB__u7qtlDmty3oCmmqwtCA2im3xuoDim4ltuB

Description

Bun crashed with a segmentation fault at address 0x68746E612E697061 (decodes to api.anth in ASCII — appears to be crashing during an Anthropic API call from Claude Code).

The crash occurred after a long session (~16331 seconds elapsed, ~281364ms user time).

Crash Output

panic(main thread): Segmentation fault at address 0x68746E612E697061

Stack Trace Summary

The crash originated in:

  • mi_malloc (memory allocation in prim.h)
  • Bun__encoding__constructFromLatin1
  • JSHash.cpp:177 (jsHashProtoFuncUpdate)

Suggests a memory allocation issue when updating a hash object with Latin-1 encoded data after extended runtime.

Steps to Reproduce

Running Claude Code CLI (bun claude) for an extended session (~4.5 hours). Crash occurred during an API request.

Additional Info

  • RSS at crash: 0.31GB | Peak: 0.52GB
  • Elapsed: 16331467ms (long-running process)
  • The crash may be related to memory state after extended uptime

Activity

  1. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor

    Found 2 possible duplicate issues:

    1. bun crash while running claude code #21353
    2. Segmentation fault (address 0x28) on macOS Silicon after ~3min runtime when running Claude Code #27790

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  2. added a commit that references this issue on Mar 12, 2026
    0769de6
  3. added a commit that references this issue on Mar 13, 2026
    fbec8c9
  4. added a commit that references this issue on Mar 13, 2026
    7c00cce
  5. added a commit that references this issue on Apr 25, 2026
    970b0a9
  6. added a commit that references this issue on May 14, 2026
    808ffbf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions