gnome-terminal crashes when copying large amounts of text to xsel

Bug #943318 reported by Marius Gedminas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTK+
Expired
Critical
gnome-terminal (Ubuntu)
Invalid
Undecided
Unassigned
gtk+3.0 (Ubuntu)
New
Undecided
Unassigned
xsel (Ubuntu)
New
Undecided
Unassigned

Bug Description

To reproduce:
0. Install xsel
1. Open gnome-terminal
2. Run 'seq 150000 | fmt' to produce a lot of scrollback
3. Tripple-click on the last line of output
4. press Shift-Home to scroll to top
5. Shift-click on the first line of output
6. Run 'xsel > /tmp/PLEASEDONTCRASH'

Expected result: no crash

Actual result: all gnome-terminal windows disappear, and this appears in ~/.xsession-errors:

(gnome-terminal:29462): Gdk-WARNING **: The program 'gnome-terminal' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 17484 error_code 3 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-terminal 3.0.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Wed Feb 29 16:57:27 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 LANGUAGE=lt_LT:lt:en_GB:en
 LC_CTYPE=lt_LT.UTF-8
 PATH=(custom, user)
 LANG=lt_LT.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to oneiric on 2011-10-13 (138 days ago)

Revision history for this message
Marius Gedminas (mgedmin) wrote :
Revision history for this message
Marius Gedminas (mgedmin) wrote :

Sometimes it doesn't crash at once and I have to repeat steps 3 through 6 a few times.

Revision history for this message
Marius Gedminas (mgedmin) wrote :
summary: - gnome-terminal crashes when copying large amounts of text
+ gnome-terminal crashes when copying large amounts of text to xsel
Revision history for this message
Marius Gedminas (mgedmin) wrote :

This appears to be a bug in xsel (with a fix pending at https://github.com/kfish/xsel/pull/1), _and_ a bug in Gtk+ ("Should GTK+ protect itself against selection windows disappearing? Most likely, yes.").

Changed in gnome-terminal (Ubuntu):
status: New → Invalid
Changed in gtk:
importance: Unknown → Critical
status: Unknown → Confirmed
Changed in gtk:
status: Confirmed → 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.