Open KhanKudo opened 1 week ago
@KhanKudo, the latest version of Bun is v1.1.27, but this crash was reported on Bun v1.1.26.
Are you able to reproduce this crash on the latest version of Bun?
bun upgrade
I have just updated and will be on the lookout for crashes, though I've used bun for a while and this is the first time I've encountered such a crash. Might be rare, definitely not a priority, but worth documenting
I feel like I have a similar or same issue on Windows, in bun 1.1.27, too. I can produce a crash in a packaged app (single-file executable), but not when it is run from sources, and I don't know how to debug it. Piping stdout/stderr with sausage.exe > log.txt 2>&1
doesn't display any crash messages :c
How can we reproduce the crash?
I was reloading the website a few times in relatively quick succession (1-2 seconds in between, 3-4 times in a row) and then it stopped loading.
Code is simple: `fastify.after(() => { if (useAuth) fastify.addHook('onRequest', fastify.basicAuth)
})`
just a static serve using fastify.
And I also have some api endpoints, which don't do anything major, just deliver a rest-api and call make some mongoose calls. It crashed while it was partway through loading the files. I'm not sure if the general static-serving or some part of the api-handling caused the crash.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.26 (
0a37423
) on windows x86_64 [RunCommand]panic: cast causes pointer to be null
bun.zig:284
:cast
queue.h:33
:uv__queue_empty
req-inl.h:189
:uv__process_reqs
core.c:657
:uv_run
event_loop.zig:1459
:autoTickActive
bindings.cpp:5039
:JSC__VM__holdAPILock
shimmer.zig:197
:cppFn
run_command.zig:1397
:exec
cli.zig:1863
:start
cli.zig:62
:start