gnome-terminal hangs after executing tail -f for some time with plenty of output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Terminal |
Expired
|
Medium
|
|||
gnome-terminal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1) Open gnome-terminal with bash shell.
2) type tail -f someLogFile
3) Let it run with plenty of output for a long time.
Result:
Tail output will suddenly stop.
Stracing the bash process shows:
mm@musca:~ $ sudo strace -p 31412
[sudo] password for mm:
Process 31412 attached - interrupt to quit
wait4(-1,
Stracing the tail process shows:
sudo strace -p 17298
[sudo] password for mm:
Process 17298 attached - interrupt to quit
write(1, "ull;null;
Process 17298 detached
It seems that the processes are somehow deadlocked.
After killing the tail process, the tail died, but the gnome-terminal stayed unusable.
mm@musca:~ $ sudo strace -p 31412
[sudo] password for mm:
Process 31412 attached - interrupt to quit
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGTERM}], WSTOPPED|
rt_sigprocmask(
ioctl(255, TIOCSPGRP, [31412]) = 0
rt_sigprocmask(
ioctl(255, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(255, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
ioctl(255, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(255, TIOCGWINSZ, {ws_row=63, ws_col=211, ws_xpixel=0, ws_ypixel=0}) = 0
write(2, "Terminated\n", 11
Choosing "Terminal->Reset" from gnome-terminal menu did not help.
Choosing "Terminal->Reset And Clear" from gnome-terminal menu made the window usable again..
Probably there is a problem with a buffer overflow, etc.
I am using a scrollback of 1000000 lines.
The output should have been sufficient to fill this buffer.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gnome-terminal 3.4.1.1-0ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-48-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: amd64
Date: Mon Jul 15 18:05:39 2013
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120822.4)
MarkForUpload: True
SourcePackage: gnome-terminal
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in gnome-terminal: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in gnome-terminal: | |
status: | New → Incomplete |
Changed in gnome-terminal: | |
status: | Incomplete → Expired |
Reported bug upstream: https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 704270.