After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 107258 - terminal emulation hangs consuming 100% cpu time
terminal emulation hangs consuming 100% cpu time
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.10.x
Other Linux
: Normal major
: ---
Assigned To: VTE Maintainers
Nalin Dahyabhai
Depends on:
Blocks:
 
 
Reported: 2003-02-28 15:08 UTC by Christophe Saout
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2



Description Christophe Saout 2003-02-28 15:08:18 UTC
This problem happens with latest cvs vte in gnome-2-2 branch
It only affects a single window, the process itself is still usable.

This happens when vte gets a lot of input data at once so that the ring
buffer gets full.

The glib callback for the io channel calls vte to process the input forever.

There is a warning message on the console (Error reading from child: Bad
address). I debugged this one and found that in the following lines:

(line 7320 in src/vte.c)

   if (condition & G_IO_IN) {
      bcount = sizeof(buf) -
	  _vte_buffer_length(terminal->pvt->incoming);
      bcount = read(fd, buf, MAX(bcount, sizeof(buf) / 2));
   }

read is called with -1 as third argument (the length) and read returns an
EFAULT.
Comment 1 Nalin Dahyabhai 2003-04-22 04:19:33 UTC
This should be fixed in CVS and in the next 0.10 release.