[BUG] Hang and crash
Resolved 💬 2 comments Opened Jun 11, 2025 by evanphx Closed Jun 11, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.18 <!-- output of
claude --version--> - Operating System: Ubuntu oracular <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
- Terminal: Ghostty <!-- e.g. iTerm2, Terminal App -->
Bug Description
Returned and claude has hung and Control-C spit out this crash:
<--- Last few GCs --->
[2818726:0xaab758bf9c90] 19205412 ms: Mark-Compact (reduce) 2043.5 (2057.4) -> 2043.5 (2057.4) MB, 129.55 / 0.00 ms (average mu = 0.172, current mu = 0.008) last resort; GC in old space requested
[2818726:0xaab758bf9c90] 19205542 ms: Mark-Compact (reduce) 2043.5 (2057.4) -> 2043.5 (2057.4) MB, 129.52 / 0.00 ms (average mu = 0.090, current mu = 0.000) last resort; GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0xfff7a262f9f4 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/lib/aarch64-linux-gnu/libnode.so.115]
2: 0xfff7a2b5d0ec v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/lib/aarch64-linux-gnu/libnode.so.115]
3: 0xfff7a2b5d2ec v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/lib/aarch64-linux-gnu/libnode.so.115]
4: 0xfff7a2d8187c v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/aarch64-linux-gnu/libnode.so.115]
5: 0xfff7a2d61438 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/lib/aarch64-linux-gnu/libnode.so.115]
6: 0xfff7a2d51448 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [/lib/aarch64-linux-gnu/libnode.so.115]
7: 0xfff7a30929bc v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handle<v8::internal::ConsString>, v8::internal::AllocationType) [/lib/aarch64-linux-gnu/libnode.so.115]
8: 0xfff7a2b6e474 v8::String::Utf8Length(v8::Isolate*) const [/lib/aarch64-linux-gnu/libnode.so.115]
9: 0xfff7a28730fc node::StringBytes::Size(v8::Isolate*, v8::Local<v8::Value>, node::encoding) [/lib/aarch64-linux-gnu/libnode.so.115]
10: 0xfff7a286a5d8 node::StreamBase::Writev(v8::FunctionCallbackInfo<v8::Value> const&) [/lib/aarch64-linux-gnu/libnode.so.115]
11: 0xfff7a286e8e8 void node::StreamBase::JSMethod<&node::StreamBase::Writev>(v8::FunctionCallbackInfo<v8::Value> const&) [/lib/aarch64-linux-gnu/libnode.so.115]
12: 0xfff7a2bd2334 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/lib/aarch64-linux-gnu/libnode.so.115]
13: 0xfff7a2bd28d0 [/lib/aarch64-linux-gnu/libnode.so.115]
14: 0xfff7a2bd3028 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/lib/aarch64-linux-gnu/libnode.so.115]
15: 0xfff7a2a53964 [/lib/aarch64-linux-gnu/libnode.so.115]
zsh: abort (core dumped) claude --resume
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗