Skip to content

Fatal error after running the script #1

@popescun

Description

@popescun

What

Following error is reported when running a script:

popescun@Mac  ~/github/jsrt   main  jsrt samples/test/test.js
EmbeddedNode::Start...
jsrt_core Bind...
include module1
module1 Bind...
module1 onincluded...
include module2
module2 Bind...
module2 onincluded...
include dummy
dummy onincluded...
Hello World!
Good bye World!
Dummy says hello!
x handle=39909007288


#
# Fatal error in , line 0
# Check failed: group->reference_count_.load() == 1.
#
#
#
#FailureMessage Object: 0x16b98eba8
----- Native stack trace -----

 1: 0x10bbae800 node::NodePlatform::GetStackTracePrinter()::$_0::__invoke() [/Users/popescun/github/jsrt/deps/node/out/Release/libnode.137.dylib]
 2: 0x10ce40884 V8_Fatal(char const*, ...) [/Users/popescun/github/jsrt/deps/node/out/Release/libnode.137.dylib]
 3: 0x10d574a68 v8::internal::IsolateGroup::TearDownOncePerProcess() (.cold.2) [/Users/popescun/github/jsrt/deps/node/out/Release/libnode.137.dylib]
 4: 0x10c5c27f4 v8::internal::IsolateGroup::TearDownOncePerProcess() [/Users/popescun/github/jsrt/deps/node/out/Release/libnode.137.dylib]
 5: 0x10c5c391c v8::internal::V8::Dispose() [/Users/popescun/github/jsrt/deps/node/out/Release/libnode.137.dylib]
 6: 0x10c2a8684 v8::V8::Dispose() [/Users/popescun/github/jsrt/deps/node/out/Release/libnode.137.dylib]
 7: 0x104478fc4 jsrt::EmbeddedNode::Start(int, char**) [/Users/popescun/github/jsrt/build/output/bin/macos_arm64/Release/jsrt]
 8: 0x1896b9d54 start [/usr/lib/dyld]
[1]    48800 trace trap  /Users/popescun/github/jsrt/build/output/bin/macos_arm64/Release/jsrt 

If running the debug version it prints the apparent crash log:

#
# Fatal error in ../deps/v8/src/wasm/wasm-engine.cc, line 578
# Debug check failed: isolates_.empty().
#
#
#
#FailureMessage Object: 0x16d7aa8f8
----- Native stack trace -----

 1: 0x11173cec0 node::DumpNativeBacktrace(__sFILE*) [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
 2: 0x1119c4838 node::NodePlatform::GetStackTracePrinter()::$_0::operator()() const [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
 3: 0x1119c47f4 node::NodePlatform::GetStackTracePrinter()::$_0::__invoke() [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
 4: 0x1137d7478 V8_Fatal(char const*, int, char const*, ...) [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
 5: 0x1137d6d84 v8::base::SetFatalFunction(void (*)(char const*, int, char const*)) [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
 6: 0x11368f7f4 v8::internal::wasm::WasmEngine::~WasmEngine() [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
 7: 0x11369984c v8::internal::wasm::WasmEngine::GlobalTearDown() [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
 8: 0x112a7126c v8::internal::V8::Dispose() [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
 9: 0x1124f54dc v8::V8::Dispose() [/Users/popescun/github/jsrt/deps/node/out/Debug/libnode.137.dylib]
10: 0x10266be04 jsrt::EmbeddedNode::Start(int, char**) [/Users/popescun/github/jsrt/build/output/bin/macos_arm64/Debug/jsrt]
11: 0x102655390 main [/Users/popescun/github/jsrt/build/output/bin/macos_arm64/Debug/jsrt]
12: 0x1896b9d54 start [/usr/lib/dyld]
[1]    49206 trace trap  /Users/popescun/github/jsrt/build/output/bin/macos_arm64/Debug/jsrt 

Why

How

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions