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 148812 - unable to close GdkDisplay on X11
unable to close GdkDisplay on X11
Status: RESOLVED DUPLICATE of bug 85715
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-07-29 22:22 UTC by Andrea Leofreddi
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Andrea Leofreddi 2004-07-29 22:22:11 UTC
Simply try to close a GdkDisplay object.

#include <gtk/gtk.h>
                                                                               
                                                             int main(int argc,
char *argv[]) {
gtk_init (&argc, &argv);    
gdk_display_close(gdk_display_manager_get_default_display(gdk_display_manager_get()));
}

Program received signal SIGSEGV, Segmentation fault.
0x0065ea80 in gdk_x11_display_get_xdisplay () from /usr/lib/libgdk-x11-2.0.so.0
(gdb) where
  • #0 gdk_x11_display_get_xdisplay
    from /usr/lib/libgdk-x11-2.0.so.0
  • #1 gdk_display_manager_set_default_display
    from /usr/lib/libgdk-x11-2.0.so.0
  • #2 gdk_display_get_type
    from /usr/lib/libgdk-x11-2.0.so.0
  • #3 gdk_x11_display_ungrab
    from /usr/lib/libgdk-x11-2.0.so.0
  • #4 g_object_run_dispose
    from /usr/lib/libgobject-2.0.so.0
  • #5 gdk_display_close
    from /usr/lib/libgdk-x11-2.0.so.0
  • #6 main

Comment 1 Andrea Leofreddi 2004-07-29 22:24:54 UTC
I'm developing an application that needs to detach from X and then reattach to
it, so I'd like to detach from current display mantaining gtk running, and then
attach to a new one.
Comment 2 Owen Taylor 2004-07-30 14:50:48 UTC

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