Skip to content

Bun just randomly crashes after upgrading to v1.2.11 while running my Next.js app #19375

@Akumzy

Description

@Akumzy

How can we reproduce the crash?

Bun just randomly crashes after upgrading to v1.2.11 while running my Next.js app

  • I am using Bun S3, Prisma Next.js and many others

Relevant log output

Bun v1.2.11 (cb6abd21) macOS Silicon
macOS v15.4.1
CPU: fp aes crc32 atomics
Args: "/Users/xx/.bun/bin/bun" "/Users/xxx/xxx/xx/node_modules/next/dist/server/lib/start-server.js"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) dotenv fetch(23) http_server jsc spawn(133) transpiler_cache(390) tsconfig tsconfig_paths process_dlopen(26) s3(172) 
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:constants" "node:crypto" "node:dns" "node:dns/promises" "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:stream" "node:stream/web" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:vm" "node:zlib" "node:worker_threads" "ws" "node:v8" "node:http2" "node:diagnostics_channel" 
Elapsed: 11321234ms | User: 1061002ms | Sys: 2037198ms
RSS: 0.27GB | Peak: 1.52GB | Commit: 0.02ZB | Faults: 25445

panic: Segmentation fault at address 0x104A00000020
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.2.11 (cb6abd2) on macos aarch64 [AutoCommand]

Segmentation fault at address 0x104A00000020

  • 1 unknown/js code
  • JSC::SlotVisitor::drain(...)::$_0::operator()
  • JSC::SlotVisitor::drain(...)::$_0::operator()
  • JSC::SlotVisitor::drain
  • JSC::SlotVisitor::drainFromShared
  • WTF::SharedTaskFunctor<void (...)::$_1>::run
  • WTF::ParallelHelperClient::runTask
  • WTF::ParallelHelperPool::Thread::work
  • WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(...)::$_0, void>::call
  • WTF::Thread::entryPoint

Features: transpiler_cache, tsconfig, tsconfig_paths, process_dlopen, s3, Bun.stderr, Bun.stdin, Bun.stdout, dotenv, fetch, http_server, jsc, spawn

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashAn issue that could cause a crashecosystemSomething that relates to package or framework compatibilitymacOSAn issue that occurs on macOSregressionruntime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions