Comments (2)
This issue is potentially related to #6946 - however I'm able to reliably reproduce the crash with the setup reported in this issue, while 6946's setup seems to only segfault ~30% of the time.
from bun.
Debug logs
ASSERTION FAILED: m_moduleEnvironment
/Users/runner/work/WebKit/WebKit/Source/JavaScriptCore/runtime/AbstractModuleRecord.h(148) : JSModuleEnvironment *JSC::AbstractModuleRecord::moduleEnvironment()
1 0x1036053d0 WTFCrash
2 0x102dd9240 JSC::constructEmptyObject(JSC::JSGlobalObject*)
3 0x1046d0dd4 JSC::JSScope::abstractResolve(JSC::JSGlobalObject*, unsigned long, JSC::JSScope*, JSC::Identifier const&, JSC::GetOrPut, JSC::ResolveType, JSC::InitializationMode)
4 0x1039baf2c JSC::CodeBlock::finishCreation(JSC::VM&, JSC::ScriptExecutable*, JSC::UnlinkedCodeBlock*, JSC::JSScope*)
5 0x10480ce94 JSC::ModuleProgramCodeBlock::create(JSC::VM&, JSC::ModuleProgramExecutable*, JSC::UnlinkedModuleProgramCodeBlock*, JSC::JSScope*)
6 0x10480c28c JSC::ScriptExecutable::newCodeBlockFor(JSC::CodeSpecializationKind, JSC::JSFunction*, JSC::JSScope*)
7 0x10480d99c JSC::ScriptExecutable::prepareForExecutionImpl(JSC::VM&, JSC::JSFunction*, JSC::JSScope*, JSC::CodeSpecializationKind, JSC::CodeBlock*&)
8 0x10423a79c JSC::Interpreter::executeModuleProgram(JSC::JSModuleRecord*, JSC::ModuleProgramExecutable*, JSC::JSGlobalObject*, JSC::JSModuleEnvironment*, JSC::JSValue, JSC::JSValue)
9 0x104690698 JSC::JSModuleRecord::evaluate(JSC::JSGlobalObject*, JSC::JSValue, JSC::JSValue)
10 0x104472e58 JSC::AbstractModuleRecord::evaluate(JSC::JSGlobalObject*, JSC::JSValue, JSC::JSValue)
11 0x102e54a28 Zig::GlobalObject::moduleLoaderEvaluate(JSC::JSGlobalObject*, JSC::JSModuleLoader*, JSC::JSValue, JSC::JSValue, JSC::JSValue, JSC::JSValue, JSC::JSValue)
12 0x10468adb0 JSC::JSModuleLoader::evaluate(JSC::JSGlobalObject*, JSC::JSValue, JSC::JSValue, JSC::JSValue, JSC::JSValue, JSC::JSValue)
13 0x117a2c03c 12 ??? 0x0000000117a2c03c 0x0 + 4691509308
14 0x104e2d3a0 llint_entry
15 0x104e2d3ec llint_entry
16 0x104e2c070 llint_entry
17 0x104e2bffc llint_entry
18 0x104e2bffc llint_entry
19 0x104e2d3a0 llint_entry
20 0x104e05cb4 vmEntryToJavaScript
21 0x104238bbc JSC::Interpreter::executeCallImpl(JSC::VM&, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
22 0x10468490c JSC::runJSMicrotask(JSC::JSGlobalObject*, WTF::ObjectIdentifierGeneric<JSC::MicrotaskIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits>, JSC::JSValue, JSC::JSValue, JSC::JSValue, JSC::JSValue, JSC::JSValue)
23 0x1048ae1f0 JSC::VM::drainMicrotasks()
24 0x102e6a754 Zig::GlobalObject::drainMicrotasks()
25 0x102e6a780 JSC__JSGlobalObject__drainMicrotasks
26 0x1011b6458 src.bun.js.event_loop.EventLoop.drainMicrotasksWithGlobal
27 0x101666f7c src.bun.js.event_loop.EventLoop.tickQueueWithCount__anon_168896
28 0x1011b62f8 src.bun.js.event_loop.EventLoop.tickWithCount
29 0x100dac434 src.bun.js.event_loop.EventLoop.tick
30 0x10177df14 src.bun.js.event_loop.EventLoop.waitForPromise
31 0x1012a17d8 src.bun.js.javascript.VirtualMachine.waitForPromise
fish: Job 1, 'bun-debug 1.ts' terminated by signal SIGSEGV (Address boundary error)
from bun.
Related Issues (20)
- Segmentation fault on sharp HOT 6
- `bun ci` as shortcut for `bun i --frozen-lockfile`
- Crash in TS experimental decorators due to missing error check
- This can be closed
- Crash HOT 2
- bun not run using astro
- Bun can't handle image file sent from .net 8 in form data
- can bun runtime run pnpm?
- Cannot load DLL for leveldown HOT 1
- Huge date problem, makes tests fails whereas in jest they work properly HOT 1
- `bun run index.ts` ignores module in package.json
- Crash with the bun update --latest
- Duplicate "graphql" modules error running a single-file executable built with `bun build` when using yoga or apollo HOT 1
- Panicked while trying to install dependencies HOT 1
- using an array with `test.each` causes the test to hang/timeout HOT 1
- Bun run got Segmentation fault Error HOT 1
- Blob constructor `endings` option doen't work.
- Basic happy-dom load url not working: TypeError: this.window.requestAnimationFrame is not a function.
- My Bun App Crashed HOT 1
- Error: Bun failed to remap this bin to its proper location
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bun.