-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Labels
bun:serveBun.serve and HTTP serverBun.serve and HTTP servercrashAn issue that could cause a crashAn issue that could cause a crashcrash reporter bugthe stack trace given does not seem to be validthe stack trace given does not seem to be validlinuxAn issue that occurs on LinuxAn issue that occurs on Linuxruntime
Description
How can we reproduce the crash?
Unfortunately, the crash happens non-deterministically. I'm running a WebSocket server using Hono with Bun’s native HTTP and WebSocket APIs. The server can run fine for hours before crashing.
- WebSocket clients connect and send messages (up to dozens of concurrent connections)
- Each message may trigger internal logic
- The Bun process crashes spontaneously, with no consistent pattern
- Memory usage seems fine (~100–200MB)
Relevant log output
============================================================
Bun v1.2.19 (aad3abea) Linux x64 (baseline)
Linux Kernel v6.12.22 | musl
CPU: sse42 popcnt avx avx2 avx512
Args: "bun" "src/index.ts"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) abort_signal(144) fetch(82) http_server jsc spawn tsconfig(6) tsconfig_paths process_dlopen
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:os" "node:path" "node:process" "node:querystring" "node:stream" "node:string_decoder" "node:tty" "node:url" "node:util" "node:worker_threads" "node-fetch" "node:http2" "node:cluster"
Elapsed: 14790663ms | User: 46461ms | Sys: 22095ms
RSS: 0.89GB | Peak: 0.14GB | Commit: 0.89GB | Faults: 86 | Machine: 8.00GB
panic: Segmentation fault at address 0x10
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.2.19/Ba1aad3abewhBuhk0ggCu0t3rEA2AgB
error: script "start" was terminated by signal SIGILL (Illegal instruction)
$ bun src/index.tsStack Trace (bun.report)
Bun v1.2.19 (aad3abe) on linux x86_64_baseline [RunCommand]
Segmentation fault at address 0x000000A0
RefCounted.h:137:JSC::OpSetFunctionName::dump
Features: process_dlopen, s3, Bun.stderr, Bun.stdin, Bun.stdout, fetch, http_server, jsc, spawn
Sentry Issue: BUN-RKT
jackmcintire and finnatsea
Metadata
Metadata
Assignees
Labels
bun:serveBun.serve and HTTP serverBun.serve and HTTP servercrashAn issue that could cause a crashAn issue that could cause a crashcrash reporter bugthe stack trace given does not seem to be validthe stack trace given does not seem to be validlinuxAn issue that occurs on LinuxAn issue that occurs on Linuxruntime