GNOME Bugzilla – Bug 321476
gtk.gdk.display_open_default_libgtk_only().close() segfault
Last modified: 2006-07-07 22:44:50 UTC
Version details: From FreeBSD port Distribution/Version: 5.4 Details of what happens: Python 2.4.2 (#2, Oct 9 2005, 11:44:17) [GCC 3.4.2 [FreeBSD] 20040728] on freebsd5 >>> import gtk >>> d=gtk.gdk.display_open_default_libgtk_only() >>> d <gtk.gdk.DisplayX11 object (GdkDisplayX11) at 0x81bc34c> >>> d.close() zsh: segmentation fault (core dumped) python 0x289bd712 in gdk_x11_display_get_xdisplay () from /usr/X11R6/lib/libgdk-x11-2.0.so.0 (gdb) bt
+ Trace 64059
What I expected to happen: That it would not segfault. --- I can recompile with debugging to get more info if necessary.
display_open_default_libgtk_only is not supposed to be wrapped, it was included by accident. I remove it from the current CVS checkout: Checking in ChangeLog; /cvs/gnome/gnome-python/pygtk/ChangeLog,v <-- ChangeLog new revision: 1.1366; previous revision: 1.1365 done Checking in gtk/gdk.defs; /cvs/gnome/gnome-python/pygtk/gtk/gdk.defs,v <-- gdk.defs new revision: 1.94; previous revision: 1.93 done
display_open_default_libgtk_only seems to have reincarnated itself in gdk-base.defs. Also there are other functions that seem suspicious: add_option_entries_libgtk_only pre_parse_libgtk_only pointer_grab_info_libgtk_only keyboard_grab_info_libgtk_only I suspect these should also be removed.
* gtk/gdk.override: Ignore-glob *_libgtk_only. Fixes #321476. Checking in gtk/gdk.override; /cvs/gnome/gnome-python/pygtk/gtk/gdk.override,v <-- gdk.override new revision: 1.146; previous revision: 1.145 done