Git Product home page Git Product logo

Comments (2)

pythonmcpi avatar pythonmcpi commented on June 12, 2024

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.

Jarred-Sumner avatar Jarred-Sumner commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.