-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
crashAn issue that could cause a crashAn issue that could cause a crashlinuxAn issue that occurs on LinuxAn issue that occurs on Linuxnode:streamruntime
Description
How can we reproduce the crash?
this is a compiled solid-js streaming ssr app:
import { renderToStream, ssr, ssrHydrationKey } from "solid-js/web";
var _tmpl$ = ["<h1", ">Home</h1>"];
function App() {
return ssr(_tmpl$, ssrHydrationKey());
}
Bun.serve({
fetch(req) {
const {
readable,
writable
} = new TransformStream();
renderToStream(App).pipeTo(writable);
return new Response(readable);
}
});this only happens when a request is aborted before the stream finishes. best way to reproduce it is running a benchmark and pressing ctrl+c to close it before it finishes.
this also happens in node:http:
error: Stream is already ended
code: "ERR_STREAM_ALREADY_FINISHED"
Stack Trace (bun.report)
Bun v1.2.6-canary (ba7f593) on linux x86_64 [AutoCommand]
Segmentation fault at address 0x02A6E820
memory_allocator.zig:31:bun.js.api.server.NewRequestContextserver.zig:2716:deps.uws.NewAppHttpContext.h:129:uWS::HttpContext<false>::init(...)::__invokesocket.c:218:us_socket_closeloop.c:448:us_loop_run_bun_tickevent_loop.zig:0:bun.js.event_loop.EventLoop.autoTickActivebun_js.zig:396:bun.js.javascript.OpaqueWrap__anon_35661__struct_242800.callbackbindings.cpp:5182:JSC__VM__holdAPILock
Features: tsconfig, tsconfig_paths, abort_signal, http_server, jsc
Sentry Issue: BUN-EAX
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
crashAn issue that could cause a crashAn issue that could cause a crashlinuxAn issue that occurs on LinuxAn issue that occurs on Linuxnode:streamruntime