bun icon indicating copy to clipboard operation
bun copied to clipboard

bun crashed "Segmentation fault"

Open scffs opened this issue 8 months ago • 4 comments

How can we reproduce the crash?

I wrote a simple code that only make requests to server in a while. It is possible that the crash is in PC lock mode (Control-Command-Q)

Relevant log output

Bun v1.1.13 (bd6a6051) macOS Silicon
Args: "bun" "run" "--hot" "src/main.js"
Features: jsc Bun.stdin(2) fetch(9964) transpiler_cache(8) tsconfig
Builtins: "bun:main" "node:assert" "node:buffer" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:net" "node:os" "node:process" "node:stream" "node:string_decoder" "node:timers" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib"
Elapsed: 7393199ms | User: 94868ms | Sys: 32311ms
RSS: 0.25GB | Peak: 0.27GB | Commit: 1.07GB | Faults: 1753

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

Stack Trace (bun.report)

Bun v1.1.13 (bd6a605) on macos aarch64 [RunCommand]

Segmentation fault at address 0x48C00F23C80

  • 2 unknown/js code
  • src.http.onWritable__anon_482057
  • src.deps.uws.NewSocketHandler
  • us_loop_run_bun_tick
  • src.http.HTTPThread.processEvents
  • Thread.PosixThreadImpl.spawn__anon_292305.Instance.entryFn
  • 2 unknown/js code

in the 1.1.12 version of bun this code works fine (all day without crashing)

scffs avatar Jun 18 '24 09:06 scffs