Skip to content

Memory leak #19249

@PetarPetrushev

Description

@PetarPetrushev

Windows Terminal version

1.22.12111.0

Windows build number

10.0.26100.4946

Other Software

No response

Steps to reproduce

Enter curl https://s1.cubzyn.net/other/curl.me.php (which curls a large amount of binary to the terminal)
And now even if the user closes the terminal window even after the command finished the console window and PTY process uses many gigabytes of RAM and continues to use more until it crashes. I have attached the source code of the PHP script.

curl.me.php

Expected Behavior

Since binary is being sent to terminal some issues are expected such as bells, messed up terminal or messed up input. However not a large memory leak.

Actual Behavior

Terminal freezes when command finishes due to the memory leak and leaks gigabytes of memory in the PTY host process until it crashes.

Metadata

Metadata

Assignees

Labels

Area-QualityStability, Performance, Etc.Impact-CorrectnessIt be wrong.Issue-BugIt either shouldn't be doing this or needs an investigation.Priority-3A description (P3)Product-ConhostFor issues in the Console codebase

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions