V
V
Vasya Pupkin2016-02-18 10:08:02
PuTTY
Vasya Pupkin, 2016-02-18 10:08:02

Why do terminals fail and freeze when outputting a lot of garbage?

I recently encountered such a problem that terminals freeze if a large amount of binary garbage is printed in them. There were two cases. One was when in Wordpress someone decided to print downloaded images for debugging if they could not determine their type, and uploaded it to master. The second is when someone wrote a test using Mockery and without checking it also uploaded it to master. Running these functions throws a lot of garbage into the terminal. If the server is far away (VPS in the data center), then the slow output is understandable, but why does not one of the terminals stand up and hang? By the way, I even ran tests with Mockery locally in Far Manager and it also hangs. What is the reason for the hang? stack overflow? Then stack overflow attack on terminals is possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Axian Ltd., 2016-02-18
@AxianLTD

Keyword "control sequences". In particular, ^S ^Q - delay, continue output, etc. Those. among the binary garbage there are symbols or their combinations, which are interpreted by the terminal as commands.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question