claude-code
claude-code copied to clipboard
[BUG] claude crashed after working on a file for a while
Environment
- Platform (select one):
- Claude CLI version: claude --version
- Operating System: macOS 15.5
- Terminal: iTerm2
Bug Description
Crashed during usage. Here's the stacktrace:
<--- Last few GCs --->
[70961:0x140008000] 45364758 ms: Mark-Compact 3950.2 (4115.6) -> 3934.4 (4115.6) MB, pooled: 2 MB, 79.38 / 0.00 ms (average mu = 0.285, current mu = 0.174) allocation failure; scavenge might not succeed
[70961:0x140008000] 45364899 ms: Mark-Compact 3950.8 (4116.3) -> 3934.6 (4116.1) MB, pooled: 2 MB, 121.88 / 0.00 ms (average mu = 0.252, current mu = 0.134) 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: 0x1048d4398 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
2: 0x104a69104 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
3: 0x104c260d0 v8::internal::Heap::CallGCPrologueCallbacks(v8::GCType, v8::GCCallbackFlags, v8::internal::GCTracer::Scope::ScopeId) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
4: 0x104c2bb58 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1::operator()() const [/opt/homebrew/Cellar/node/23.7.0/bin/node]
5: 0x104c26414 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.7.0/bin/node]
6: 0x1047ec028 PushAllRegistersAndIterateStack [/opt/homebrew/Cellar/node/23.7.0/bin/node]
7: 0x104c23300 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
8: 0x104c1cd48 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
9: 0x104c1d710 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
10: 0x104c0e7c8 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
11: 0x104ed1510 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
12: 0x1046cb9f4 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/23.7.0/bin/node]
13: 0x10d394e38
14: 0x10cfdf7fc
15: 0x1046fa61c Builtins_ArrayMap [/opt/homebrew/Cellar/node/23.7.0/bin/node]
16: 0x10cfdad90
17: 0x10d115eb0
18: 0x10d30ab68
19: 0x10d75d564
20: 0x10d1c4a44
21: 0x10d412344
22: 0x10d7f9d64
23: 0x10d29d344
24: 0x10d778478
25: 0x10d697198
26: 0x104671e20 Builtins_AsyncFunctionAwaitResolveClosure [/opt/homebrew/Cellar/node/23.7.0/bin/node]
27: 0x10473f298 Builtins_PromiseFulfillReactionJob [/opt/homebrew/Cellar/node/23.7.0/bin/node]
28: 0x104661214 Builtins_RunMicrotasks [/opt/homebrew/Cellar/node/23.7.0/bin/node]
29: 0x1046323f0 Builtins_JSRunMicrotasksEntry [/opt/homebrew/Cellar/node/23.7.0/bin/node]
30: 0x104b9b010 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
31: 0x104b9b77c v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
32: 0x104bc5d18 v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate*) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
33: 0x104636978 Builtins_CallApiCallbackGeneric [/opt/homebrew/Cellar/node/23.7.0/bin/node]
34: 0x10cf760dc
35: 0x10463250c Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/23.7.0/bin/node]
36: 0x1046321b0 Builtins_JSEntry [/opt/homebrew/Cellar/node/23.7.0/bin/node]
37: 0x104b9b038 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
38: 0x104b9a9a0 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.7.0/bin/node]
39: 0x104a7fc30 v8::Function::Call(v8::Isolate*, v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
40: 0x1047ed6d8 node::InternalCallbackScope::Close() [/opt/homebrew/Cellar/node/23.7.0/bin/node]
41: 0x1047edb98 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.7.0/bin/node]
42: 0x104805c5c node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
43: 0x1049d89bc node::StreamBase::CallJSOnreadMethod(long, v8::Local<v8::ArrayBuffer>, unsigned long, node::StreamBase::StreamBaseJSChecks) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
44: 0x1049d8c40 node::EmitToJSStreamListener::OnStreamRead(long, uv_buf_t const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
45: 0x104a4ea10 node::crypto::TLSWrap::ClearOut() [/opt/homebrew/Cellar/node/23.7.0/bin/node]
46: 0x104a4eebc node::crypto::TLSWrap::Cycle() [/opt/homebrew/Cellar/node/23.7.0/bin/node]
47: 0x104a4d4ec node::crypto::TLSWrap::OnStreamRead(long, uv_buf_t const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
48: 0x1049df028 node::LibuvStreamWrap::OnUvRead(long, uv_buf_t const*) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
49: 0x1049ded30 node::LibuvStreamWrap::ReadStart()::$_1::__invoke(uv_stream_s*, long, uv_buf_t const*) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
50: 0x107f73af0 uv__stream_io [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
51: 0x107f7aca8 uv__io_poll [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
52: 0x107f6ab58 uv_run [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
53: 0x1047ee48c node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
54: 0x10491b6a8 node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
55: 0x10491b3fc node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/23.7.0/bin/node]
56: 0x1048949d8 node::Start(int, char**) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
57: 0x190c16b98 start [/usr/lib/dyld]
[1] 70961 abort claude
Steps to Reproduce
Expected Behavior
Actual Behavior
Additional Context
related and dup #1555
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.