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 665602 - gnome-settings-daemon segfaults in send_selection_notify(), receives XError
gnome-settings-daemon segfaults in send_selection_notify(), receives XError
Status: RESOLVED OBSOLETE
Product: gnome-settings-daemon
Classification: Core
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2011-12-05 16:07 UTC by Dmitry Shachnev
Modified: 2012-03-08 05:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dmitry Shachnev 2011-12-05 16:07:07 UTC
This issue was originally reported here:

https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/873545
http://my.opera.com/ruario/blog/2011/12/02/styling-lost-opera-shutdown

gnome-settings-daemon crashes when closing Opera or Skype. It seems that the clipboard manager is trying to get clipboard content of applications being closed.

Error message:

(gnome-settings-daemon:1647): Gdk-WARNING **: The program 'gnome-settings-daemon' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 3618 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.)

Stacktrace (https://launchpadlibrarian.net/86505734/g-s-d_gdb_bt.log):

Breakpoint 1, gdk_x_error (xdisplay=0x6439e0, error=0x7fffffffdac0)
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkmain-x11.c:277
	in /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkmain-x11.c
	
(gdb) bt
  • #0 gdk_x_error
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkmain-x11.c line 277
  • #1 _XError
    at ../../src/XlibInt.c line 1583
  • #2 handle_error
    at ../../src/xcb_io.c line 212
  • #3 handle_response
    at ../../src/xcb_io.c line 324
  • #4 _XReply
    at ../../src/xcb_io.c line 626
  • #5 XSync
    at ../../src/Sync.c line 44
  • #6 send_selection_notify
    at gsd-clipboard-manager.c line 153
  • #7 clipboard_manager_process_event
    at gsd-clipboard-manager.c line 776
  • #8 clipboard_manager_event_filter
    at gsd-clipboard-manager.c line 824
  • #9 gdk_event_apply_filters
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 83
  • #10 gdk_event_source_translate_event
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 204
  • #11 _gdk_x11_display_queue_events
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 334
  • #12 gdk_display_get_event
    at /build/buildd/gtk+3.0-3.2.0/./gdk/gdkdisplay.c line 311
  • #13 gdk_event_source_dispatch
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 356
  • #14 g_main_dispatch
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 2441
  • #15 g_main_context_dispatch
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3011
  • #16 g_main_context_iterate
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3089
  • #17 g_main_loop_run
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3297
  • #18 gtk_main
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmain.c line 1367
  • #19 main
    at main.c line 466
  • #0 gdk_x_error
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkmain-x11.c line 277
  • #1 _XError
    at ../../src/XlibInt.c line 1583
  • #2 handle_error
    at ../../src/xcb_io.c line 212
  • #3 handle_response
    at ../../src/xcb_io.c line 324
  • #4 _XReply
    at ../../src/xcb_io.c line 626
  • #5 XSync
    at ../../src/Sync.c line 44
  • #6 send_selection_notify
    at gsd-clipboard-manager.c line 153
  • #7 clipboard_manager_process_event
    at gsd-clipboard-manager.c line 776
  • #8 clipboard_manager_event_filter
    at gsd-clipboard-manager.c line 824
  • #9 gdk_event_apply_filters
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 83
  • #10 gdk_event_source_translate_event
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 204
  • #11 _gdk_x11_display_queue_events
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 334
  • #12 gdk_display_get_event
    at /build/buildd/gtk+3.0-3.2.0/./gdk/gdkdisplay.c line 311
  • #13 gdk_event_source_dispatch
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 356
  • #14 g_main_dispatch
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 2441
  • #15 g_main_context_dispatch
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3011
  • #16 g_main_context_iterate
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3089
  • #17 g_main_loop_run
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3297
  • #18 gtk_main
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmain.c line 1367
  • #19 main
    at main.c line 466

Comment 1 Bastien Nocera 2012-01-25 13:02:26 UTC
Can't reproduce the problem here with Opera 11.61-1250 for x86_64. The lines mentioned are also surrounded by a gdk_error_trap_push()/gdk_error_trap_pop_ignored() pair.

How do I reproduce the problem?
Comment 2 M. Niess 2012-01-25 21:32:47 UTC
Opera is circumventing this bug with changes made since 11.60. So you could reproduce this with earlier versions of Opera.
Comment 3 Bastien Nocera 2012-01-26 10:51:51 UTC
And how do I get the old version?
Comment 4 Dmitry Shachnev 2012-01-26 10:56:21 UTC
Opera 11.52 is available @ ftp://ftp.opera.com/pub/opera/linux/1152/.
Comment 5 Bastien Nocera 2012-01-26 11:13:08 UTC
"Opera/9.80 (X11; Linux x86_64; U; en-GB) Presto/2.9.168 Version/11.52"

And I can't seem to reproduce the problem. What do I need to do exactly to reproduce this crasher?
Comment 6 Daniel Lea 2012-01-27 14:49:44 UTC
Before updating Opera I was getting the crash simply by opening Opera, copying some text from a web page, and closing it.  Apparently Skype had the same issue (I think I verified this too), but having just tried it, this is no longer causing the crash either.  If an old version of Opera isn't doing it, it's possible the bug has already been fixed as a matter of course.
Comment 7 Akhil Laddha 2012-03-08 05:33:41 UTC
closing bug as per comment#6