gedit and evince hits BadWindow XErrors when run from different "contexts" with GTK 3.6

Bug #1047431 reported by Audrey Durand
430
This bug affects 48 people
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
Medium
evince (Ubuntu)
Invalid
High
Unassigned
Quantal
Invalid
High
Unassigned
gedit (Ubuntu)
Invalid
High
Unassigned
Quantal
Invalid
High
Unassigned
gtk+3.0 (Ubuntu)
Fix Released
High
Unassigned
Quantal
Fix Released
High
Unassigned

Bug Description

I can reproduce the bug by following these steps:

1) open a file (in gedit) from the unity dash;
2) open a file (in gedit) from nautilus.

==

Description: Ubuntu quantal (development branch)
Release: 12.10

gedit:
  Installé : 3.5.2-0ubuntu1
  Candidat : 3.5.2-0ubuntu1
 Table de version :
 *** 3.5.2-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages
        100 /var/lib/dpkg/status

GEdit crashed when opening a file.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: gedit 3.5.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-13.14-generic 3.5.3
Uname: Linux 3.5.0-13-generic x86_64
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
Date: Fri Sep 7 10:36:33 2012
ExecutablePath: /usr/bin/gedit
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
ProcCmdline: gedit /home/username/Documents/PhD/Projets/RL2/Experiments/SMABDR/geas_mdp.py
Signal: 5
SourcePackage: gedit
StacktraceTop:
 ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 XInternAtom () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 gdk_x11_atom_to_xatom_for_display () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
Title: gedit crashed with signal 5 in _XReply()
UpgradeStatus: Upgraded to quantal on 2012-08-28 (9 days ago)
UserGroups: adm cdrom dip lp lpadmin plugdev sambashare sudo

Revision history for this message
Audrey Durand (adurand) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 XInternAtom (dpy=0x286d000, name=name@entry=0x1fa4c50 "_NET_SUPPORTING_WM_CHECK", onlyIfExists=onlyIfExists@entry=0) at ../../src/IntAtom.c:181
 gdk_x11_atom_to_xatom_for_display (atom=0x81, display=0x7fe52c00c990) at /build/buildd/gtk+3.0-3.5.16/./gdk/x11/gdkproperty-x11.c:244
 gdk_x11_atom_to_xatom_for_display (display=0x7fe52c00c990, atom=0x81) at /build/buildd/gtk+3.0-3.5.16/./gdk/x11/gdkproperty-x11.c:221
 get_net_supporting_wm_check (screen=screen@entry=0xd302f0, window=194) at /build/buildd/gtk+3.0-3.5.16/./gdk/x11/gdkscreen-x11.c:1284
 fetch_net_wm_check_window (screen=screen@entry=0xd302f0) at /build/buildd/gtk+3.0-3.5.16/./gdk/x11/gdkscreen-x11.c:1321

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gedit (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: gedit crashed with signal 5 in _XReply()

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gedit (Ubuntu):
status: New → Confirmed
Revision history for this message
Audrey Durand (adurand) wrote :

I can reproduce the bug by following these steps:

1) open a file (in gedit) from the unity dash;
2) open a file (in gedit) from nautilus.

visibility: private → public
Revision history for this message
Felix Möller (felix-derklecks) wrote :

The exactly same backtrace is generated by evince. See bug #1051623.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in evince (Ubuntu):
status: New → Confirmed
tags: added: rls-q-incoming
description: updated
Changed in gedit (Ubuntu):
importance: Medium → High
Changed in evince (Ubuntu Quantal):
importance: Undecided → High
Changed in gtk+3.0 (Ubuntu Quantal):
importance: Undecided → High
status: New → Triaged
Changed in gedit (Ubuntu Quantal):
status: Confirmed → Invalid
Changed in evince (Ubuntu Quantal):
status: Confirmed → Invalid
summary: - gedit crashed with signal 5 in _XReply()
+ gedit and evince hits BadWindow XErrors when run from different
+ "contexts" with GTK 3.6
Revision history for this message
Sebastien Bacher (seb128) wrote :

ok, that was a gtk bug, it has been fixed in trunk:
http://git.gnome.org/browse/gtk+/patch/?id=f9d77959a4518699a96b3c85ddc18d0ff01aeac5

I backported the fix and uploaded to quantal-proposed

Changed in gtk+3.0 (Ubuntu Quantal):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+3.0 - 3.6.0-0ubuntu2

---------------
gtk+3.0 (3.6.0-0ubuntu2) quantal-proposed; urgency=low

  * debian/patches/git_use_right_display.patch:
    - should fix gedit or evince hitting an Xerror when opened two times
      with different displays, e.g one from unity and one by clicking
      on a file in nautilus (lp: #1047431)

gtk+3.0 (3.6.0-0ubuntu1) quantal; urgency=low

  * New upstream stable release
  * debian/libgtk-3-0.symbols:
    - Updated
 -- Sebastien Bacher <email address hidden> Thu, 27 Sep 2012 15:30:06 +0200

Changed in gtk+3.0 (Ubuntu Quantal):
status: Fix Committed → Fix Released
Revision history for this message
Eric Renkey (renkeyes) wrote :

Updated gtk+3.0 package fixed the issue that I was experiencing in duplicate bug #1053788.
Thanks.

Changed in gtk:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.