gnome-terminal hangs after executing tail -f for some time with plenty of output

Bug #1201489 reported by Michael Mess
6
This bug affects 1 person
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;null;null;0;null;eurex;"..., 4515^C <unfinished ...>
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|WCONTINUED, NULL) = 17298
rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [CHLD], 8) = 0
ioctl(255, TIOCSPGRP, [31412]) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
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
ProcVersionSignature: Ubuntu 3.2.0-48.74-generic 3.2.46
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)

Revision history for this message
Michael Mess (michael-michaelmess) wrote :
Revision history for this message
Michael Mess (michael-michaelmess) wrote :
Changed in gnome-terminal:
importance: Undecided → Unknown
status: New → Unknown
Changed in gnome-terminal:
importance: Unknown → Medium
status: Unknown → New
Changed in gnome-terminal:
status: New → Incomplete
Changed in gnome-terminal:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.