oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.62k stars 2.72k forks source link

llint_call_javascript CRASH #13311

Closed renat2985 closed 1 month ago

renat2985 commented 1 month ago

How can we reproduce the crash?

For about 5 months now, every new version works for 6-8 days and crashes. I only use "bun:main" "bun:sqlite". It's very sad that BUN is still so green and unstable.

Relevant log output

Bun Canary v1.1.22-canary.96 (df33f2b2) Linux x64
Linux Kernel v5.4.0 | glibc v2.31
CPU: sse42 popcnt avx avx2
Features: jsc fetch(11) http_server 
Builtins: "bun:main" "bun:sqlite" 
Elapsed: 644681051ms | User: 948747ms | Sys: 2171860ms
RSS: 1.07GB | Peak: 0.22GB | Commit: 1.07GB | Faults: 0

panic(main thread): Segmentation fault at address 0x2
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:

Stack Trace (bun.report)

Bun v1.1.22 (df33f2b) on linux x86_64 [AutoCommand]

Segmentation fault at address 0x00000002

github-actions[bot] commented 1 month ago

@renat2985, the latest version of Bun is v1.1.23, but this crash was reported on Bun v1.1.22.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade
Electroid commented 1 month ago

Sorry you're running into this. Does your app also use WebSockets? (client or server?)

renat2985 commented 1 month ago

Sorry you're running into this. Does your app also use WebSockets? (client or server?)

Server. I posted the main code fragments some time ago here: https://github.com/oven-sh/bun/issues/11907#issuecomment-2171576768

Jarred-Sumner commented 1 month ago

@renat2985 please try again in Bun v1.1.25

A crash could occur in ws.cork(fn) when the function threw an exception. #13319 fixed that crash.