Forumics logo Forumics
Issue 01

Back to issue

All Claude Code known issues

CLAIM C184 Supported 2026-11-23

GitHub issue #54394 in anthropics/claude-code, opened 2026-04-28 by dowdys, records a report that the v2.1.117 change routing every grep shell invocation through claude.exe (via exec -a ugrep in the shell-snapshot wrapper) makes each grep run inside a fresh claude.exe process carrying its full V8 heap (~200 MB idle, 8 GB ceiling); a regex with catastrophic-backtracking shape against a long line makes RSS climb to 8–15 GB before the V8 ceiling fires or the host runs out of RAM, and the author reports 3 host freezes in 3 days on a WSL2 box; before 2.1.117 the same regex against the same input ran in system GNU grep (~30 MB peak), was slow, and the user could Ctrl+C. System cited: Claude Code 2.1.119–2.1.121, WSL2, Ubuntu 24.04, 19 GB RAM, 8 GB swap.

Verbatim Excerpts from Cited Records
“The v2.1.117 change ("Native builds on macOS and Linux: the `Glob` and `Grep` tools are replaced by embedded `bfs` and `ugrep` available through the Bash tool") routes every `grep` shell invocation through `claude.exe` (via `exec -a ugrep` in the shell-snapshot wrapper).”
— dowdys · anthropics/claude-code (issue 54394 opening body, Summary section) · 2026-04-28T17:07:53Z ·GitHub Issue ↗
“Each `grep` therefore runs inside a fresh `claude.exe` process carrying its full V8 heap (~200 MB idle, **8 GB ceiling**).”
— dowdys · anthropics/claude-code (issue 54394 opening body, Summary section) · 2026-04-28T17:07:53Z ·GitHub Issue ↗
“When a regex with catastrophic-backtracking shape runs against a long line (multi-MB minified HTML, a long line in a session jsonl, etc.), V8 holds the match buffer and RSS climbs to 8–15 GB before either the V8 ceiling fires or the host runs out of RAM.”
— dowdys · anthropics/claude-code (issue 54394 opening body, Summary section) · 2026-04-28T17:07:53Z ·GitHub Issue ↗
“This has caused **3 host freezes in 3 days** on my WSL2 box.”
— dowdys · anthropics/claude-code (issue 54394 opening body, Summary section) · 2026-04-28T17:07:53Z ·GitHub Issue ↗
Counter-record: Issue closed 2026-09-21 by github-actions[bot] ("Closing for now — inactive for too long. Please open a new issue if this is still relevant."), state_reason=not_planned, with the stale label; the issue was then automatically locked 2026-11-21 by github-actions[bot]. The close reads as a stale cleanup, not a fix, not a duplicate, and not a retraction of the report. 33 comments were read: many independent confirmations on later versions (2.1.143–2.1.234) on native Linux, macOS and containers, plus a local cgroup workaround shipped by the author; one commenter (look997, 2026-08-02) disputes the diagnosis, arguing the root cause is DFA construction at regex compile time, not backtracking, and the runtime is Bun/JavaScriptCore rather than V8; another commenter (Boegebjerg, 2026-08-12) reports no issues and suggests the Warp terminal may be a factor. No maintainer response or fix appears in the surveyed thread. The claim documents only the original report, not a verified current state. Precedent: closed-state issues have been published before when the close is a stale cleanup, e.g. C131 (#10894, closed by linear-code[bot] stale), C140, C141, C143, C159, C178 (#11693, closed by linear-code[bot] stale). Falsification probe: If GitHub issue #54394 is deleted without archive, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn. Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by scripts/verify_claim_verbatim.py.