bun
bun copied to clipboard
Segmentation fault
How can we reproduce the crash?
I'm not sure if I can reproduce it. I'm building a multiplayer game using socket.io in TypeScript. The server suddenly crashed when I loaded the page in the browser. It never happened before.
JavaScript/TypeScript code that reproduces the crash?
The project is here: https://github.com/dupunkto/oblikvo
Relevant log output
Serving './public' on http://localhost:4000
Receiving disconnect
A client left the game.
============================================================
Bun v1.1.7 (b0b7db5c) macOS Silicon
Args: "bun", "--hot", "src/server/main.ts"
Features: jsc http_server transpiler_cache(7) tsconfig(8)
Builtins: "bun:main" "node:async_hooks" "node:buffer" "node:crypto" "node:events" "node:fs" "node:http" "node:net" "node:path" "node:querystring" "node:stream" "node:string_decoder" "node:timers" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "ws"
Elapsed: 163701ms | User: 11545ms | Sys: 9803ms
RSS: 0.14GB | Peak: 0.14GB | Commit: 0.93GB | Faults: 66
panic(main thread): Segmentation fault at address 0x8
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Stack Trace (bun.report)
Bun v1.1.7 (b0b7db5) on macos aarch64 [AutoCommand]
Segmentation fault at address 0x00000008
- 2 unknown/js code
JSC::InlineCacheCompiler::regenerateJSC::StructureStubInfo::addAccessCaseJSC::repatchGetByoperationGetByIdOptimize- 3 unknown/js code
llint_entry
It happened again:
It happened after refreshing the page in the browser (again).
try upgrading the Bun version maybe it will help
Yeah, this one should be fixed due to https://github.com/WebKit/WebKit/pull/28106 which is included in Bun v1.1.8