Terminal Deadlock When TTY Buffer Full
|Reported by:||bonefish||Owned by:||bonefish|
|Has a Patch:||no||Platform:||All|
The Terminal can deadlock when the tty buffer runs full. Attached is a KDL session analyzing the situation. In short:
- Window thread: Is in Shell::Write() writing to the TTY, blocking because the TTY buffer is full.
- PtyReader thread: Is in TermParse::PtyReader(), blocking on fReaderLocker.
- EscParse thread: Is in TermView::_Redraw(), blocking trying to lock the window.
May or may not be related to #1755. I can't unblock the Terminal by resizing/zooming the window, though, so it probably isn't.
Regarding how to reproduce it: I have seen this only once yet. I suppose it helps to have a command line program that prints a lot and type something at the same time.