Claude code memory leak on fedora

Resolved 💬 2 comments Opened Feb 24, 2026 by jinyang0411 Closed Feb 24, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Title: Claude Code memory leak on Linux - conversation context never freed, causes system crash

Environment:

  • OS: Fedora Linux 43 (Workstation Edition)
  • Kernel: 6.18.12-200.fc43.x86_64
  • RAM: 16GB
  • Claude Code version: 2.1.52 (Claude Code), Sonnet 4.6
  • Platform: Linux x86_64

Description:

Claude Code accumulates memory continuously during a conversation and never releases it. The process eventually consumed 14GB+ of RAM, making the system unresponsive and forcing a hard reboot.

This does not occur on Windows.

What Should Happen?

Like windows or how codex did for fedora

Error Messages/Logs

Steps to Reproduce

  1. Start Claude Code on Fedora Linux
  2. Begin a conversation involving tool calls (especially bash commands with large output)
  3. Run a tool that produces large output - e.g. journalctl
  4. Watch memory in system monitor - it climbs and never drops
  5. Continuing the conversation accelerates the growth
  6. System becomes unresponsive

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.52 (Claude Code),

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

<img width="403" height="406" alt="Image" src="https://github.com/user-attachments/assets/43eb3ad8-0288-449d-82a2-9f816b234530" />

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗