[Bug] JavaScript heap out of memory during string operations
Bug Description
TBH I walked away and came back and it was crashed out and I cant remember what I was doing.
<--- Last few GCs --->
[1135272:0xac447d0] 61999280 ms: Mark-Compact (reduce) 3959.2 (3999.9) -> 3959.2 (3996.4) MB, 95.80 / 0.00 ms (average mu = 0.128, current mu = 0.000) last resort; GC in old space requested
[1135272:0xac447d0] 61999382 ms: Mark-Compact (reduce) 3959.2 (3996.4) -> 3959.2 (3996.4) MB, 101.97 / 0.00 ms (average mu = 0.066, 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: 0xb8cf03 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [claude]
2: 0xf060d0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [claude]
3: 0xf063b7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [claude]
4: 0x110745a v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [claude]
5: 0x10e3856 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [claude]
6: 0x10d5484 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [claude]
7: 0x10d8797 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [claude]
8: 0x1428d85 v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handle<v8::internal::ConsString>, v8::internal::AllocationType) [claude]
9: 0x155781a v8::internal::Runtime_StringSplit(int, unsigned long, v8::internal::Isolate) [claude]
10: 0x7eda76699ef6
Aborted (core dumped)
Environment Info
- Platform: linux
- Terminal: vte-based
- Version: 2.0.44
- Feedback ID: d55c0273-821d-48f2-8d11-f4b96c844520
Errors
[{"error":"AggregateError\n at eAA.from (file:///home/phelix/.nvm/versions/node/v20.19.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:49:51687)\n at VH.<anonymous> (file:///home/phelix/.nvm/versions/node/v20.19.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:10018)\n at VH.emit (node:events:536:35)\n at VH.emit (node:domain:489:12)\n at VI1.<computed> (file:///home/phelix/.nvm/versions/node/v20.19.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:66:1119)\n at ClientRequest.emit (node:events:536:35)\n at ClientRequest.emit (node:domain:489:12)\n at emitErrorEvent (node:_http_client:101:11)\n at TLSSocket.socketErrorListener (node:_http_client:504:5)\n at TLSSocket.emit (node:events:524:28)\n at PYA.request (file:///home/phelix/.nvm/versions/node/v20.19.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:69:2130)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async G20 (file:///home/phelix/.nvm/versions/node/v20.19.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:3914:7355)","timestamp":"2025-11-18T15:39:43.808Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗