Closed renat2985 closed 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
Sorry you're running into this. Does your app also use WebSockets? (client or server?)
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
@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.
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
Stack Trace (bun.report)
Bun v1.1.22 (
df33f2b
) on linux x86_64 [AutoCommand]Segmentation fault at address 0x00000002
ld-temp.o:0
:llint_call_javascript
ld-temp.o:0
:JSC::Interpreter::executeCall
ld-temp.o:0
:JSC::profiledCall
bindings.cpp:2424
:JSObjectCallAsFunctionReturnValue
bindings.zig:3798
:src.deps.uws.AnyWebSocket.cork__anon_113864.Wrapper.wrap
MoveOnlyFunction.h:247
:uws_ws_cork
uws.zig:0
:src.deps.uws.WebSocketBehavior.Wrap
MoveOnlyFunction.h:247
:uWS::WebSocketContext<false, true, void*>::handleFragment