Skip to content

Assertion `(source_it) != (source_.end())' failed while doing make #39408

@gireeshpunathil

Description

@gireeshpunathil

Version

master

Platform

Linux 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

build

What steps will reproduce the bug?

$./configure
$make -j4

ACTION _home_gireesh_node_node_gyp_node_target_node_mksnapshot /home/gireesh/node/out/Release/obj/gen/node_snapshot.cc
/home/gireesh/node/out/Release/node_mksnapshot[660863]: ../src/node_native_module.cc:226:v8::MaybeLocal<v8::String> node::native_module::NativeModuleLoader::LoadBuiltinModuleSource(v8::Isolate*, const char*): Assertion `(source_it) != (source_.end())' failed.
 1: 0x55d5331d5ee4 node::Abort() [/home/gireesh/node/out/Release/node_mksnapshot]
 2: 0x55d5331d5f78  [/home/gireesh/node/out/Release/node_mksnapshot]
 3: 0x55d5333f8fdd node::native_module::NativeModuleLoader::LoadBuiltinModuleSource(v8::Isolate*, char const*) [/home/gireesh/node/out/Release/node_mksnapshot]
 4: 0x55d5333f95d1 node::native_module::NativeModuleLoader::LookupAndCompile(v8::Local<v8::Context>, char const*, std::vector<v8::Local<v8::String>, std::allocator<v8::Local<v8::String> > >*, node::native_module::NativeModuleLoader::Result*) [/home/gireesh/node/out/Release/node_mksnapshot]
 5: 0x55d533234649 node::native_module::NativeModuleEnv::LookupAndCompile(v8::Local<v8::Context>, char const*, std::vector<v8::Local<v8::String>, std::allocator<v8::Local<v8::String> > >*, node::Environment*) [/home/gireesh/node/out/Release/node_mksnapshot]
 6: 0x55d53336f36e node::InitializePrimordials(v8::Local<v8::Context>) [/home/gireesh/node/out/Release/node_mksnapshot]
 7: 0x55d53336f560 node::GetPerContextExports(v8::Local<v8::Context>) [/home/gireesh/node/out/Release/node_mksnapshot]
 8: 0x55d53336f2a0 node::InitializePrimordials(v8::Local<v8::Context>) [/home/gireesh/node/out/Release/node_mksnapshot]
 9: 0x55d53336f695 node::NewContext(v8::Isolate*, v8::Local<v8::ObjectTemplate>) [/home/gireesh/node/out/Release/node_mksnapshot]
10: 0x55d53327a4a9 node::SnapshotBuilder::Generate(node::SnapshotData*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) [/home/gireesh/node/out/Release/node_mksnapshot]
11: 0x55d53327b014 node::SnapshotBuilder::Generate(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) [/home/gireesh/node/out/Release/node_mksnapshot]
12: 0x55d532e05d7d main [/home/gireesh/node/out/Release/node_mksnapshot]
13: 0x7f89037610b3 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
14: 0x55d532e0e46e _start [/home/gireesh/node/out/Release/node_mksnapshot]
Aborted (core dumped)
make: *** [node.target.mk:26: /home/gireesh/node/out/Release/obj/gen/node_snapshot.cc] Error 134
rm 2561388a0ca6c2168de218f405f8f7b697c77862.intermediate 9d285d3140c975d071f47f872a2170cedfc46bc5.intermediate aaef1ed75da9c226afcc645ea47e3916fde6ec36.intermediate

How often does it reproduce? Is there a required condition?

everytime

What is the expected behavior?

node builds successfully

What do you see instead?

build crashes

Additional information

first time I am building in this system, so suspect something specific to build toolchain versions, resource limit etc. but cannot figure out what.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions