Skip to content

Crash when compiling application to target bun-windows-x64-modern with --bytecode #18307

@rmuller

Description

@rmuller

How can we reproduce the crash?

I cannot provide an example file. Crash only occurs when compiling with --bytecode option

Relevant log output

Stack Trace (bun.report)

Bun v1.2.5 (013fddd) on windows x86_64 [_]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

  • CachedTypes.cpp:1433: JSC::CachedJSValue::decode
  • CachedTypes.cpp:644: JSC::CachedVector<JSC::CachedJSValue,0,WTF::CrashOnOverflow,WTF::FastMalloc>::decode<JSC::UnlinkedCodeBlock *,WTF::FixedVector<JSC::WriteBarrier<JSC::Unknown,WTF::RawValueTraits<JSC::Unknown> >,WTF::FastMalloc> >
  • CachedTypes.cpp:640: JSC::CachedVector<JSC::SourceCodeRepresentation,0,WTF::CrashOnOverflow,WTF::FastMalloc>::decode
  • CachedTypes.cpp:2085: JSC::CachedProgramCodeBlock::decode
  • CachedTypes.cpp:530: JSC::CachedPtr<JSC::CachedProgramCodeBlock,JSC::UnlinkedProgramCodeBlock>::decode<>
  • CachedTypes.cpp:539: JSC::CachedPtr<JSC::CachedProgramCodeBlock,JSC::UnlinkedProgramCodeBlock>::decode
  • HeapInlines.h:180: JSC::Heap::decrementDeferralDepthAndGCIfNeeded
  • CachedTypes.h:121: JSC::decodeCodeBlock
  • CodeCache.h:104: JSC::CodeCacheMap::findCacheAndUpdateAge<JSC::UnlinkedProgramCodeBlock>
  • CodeCache.cpp:181: JSC::CodeCache::getUnlinkedGlobalCodeBlock<JSC::UnlinkedProgramCodeBlock,JSC::ProgramExecutable>

Features: dotenv, jsc, standalone_executable

Sentry Issue: BUN-DN5

Metadata

Metadata

Assignees

Labels

crashAn issue that could cause a crashwindowsAn issue that is known to occur on Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions