Open blecorre-mnp opened 2 months ago
Are you using macros? How’d it end up in JavaScript execution when using bun build?
Sorry wasn't clear here, we built the backend to JS using the build command then ran bun out/index.js
and got the error. I got it working by removing the --splitting
arg.
How can we reproduce the crash?
This issue happened while running out backend project built using the following:
bun build ./src/index.ts --target=bun --splitting --sourcemap --outdir=out
I unfortunately cannot setup a repo reproduction from our company code.
Relevant log output
No response
Stack Trace (bun.report)
Bun v1.1.13 (
bd6a605
) on macos aarch64 [AutoCommand]Segmentation fault at address 0x00000000
JSC::Structure* JSC::LazyProperty<JSC::JSGlobalObject, JSC::Structure>::callFunc<void JSC::LazyClassStructure::initLater<Zig::GlobalObject::initGeneratedLazyClasses(...)>(...)::'lambda0'(...) const&)::'lambda'(...)>
JSC::JSFunction* JSC::LazyProperty<JSC::JSGlobalObject, JSC::JSFunction>::callFunc<Zig::GlobalObject::finishCreation(...)::$_18>
JSC::JSFunction* JSC::LazyProperty<JSC::JSGlobalObject, JSC::JSFunction>::callFunc<Zig::GlobalObject::finishCreation(...)::$_19>
WTF::RefPtr<WTF::StringImpl, WTF::RawPtrTraits<WTF::StringImpl>, WTF::DefaultRefDerefTraits<WTF::StringImpl> > WTF::tryMakeStringImplFromAdaptersInternal<WTF::StringTypeAdapter<WTF::String, void>, WTF::StringTypeAdapter<WTF::PaddingSpecification<int>, void>, WTF::StringTypeAdapter<char, void>, WTF::StringTypeAdapter<WTF::PaddingSpecification<int>, void>, WTF::StringTypeAdapter<char, void>, WTF::StringTypeAdapter<WTF::PaddingSpecification<int>, void>, WTF::StringTypeAdapter<char, void>, WTF::StringTypeAdapter<WTF::PaddingSpecification<int>, void>, WTF::StringTypeAdapter<char, void>, WTF::StringTypeAdapter<WTF::PaddingSpecification<int>, void>, WTF::StringTypeAdapter<char, void>, WTF::StringTypeAdapter<WTF::PaddingSpecification<int>, void>, WTF::StringTypeAdapter<char, void>, WTF::StringTypeAdapter<WTF::PaddingSpecification<int>, void>, WTF::StringTypeAdapter<char, void> >
JSC::GigacageAlignedMemoryAllocator::tryReallocateMemory
JSC::BlockDirectory::addBlock
JSC::SlotVisitor** WTF::Vector<JSC::SlotVisitor*, 8ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>::expandCapacity<(...)0>
JSC::HeapSnapshotBuilder::json