muhhiminminmin / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Key press during extended output causes mintty to freeze #336

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a large file `dd if=/dev/urandom of=file.txt bs=1048576 count=10`)
2. cat the large file to the buffer/screen
3. before the output to buffer is finished, press the 'up arrow'

What is the expected output? What do you see instead?
I would expect the output to finish, however it causes the window to hard 
freeze (see attachment).

What versions of mintty, Cygwin/MSYS, and Windows are you using?
mintty 1.0.3
cygwin 1.7.13(0.260/5/3)
Win7 64bit

Please provide any additional information below.
I'm also able to reproduce this behavior with a large output in mysql, for 
instance, if I select a large result set like: 'select * from <SomeLargeTable>'

Original issue reported on code.google.com by nathan.r...@infotechfl.com on 14 May 2012 at 4:56

Attachments:

GoogleCodeExporter commented 8 years ago
It's a Cygwin issue that affects rxvt and xterm too, and it's not just the up 
arrow that triggers it but any key press that sends something to the program. 
The two processes end up in a deadlock, both waiting for the other to read 
their output, i.e. you'll see something like the following in the output of 
'ps'. Note the 'O' for output in the first column.

      PID    PPID    PGID     WINPID   TTY     UID    STIME COMMAND
O     800       1     800        800  ?       1004 14:34:28 /usr/bin/mintty
O    5068    4040    5068        284  pty0    1004 14:34:49 /usr/bin/cat

Kill the cat, and the terminal will continue normally.

Original comment by andy.koppe on 20 May 2012 at 1:41