Crash when using ssh and output long line when using magnifier #15816

Open
opened 2026-01-31 04:49:19 +00:00 by claunia · 0 comments
Owner

Originally created by @ganlvtech on GitHub (Nov 8, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.0, 1.11.2921.0

Other Software

OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
PowerShell 5.1.19041.1237

Steps to reproduce

Open a PowerShell tab in Windows Terminal.
ssh to some host and cat a text file with more than 20k chars (eg. 20k as) in the first line.

ssh.exe -t username@hostname cat ~/longtext.txt

I found this issue when I compile some program. I got a very long compile error. It displays the cmdline cc + many .o filef in the same line. And then, terminal crashed.

   Compiling .... v0.1.0 (/home/....)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/home/.... very very lone line

Expected Behavior

Output a long line.

Actual Behavior

Windows Terminal crashed and all tab closed. If it doesn't happend, repeat 1 to 3 times.

It maybe need to repeat 4 ~ 6 times when using ssh without -t.

If I open a standalone PowerShell window. It's OK.

Summary

tools result
wt + powershell + ssh + cat crash
wt + cmd + ssh + cat crash
wt + git-bash + ssh + cat crash
wt + powershell + cat not crash
wt + git-bash + cat not crash
powershell + ssh + cat not crash
cmd + ssh + cat not crash
git-bash + ssh + cat not crash
Originally created by @ganlvtech on GitHub (Nov 8, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.0, 1.11.2921.0 ### Other Software OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2 PowerShell 5.1.19041.1237 ### Steps to reproduce Open a PowerShell tab in Windows Terminal. ssh to some host and cat a text file with more than 20k chars (eg. 20k `a`s) in the first line. ``` ssh.exe -t username@hostname cat ~/longtext.txt ``` I found this issue when I compile some program. I got a very long compile error. It displays the cmdline `cc` + many `.o` filef in the same line. And then, terminal crashed. ``` Compiling .... v0.1.0 (/home/....) error: linking with `cc` failed: exit status: 1 | = note: "cc" "-m64" "/home/.... very very lone line ``` ### Expected Behavior Output a long line. ### Actual Behavior Windows Terminal crashed and all tab closed. If it doesn't happend, repeat 1 to 3 times. It maybe need to repeat 4 ~ 6 times when using `ssh` without `-t`. If I open a standalone PowerShell window. It's OK. ## Summary | tools | result | | --------------------------- | --------- | | wt + powershell + ssh + cat | crash | | wt + cmd + ssh + cat | crash | | wt + git-bash + ssh + cat | crash | | wt + powershell + cat | not crash | | wt + git-bash + cat | not crash | | powershell + ssh + cat | not crash | | cmd + ssh + cat | not crash | | git-bash + ssh + cat | not crash |
claunia added the Resolution-Duplicate label 2026-01-31 04:49:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15816