JavaScript Heap Out of Memory During String Split Operation
Bug Description
Got a hard crash
<--- Last few GCs --->
[89186:0x140008000] 21450967 ms: Scavenge 1333.9 (1359.4) -> 1310.2 (1345.9) MB, pooled: 0 MB, 6.58 / 0.04 ms (average mu = 0.999, current mu = 0.998) allocation failure;
[89186:0x140008000] 21451892 ms: Mark-Compact 2193.7 (2228.6) -> 1992.7 (2118.8) MB, pooled: 101 MB, 357.58 / 7.04 ms (average mu = 0.999, current mu = 0.997) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0x102b5060c node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
2: 0x102ce5710 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
3: 0x102ea274c v8::internal::Heap::CallGCPrologueCallbacks(v8::GCType, v8::GCCallbackFlags, v8::internal::GCTracer::Scope::ScopeId) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
4: 0x102e9fda8 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
5: 0x102e993c0 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
6: 0x102e99d88 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
7: 0x102e8ae34 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
8: 0x10314dc4c v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long, v8::internal::Isolate) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
9: 0x1029479f4 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/23.7.0/bin/node]
10: 0x1029ce41c Builtins_RegExpSplit [/opt/homebrew/Cellar/node/23.7.0/bin/node]
11: 0x1029350bc Builtins_StringPrototypeSplit [/opt/homebrew/Cellar/node/23.7.0/bin/node]
12: 0x10b58bb20
13: 0x10bf9098c
14: 0x1029440b4 Builtins_AsyncGeneratorResumeNext [/opt/homebrew/Cellar/node/23.7.0/bin/node]
15: 0x1029443d4 Builtins_AsyncGeneratorPrototypeNext [/opt/homebrew/Cellar/node/23.7.0/bin/node]
16: 0x10bdff8bc
17: 0x1028b0838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.7.0/bin/node]
18: 0x1028b0838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.7.0/bin/node]
19: 0x1028ede20 Builtins_AsyncFunctionAwaitResolveClosure [/opt/homebrew/Cellar/node/23.7.0/bin/node]
20: 0x1029bb298 Builtins_PromiseFulfillReactionJob [/opt/homebrew/Cellar/node/23.7.0/bin/node]
21: 0x1028dd214 Builtins_RunMicrotasks [/opt/homebrew/Cellar/node/23.7.0/bin/node]
22: 0x1028ae3f0 Builtins_JSRunMicrotasksEntry [/opt/homebrew/Cellar/node/23.7.0/bin/node]
23: 0x102e17638 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
24: 0x102e17da4 v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.7.0/bin/node]
25: 0x102e42358 v8::internal::MicrotaskQueue::PerformCheckpointIntern
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.44
- Feedback ID: 82b45070-187d-4afe-9966-940f6085c87f
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at wD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9350\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at uC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8496)\n at hC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7361)\n at wB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11970)","timestamp":"2025-07-10T15:43:25.255Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗