-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Segfault when calling Server#fetch with .routes
#18077
Labels
Comments
Ah, I think I misunderstood what |
I'm not sure what |
@RiskyMH I thought I could use it to test my server, which I've done in the past (I think?) when using |
Simple reproduction: const s = Bun.serve({
port: 3000,
routes: {
'/': new Response('Hey'),
},
});
const res = await s.fetch('http://localhost:3000/'); // also fails using `/` as url
console.log(await res.text()); |
.routes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
How can we reproduce the crash?
I'm trying to write tests using
server.fetch(request)
. The server file only has this:This segmentation fault happens when calling
server.fetch(request)
.Relevant log output
Stack Trace (bun.report)
Bun v1.2.5 (
013fddd
) on macos aarch64 [TestCommand]Segmentation fault at address 0x00000000
DebugHTTPSServerPrototype__doFetch
DebugHTTPSServerPrototype__doFetch
WebCore::DebugHTTPServerPrototype__fetchCallback
jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__666_callHelper__dispatch_LowLevelInterpreter64_asm_2535
jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__666_callHelper__dispatch_LowLevelInterpreter64_asm_2535
jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__684_callHelper__dispatch_LowLevelInterpreter64_asm_2535
llint_call_javascript
JSC::Interpreter::executeCall
Features: tsconfig, tsconfig_paths, http_server, jsc
Sentry Issue: BUN-D2G
The text was updated successfully, but these errors were encountered: