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 149011 - Missing error_push in gdk_check_wm_state_changed()
Missing error_push in gdk_check_wm_state_changed()
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-08-01 15:44 UTC by Thomas Leonard
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Leonard 2004-08-01 15:44:44 UTC
Run a program (eg, ROX-Filer) for a while. When closing a window, the program
may (very rarely) crash with a BadWindow error.

It appears that XGetWindowProperty is called without a gdk_error_trap_push in
response to PropertyNotify events. If the window has been destroyed in the
meantime, a crash results.

(note: gdk_check_wm_desktop_changed() appears to have the same problem)

Here's a stack trace from a crash (a little difficult to get, as GTK refuses to
dump core on these errors, even though they're mostly caused by synchronous calls):

[...]
  • #46 _dl_map_object_deps
    from /lib/ld-linux.so.2
  • #47 _XError
    from /usr/X11R6/lib/libX11.so.6
  • #48 _XReply
    from /usr/X11R6/lib/libX11.so.6
  • #49 XGetWindowProperty
    from /usr/X11R6/lib/libX11.so.6
  • #50 gdk_check_wm_state_changed
    at gdkevents-x11.c line 497
  • #51 gdk_event_translate
    at gdkevents-x11.c line 1797
  • #52 _gdk_events_queue
    at gdkevents-x11.c line 2086
  • #53 gdk_event_dispatch
    at gdkevents-x11.c line 2146
  • #54 g_main_depth
    from /usr/lib/libglib-2.0.so.0
  • #55 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #56 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #57 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #58 gtk_main
    at gtkmain.c line 1172
  • #59 main
    at /home/talex/Projects/rox/ROX-Filer/src/main.c line 575