Memory leak when ssh into Windows Host with Git Bash #23425

Closed
opened 2026-01-31 08:41:49 +00:00 by claunia · 3 comments
Owner

Originally created by @villivateur on GitHub (Jul 8, 2025).

Windows Terminal version

1.22.11141.0

Windows build number

19045.5854 (Terminal side) and 26100.4349 (Host side)

Other Software

OpenSSH_9.2p1, OpenSSL 1.1.1t 7 Feb 2023 (Terminal side)
OpenSSH_9.9p1, OpenSSL 3.2.3 3 Sep 2024 (Host side)
Git Bash for Windows 2.40.1 (Terminal side)
Git Bash for Windows 2.46.2 (Host side)

Steps to reproduce

  1. Start OpenSSH server in the host machine.
  2. Choose Git Bash as the default shell in the host machine (via regedit).
  3. Log into the host from client machine with openssh.
  4. Type anything, wait for a moment, and type more.

Expected Behavior

No response

Actual Behavior

The terminal freeze, and consume more and more memory (over 30GB).

More

If switch to Command Line Prompt Window, the issue disappeared. So I guess it is Windows Terminal's bug, not OpenSSH or Git Bash's problem.

Originally created by @villivateur on GitHub (Jul 8, 2025). ### Windows Terminal version 1.22.11141.0 ### Windows build number 19045.5854 (Terminal side) and 26100.4349 (Host side) ### Other Software OpenSSH_9.2p1, OpenSSL 1.1.1t 7 Feb 2023 (Terminal side) OpenSSH_9.9p1, OpenSSL 3.2.3 3 Sep 2024 (Host side) Git Bash for Windows 2.40.1 (Terminal side) Git Bash for Windows 2.46.2 (Host side) ### Steps to reproduce 1. Start OpenSSH server in the host machine. 2. Choose Git Bash as the default shell in the host machine (via regedit). 3. Log into the host from client machine with openssh. 4. Type anything, wait for a moment, and type more. ### Expected Behavior _No response_ ### Actual Behavior The terminal freeze, and consume more and more memory (over 30GB). ### More If switch to Command Line Prompt Window, the issue disappeared. So I guess it is Windows Terminal's bug, not OpenSSH or Git Bash's problem.
claunia added the Issue-BugResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 08:41:49 +00:00
Author
Owner

@DHowett commented on GitHub (Jul 8, 2025):

Well, that's unexpected! Can you please capture a dump file (hopefully before it gets too large, but after it freezes) and share it with us? OneDrive, any cloud storage, etc. is fine - my e-mail is in my GitHub profile.

@DHowett commented on GitHub (Jul 8, 2025): Well, that's unexpected! Can you please [capture a dump file](https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#capture-with-task-manager) (hopefully before it gets too large, but after it freezes) and share it with us? OneDrive, any cloud storage, etc. is fine - my e-mail is in my GitHub profile.
Author
Owner

@villivateur commented on GitHub (Jul 9, 2025):

I upgraded the Git Bash on terminal side to V2.50.0, and the issue disappeared, at least for now. Maybe that's Git Bash's bug.

I will track this issue and if that happens again, the issue will be reopened.

@villivateur commented on GitHub (Jul 9, 2025): I upgraded the Git Bash on terminal side to V2.50.0, and the issue disappeared, at least for now. Maybe that's Git Bash's bug. I will track this issue and if that happens again, the issue will be reopened.
Author
Owner

@DHowett commented on GitHub (Jul 9, 2025):

Thanks! Let us know :)

@DHowett commented on GitHub (Jul 9, 2025): Thanks! Let us know :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23425