node_mksnapshot(80717,0x20149f840) malloc: nano zone abandoned due to inability to reserve vm space.
AddressSanitizer:DEADLYSIGNAL
=================================================================
==80717==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0002771e34e4 bp 0x00016d5c1eb0 sp 0x00016d5c1e00 T0)
==80717==The signal is caused by a WRITE memory access.
==80717==Hint: address points to the zero page.
#0 0x2771e34e4 in __asan_get_shadow_mapping+0x14 (libsystem_sanitizers.dylib:arm64e+0x44e4)
#1 0x10316e940 in node::InitializeOncePerProcessInternal(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&, node::ProcessInitializationFlags::Flags) node.cc:1178
#2 0x10316d06c in node::InitializeOncePerProcess(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&, node::ProcessInitializationFlags::Flags) node.cc:1221
#3 0x102f9b6e0 in BuildSnapshot(int, char**) node_mksnapshot.cc:65
#4 0x19c008270 (<unknown module>)
==80717==Register values:
x[0] = 0x000000016d5c1e20 x[1] = 0x0000000000000000 x[2] = 0x000000000000060c x[3] = 0x000000702dad82dc
x[4] = 0x000000702dad7f40 x[5] = 0x0000000000000001 x[6] = 0x00000001695c8000 x[7] = 0x0000000000000001
x[8] = 0x0000000000000000 x[9] = 0x0000000000000000 x[10] = 0x0000000106da9404 x[11] = 0x0000000000000003
x[12] = 0x000000010ca7bf20 x[13] = 0x0000000000000000 x[14] = 0x0000000000000000 x[15] = 0x000010700001ffff
x[16] = 0x00000002771e34d0 x[17] = 0x000000010fcf45e0 x[18] = 0x0000000000000000 x[19] = 0x000000016d5c1e40
x[20] = 0x0000000000000000 x[21] = 0x0000000000000000 x[22] = 0x000000016d5c1e20 x[23] = 0x000000016d5c1e00
x[24] = 0x000000702dad83c0 x[25] = 0x0000007000020000 x[26] = 0x000000016d5c2010 x[27] = 0x000000002194f7e4
x[28] = 0x0000007000020000 fp = 0x000000016d5c1eb0 lr = 0x0000000106da94c4 sp = 0x000000016d5c1e00
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (libsystem_sanitizers.dylib:arm64e+0x44e4) in __asan_get_shadow_mapping+0x14
==80717==ABORTING
/bin/sh: line 1: 80717 Abort trap: 6 "/Users/codebytere/Developer/node/out/Release/node_mksnapshot" "/Users/codebytere/Developer/node/out/Release/obj/gen/node_snapshot.cc"
make[1]: *** [/Users/codebytere/Developer/node/out/Release/obj/gen/node_snapshot.cc] Error 134
rm dc7b10542b51f7aefb79da9839d02284c5cf142d.intermediate 95f5d41ef1e5251cb9c0f66ecb0379795d352418.intermediate ab7861fd73cbdd09111883c2412cd499c35872cd.intermediate 35112d31ecc40f37aeca48f1d0d46ace17a2d5c4.intermediate
make: *** [node] Error 2
Version
mainPlatform
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior? Why is that the expected behavior?
The build to complete successfully.
What do you see instead?
With ninja
With ninja
With Cmake
Additional information
I can get it to build if i pass
--without-node-snapshot, but then i hit the same runtime issue as @bnoordhuis.