gnome-terminal suddenly stops to accept input (for all instances)
Submitted by Daniel Hahler
Link to original bug (#730643)
Description
Since upgrading to Ubuntu 14.04 it often happens that gnome-terminal stops accepting input, which affects all running (and new) instances of gnome-terminal.
stracing the gnome-terminal process repeats the following output:
19279 restart_syscall(<... resuming interrupted call ...> <unfinished ...>
19276 restart_syscall(<... resuming interrupted call ...> <unfinished ...>
19275 restart_syscall(<... resuming interrupted call ...> <unfinished ...>
19274 restart_syscall(<... resuming interrupted call ...>) = 1
19274 recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\36\0\343\371\230\245I\5\3\0\2\3\0\240\1\350\1\0\0]\1\0\0\211\1\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32 19274 recvmsg(6, 0x7ffff376caa0, 0) = -1 EAGAIN (Resource temporarily unavailable) 19274 poll([{fd=6, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=6, revents=POLLOUT}]) 19274 writev(6, [{"\22\0x\0\3\0\240\1\211\1\0\0]\1\0\0\10\4\6\0\307\1\0\0+ sudo /home/daniel/Vcs/bup/bup index -v -u --long --exclude-from=/home/daniel/.cache/find-for-backup.exclude.bup / /home\nTraceback (most recent call last):\n File \"/home/daniel/Vcs/bup/bup\", line 26, in <module>\n from bup import helpers\n File \"/home/daniel/Vcs/bup/lib/bup/helpers.py\", line 217, in <module>\n def batchpipe(command, args, preexec_fn=None, arg_max=_helpers.SC_ARG_MAX):\nAttributeError: 'module' object has no attribute 'SC_ARG_MAX'\n\2\31\0\v\0\3\0\240\1\0\0\0\0\37\0\0\0\230\245I\5\3\0\240\1\350\1\0\0]\1\0\0\211\1\0\0\0\0\0\0\0\0\0\0+\0\1\0", 528}, {NULL, 0}, {"", 0}], 3) = 528 19274 poll([{fd=6, events=POLLIN}], 1, 4294967295) = 1 ([{fd=6, revents=POLLIN}]) 19274 recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\1\2\346\371\0\0\0\0\5\0\300\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32 19274 recvmsg(6, 0x7ffff376c540, 0) = -1 EAGAIN (Resource temporarily unavailable) 19274 recvmsg(6, 0x7ffff376c540, 0) = -1 EAGAIN (Resource temporarily unavailable) 19274 recvmsg(6, 0x7ffff376ca80, 0) = -1 EAGAIN (Resource temporarily unavailable) 19274 poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=3, events=POLLIN}, {fd=38, events=POLLIN}, {fd=11, events=POLLIN}, {fd=15, events=POLLIN}, {fd=19, events=POLLIN}, {fd=21, events=POLLIN}, {fd=37, events=POLLIN}, {fd=30, events=POLLIN}, {fd=46, events=POLLIN}, {fd=25, events=POLLIN}], 12, 4294967295) = 1 ([{fd=6, revents=POLLIN}]) 19274 recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\36\0\346\371\220\247I\5\3\0
\2\3\0\240\1\350\1\0\0]\1\0\0\211\1\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
19274 recvmsg(6, 0x7ffff376caa0, 0) = -1 EAGAIN (Resource temporarily unavailable)
19274 poll([{fd=6, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
19274 writev(6, [{"\22\0x\0\3\0\240\1\211\1\0\0]\1\0\0\10\4\6\0\307\1\0\0+ sudo /home/daniel/Vcs/bup/bup index -v -u --long --exclude-from=/home/daniel/.cache/find-for-backup.exclude.bup / /home\nTraceback (most recent call last):\n File "/home/daniel/Vcs/bup/bup", line 26, in <module>
\n from bup import helpers\n File "/home/daniel/Vcs/bup/lib/bup/helpers.py", line 217, in <module>
\n def batchpipe(command, args, preexec_fn=None, arg_max=_helpers.SC_ARG_MAX):\nAttributeError: 'module' object has no attribute 'SC_ARG_MAX'\n\2\31\0\v\0\3\0\240\1\0\0\0\0\37\0\0\0\220\247I\5\3\0\240\1\350\1\0\0]\1\0\0\211\1\0\0\0\0\0\0\0\0\0\0+\0\1\0", 528}, {NULL, 0}, {"", 0}], 3) = 528
It seems to constantly write something to fd=6, but does not receive a (proper) response?! The text used therein was the output of some command I've run before, but which is not visible anymore.
I have tried the "Reset" and "Reset and Clear" entries from the "Terminal" menu entry, but while it clears the screen, the shell prompt won't appear and the issue gets not fixed.
I have to close all terminal instances (or kill gnome-terminal), which is really annoying.
This happens with Ubuntu's gnome-terminal 3.6.2-0ubuntu1, but also with 3.12.2-1 from Debian.
A bug with similar symptoms has been reported in Launchpad for 2.32.0-0ubuntu1.1 already: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/799019
For me this started to happen only after upgrading to Ubuntu 14.04.
Version: 3.12.x