Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #10992

Closed
RobinBoers opened this issue May 10, 2024 · 3 comments
Closed

Segmentation fault #10992

RobinBoers opened this issue May 10, 2024 · 3 comments
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@RobinBoers
Copy link

RobinBoers commented May 10, 2024

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::regenerate
  • JSC::StructureStubInfo::addAccessCase
  • JSC::repatchGetBy
  • operationGetByIdOptimize
  • 3 unknown/js code
  • llint_entry
@RobinBoers RobinBoers added bug Something isn't working crash An issue that could cause a crash labels May 10, 2024
@RobinBoers
Copy link
Author

It happened again:

image

It happened after refreshing the page in the browser (again).

@Polygons1
Copy link

try upgrading the Bun version maybe it will help

@Jarred-Sumner
Copy link
Collaborator

Yeah, this one should be fixed due to WebKit/WebKit#28106 which is included in Bun v1.1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash
Projects
None yet
Development

No branches or pull requests

3 participants