[BUG] crash during garbage collection...

Resolved 💬 1 comment Opened Jun 5, 2025 by docdailey Closed Jun 5, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ X] Other: <!-- specify -->Mad claude code
  • Claude CLI version: <!-- output of claude --version -->1.011
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->macOS Sequoia 15.5
  • Terminal: <!-- e.g. iTerm2, Terminal App --> Terminal

Bug Description

Crash:

<--- Last few GCs --->

[24595:0x140030000] 2329996 ms: Mark-Compact 3781.5 (4114.1) -> 3765.4 (4113.6) MB, pooled: 18 MB, 72.38 / 0.00 ms (average mu = 0.191, current mu = 0.165) allocation failure; scavenge might not succeed
[24595:0x140030000] 2330078 ms: Mark-Compact 3782.5 (4114.9) -> 3766.7 (4115.1) MB, pooled: 16 MB, 64.88 / 0.00 ms (average mu = 0.197, current mu = 0.204) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

1: 0x102d71f0c node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
2: 0x102f1dca4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
3: 0x1030dace8 v8::internal::Heap::CallGCPrologueCallbacks(v8::GCType, v8::GCCallbackFlags, v8::internal::GCTracer::Scope::ScopeId) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
4: 0x1030e0780 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1::operator()() const [/opt/homebrew/Cellar/node/23.11.0/bin/node]
5: 0x1030db02c void heap::base::Stack::SetMarkerAndCallbackImpl<v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1>(heap::base::Stack, void, void const*) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
6: 0x102c84028 PushAllRegistersAndIterateStack [/opt/homebrew/Cellar/node/23.11.0/bin/node]
7: 0x1030d7f14 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
8: 0x1030d1968 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
9: 0x1030d2330 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
10: 0x1030be608 v8::internal::MaybeHandle<v8::internal::SeqTwoByteString> v8::internal::FactoryBase<v8::internal::Factory>::NewRawStringWithMap<v8::internal::SeqTwoByteString>(int, v8::internal::Tagged<v8::internal::Map>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
11: 0x1032e1bd8 v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handle<v8::internal::ConsString>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
12: 0x1032e036c v8::internal::StringTable::LookupString(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
13: 0x10338d83c v8::internal::Runtime_GetProperty(int, unsigned long, v8::internal::Isolate) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
14: 0x102b639f4 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/23.11.0/bin/node]
15: 0x10bbdddcc
16: 0x10b8e0b64
17: 0x10bd6f818
18: 0x10b914f1c
19: 0x10bb6eec0
20: 0x10bc55ddc
21: 0x10bd0050c
22: 0x10ba144d8
23: 0x10b930ce4
24: 0x10be2e4a0
25: 0x10be485c8
26: 0x10bca9b74
27: 0x102b09e20 Builtins_AsyncFunctionAwaitResolveClosure [/opt/homebrew/Cellar/node/23.11.0/bin/node]
28: 0x102bd7298 Builtins_PromiseFulfillReactionJob [/opt/homebrew/Cellar/node/23.11.0/bin/node]
29: 0x102af9214 Builtins_RunMicrotasks [/opt/homebrew/Cellar/node/23.11.0/bin/node]
30: 0x102aca3f0 Builtins_JSRunMicrotasksEntry [/opt/homebrew/Cellar/node/23.11.0/bin/node]
31: 0x10304fbe0 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
32: 0x10305034c v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
33: 0x10307a900 v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate*) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
34: 0x102ace978 Builtins_CallApiCallbackGeneric [/opt/homebrew/Cellar/node/23.11.0/bin/node]
35: 0x10b56099c
36: 0x102aca50c Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/23.11.0/bin/node]
37: 0x102aca1b0 Builtins_JSEntry [/opt/homebrew/Cellar/node/23.11.0/bin/node]
38: 0x10304fc08 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
39: 0x10304f570 v8::internal::Execution::Call(v8::internal::Isolate, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
40: 0x102f347e4 v8::Function::Call(v8::Isolate, v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
41: 0x102c856d4 node::InternalCallbackScope::Close() [/opt/homebrew/Cellar/node/23.11.0/bin/node]
42: 0x102c85b94 node::InternalMakeCallback(node::Environment, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>, node::async_context, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
43: 0x102c9de08 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
44: 0x102e8bcd8 node::StreamBase::CallJSOnreadMethod(long, v8::Local<v8::ArrayBuffer>, unsigned long, node::StreamBase::StreamBaseJSChecks) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
45: 0x102e8bf5c node::EmitToJSStreamListener::OnStreamRead(long, uv_buf_t const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
46: 0x102f034e4 node::crypto::TLSWrap::ClearOut() [/opt/homebrew/Cellar/node/23.11.0/bin/node]
47: 0x102f03990 node::crypto::TLSWrap::Cycle() [/opt/homebrew/Cellar/node/23.11.0/bin/node]
48: 0x102f01fc0 node::crypto::TLSWrap::OnStreamRead(long, uv_buf_t const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
49: 0x102e92344 node::LibuvStreamWrap::OnUvRead(long, uv_buf_t const*) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
50: 0x102e9204c node::LibuvStreamWrap::ReadStart()::$_1::__invoke(uv_stream_s, long, uv_buf_t const) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
51: 0x106626e6c uv__stream_io [/opt/homebrew/Cellar/libuv/1.50.0/lib/libuv.1.dylib]
52: 0x10662e0e0 uv__io_poll [/opt/homebrew/Cellar/libuv/1.50.0/lib/libuv.1.dylib]
53: 0x10661df08 uv_run [/opt/homebrew/Cellar/libuv/1.50.0/lib/libuv.1.dylib]
54: 0x102c86488 node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
55: 0x102db943c node::NodeMainInstance::Run(node::ExitCode, node::Environment) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
56: 0x102db9190 node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/23.11.0/bin/node]
57: 0x102d30a58 node::Start(int, char**) [/opt/homebrew/Cellar/node/23.11.0/bin/node]
58: 0x18e6c2b98 start [/usr/lib/dyld]

Steps to Reproduce

I think it was compacting

Expected Behavior

Not crash

Actual Behavior

crash

Additional Context

Above

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗