This issue involves a complex, intermittent segfault potentially tied to a V8 bug.
The issue describes an intermittent segfault occurring during test execution, likely related to garbage collection or the VM module. The maintainer feedback suggests this might be a known V8 bug fixed in Node 25.0.0 or later. The main challenge is the non-trivial reproducibility and the potential need for deep V8 expertise to address it.
24.10.0
Darwin HQX-LGM9L426J5 25.2.0 Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:40 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6000 arm64
GC, from the looks of it, maybe vm
It's unfortunately not trivially reproducible. We see this ~1/10 times running our un-cached build runner, primarily while executing tests (which use a combination of worker threads and the vm module)
As stated above, something like 1/10 times.
No segfault.
PID 22412 received SIGSEGV for address: 0xe
0 segfault-handler.node 0x0000000109630ee4 _ZL16segfault_handleriP9__siginfoPv + 288
1 libsystem_platform.dylib 0x0000000181a67744 _sigtramp + 56
2 node 0x00000001029e0280 _ZN2v88internal35ClearStaleLeftTrimmedPointerVisitor17VisitRootPointersENS0_4RootEPKcNS0_14FullObjectSlotES5_ + 80
3 node 0x00000001029278e4 _ZNK2v88internal13InternalFrame7IterateEPNS0_11RootVisitorE + 240
4 node 0x000000010292cbf8 _ZN2v88internal7Isolate7IterateEPNS0_11RootVisitorEPNS0_14ThreadLocalTopE + 364
5 node 0x00000001029e04ac _ZN2v88internal4Heap12IterateRootsEPNS0_11RootVisitorENS_4base7EnumSetINS0_8SkipRootEiEENS1_16IterateRootsModeE + 460
6 node 0x00000001029fefe4 _ZN2v88internal20MarkCompactCollector9MarkRootsEPNS0_11RootVisitorE + 56
7 node 0x00000001029fa96c _ZN2v88internal20MarkCompactCollector15MarkLiveObjectsEv + 968
8 node 0x00000001029fa514 _ZN2v88internal20MarkCompactCollector14CollectGarbageEv + 128
9 node 0x00000001029d94e8 _ZN2v88internal4Heap11M
Claim this issue to let others know you're working on it. You'll earn 30 points when you complete it!