[BUG] smartctl command freezes CC

Resolved 💬 5 comments Opened Oct 30, 2025 by ccarlisle Closed Jan 9, 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?

I've been debugging a few disk issues over the past month or two and whenever CC runs smartctl commands, it will likely eventually freeze. This has been ongoing for at least a month.

Setup:

  • Mac terminal (have also tested windows terminal with same results) => SSH into Proxmox server.
  • I have 10 hdd's attached to the proxmox machine and a few are failing. I am asking CC to help me understand which ones are failing.
  • It does seem to happen more when smartctl is called with extra options and piped to grep.

Bug

  • Unclear exactly how, but after "a few" runs of the smartctl command, the terminal window will freeze. cntrl-c/esc are unresponsive, any typing is unresponsive.

What Should Happen?

It should not freeze

Error Messages/Logs

Steps to Reproduce

  1. start claude in a machine with smartctl installed
  2. ask claude "run smartctl 10 times with extra options and pipe it to grep. do it against any disk".
  3. Claude should run some version of the following command 10 times:

smartctl -a -d auto /dev/sda | grep -E "(Temperature|Power_On_Hours|Reallocated_Sector)

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.0.29

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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