Open LeizarM opened 1 month ago
Thanks for the bug report. Is there a chance you could publish your js sources and package.json
file so that we can reproduce the issue?
My project is here: https://github.com/LeizarM/clean-api.git
is very simple implementis, Elysia js, prisma and TS
I tried cloning the project and running bun dev
, but I unfortunately can't reproduce the issue
You try this ?
because I tried this before and ... crash
Line causing the error: https://github.com/oven-sh/bun/blob/bd632464a0fa14a9757ec56f5cfb30831fba99fe/src/bun.js/bindings/ZigGlobalObject.cpp#L1928
Call stack:
WTFCrashWithInfo(int, char const*, char const*, int) (/Users/jarred/Code/bun/src/bun.js/WebKit/WebKitBuild/Debug/WTF/Headers/wtf/Assertions.h:851)
JSC::JSFunction::jsExecutable() const (/Users/jarred/Code/bun/src/bun.js/WebKit/WebKitBuild/Debug/JavaScriptCore/PrivateHeaders/JavaScriptCore/JSFunctionInlines.h:77)
::ReadableStreamTag__tagged(Zig::GlobalObject *, JSC__JSValue *, void **) (/Users/jarred/Code/bun/src/bun.js/bindings/ZigGlobalObject.cpp:1928)
src.bun.js.webcore.streams.ReadableStream.fromJS (/Users/jarred/Code/bun/src/bun.js/webcore/streams.zig:252)
src.bun.js.webcore.body.Body.Value.fromJS (/Users/jarred/Code/bun/src/bun.js/webcore/body.zig:570)
src.bun.js.webcore.body.Body.extract (/Users/jarred/Code/bun/src/bun.js/webcore/body.zig:944)
ResponseClass__construct (/Users/jarred/Code/bun/src/bun.js/webcore/response.zig:491)
WebCore::JSResponseConstructor::construct(JSC::JSGlobalObject*, JSC::CallFrame*) (/Users/jarred/Code/bun/build/codegen/ZigGeneratedClasses.cpp:29983)
1194F4490 (@1194f4490..1194f4510:3)
In a release build:
parseMode (/Users/jarred/Code/bun/build-release/bun-webkit/include/JavaScriptCore/UnlinkedFunctionExecutable.h:89)
parseMode (/Users/jarred/Code/bun/build-release/bun-webkit/include/JavaScriptCore/FunctionExecutable.h:160)
isAsyncGenerator (/Users/jarred/Code/bun/build-release/bun-webkit/include/JavaScriptCore/FunctionExecutable.h:141)
::ReadableStreamTag__tagged() (/Users/jarred/Code/bun/src/bun.js/bindings/ZigGlobalObject.cpp:1928)
src.bun.js.webcore.streams.ReadableStream.fromJS (/Users/jarred/Code/bun/src/bun.js/webcore/streams.zig:252)
src.bun.js.webcore.body.Body.Value.fromJS (/Users/jarred/Code/bun/src/bun.js/webcore/body.zig:570)
src.bun.js.webcore.body.Body.extract (/Users/jarred/Code/bun/src/bun.js/webcore/body.zig:944)
ResponseClass__construct (/Users/jarred/Code/bun/src/bun.js/webcore/response.zig:491)
::construct() (/Users/jarred/Code/bun/build-release/codegen/ZigGeneratedClasses.cpp:29983)
138010490 (@138010490..138010510:3)
How can we reproduce the crash?
When I try call to api locally using bun with ElysiaJS show the next error ... please your help
Relevant log output
Stack Trace (bun.report)
Bun v1.1.6 (
e58d67b
) on windows x86_64 [RunCommand]Segmentation fault at address 0xFFFFFFFFFFFFFFFF
ZigGlobalObject__readableStreamToText
shimmer.zig:186
:cppFn
body.zig:562
:fromJS
shimmer.zig:186
:cppFn
??