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 126579 - gdk_display_close tries to dereference a NULL pointer.
gdk_display_close tries to dereference a NULL pointer.
Status: RESOLVED DUPLICATE of bug 85715
Product: gtk+
Classification: Platform
Component: Backend: X11
2.2.x
Other Linux
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-11-09 21:26 UTC by Jan D.
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2



Description Jan D. 2003-11-09 21:26:09 UTC
1. gdk_display_close calls
2. g_object_run_dispose which calls
3. gdk_display_x11_dispose which calls
4. G_OBJECT_CLASS (parent_class)->dispose (object) which calls
5. gdk_display_dispose which calls
6. gdk_display_manager_set_default_display (gdk_display_manager_get(),   
     NULL);
   which calls
7. _gdk_windowing_set_default_display (display)
   which does
8. g_free (display_x11->startup_notification_id) 

even if display_x11 is NULL (by step 6).

Stack trace from gdb:

  • #0 _gdk_windowing_set_default_display
    at gdkdisplay-x11.c line 681
  • #1 gdk_display_manager_set_default_display
    at gdkdisplaymanager.c line 248
  • #2 gdk_display_dispose
    at gdkdisplay.c line 163
  • #3 gdk_display_x11_dispose
    at gdkdisplay-x11.c line 557
  • #4 g_object_run_dispose
    from /opt/gtk2.2/lib/libgobject-2.0.so.0
  • #5 gdk_display_close
    at gdkdisplay.c line 191

Comment 1 Jan D. 2003-11-12 09:26:06 UTC
This bug is also in CVS (I checked CVS Tuesday 11 Nov).
Comment 2 Matthias Clasen 2003-11-13 10:27:35 UTC

*** This bug has been marked as a duplicate of 85715 ***