Bug#425131: python-gtk2: segmentation fault when DISPLAY is not set

Vincent Lefevre vincent at vinc17.org
Sun May 27 22:18:29 UTC 2007


On 2007-05-27 23:44:46 +0200, Sven Arvidsson wrote:
> I can't reproduce this;
> 
> unset DISPLAY
> python /usr/share/doc/python-gtk2-tutorial/html/examples/helloworld.py
> /var/lib/python-support/python2.4/gtk-2.0/gtk/__init__.py:69:
> GtkWarning: could not open display
> [...]

Well, with ROX-Lib2 < 2007-05-19, I get:

vin:.../rox-lib/ROX-Lib2> ./AppRun
/var/lib/python-support/python2.4/gtk-2.0/gtk/__init__.py:69: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
./AppRun:13: Warning: invalid (NULL) pointer instance
  rox._("ROX-Lib2 contains code that is useful to newer ROX applications. \
./AppRun:13: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  rox._("ROX-Lib2 contains code that is useful to newer ROX applications. \
./AppRun:13: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  rox._("ROX-Lib2 contains code that is useful to newer ROX applications. \
./AppRun:13: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  rox._("ROX-Lib2 contains code that is useful to newer ROX applications. \
./AppRun:13: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
  rox._("ROX-Lib2 contains code that is useful to newer ROX applications. \
./AppRun:21: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  box.add_button(g.STOCK_HELP, g.RESPONSE_HELP)
./AppRun:21: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  box.add_button(g.STOCK_HELP, g.RESPONSE_HELP)
./AppRun:21: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
  box.add_button(g.STOCK_HELP, g.RESPONSE_HELP)
./AppRun:26: GtkWarning: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: GtkWarning: gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_context_set_font_description: assertion `context != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_context_set_base_dir: assertion `context != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_context_set_language: assertion `context != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_layout_new: assertion `context != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_layout_set_text: assertion `layout != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_layout_set_attributes: assertion `layout != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_layout_set_alignment: assertion `layout != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_layout_set_ellipsize: assertion `PANGO_IS_LAYOUT (layout)' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_layout_set_single_paragraph_mode: assertion `PANGO_IS_LAYOUT (layout)' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_layout_set_width: assertion `layout != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: PangoWarning: pango_layout_get_extents: assertion `layout != NULL' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: GtkWarning: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: GtkWarning: Invalid icon size 6

  if box.run() == int(g.RESPONSE_HELP):
./AppRun:26: GtkWarning: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
  if box.run() == int(g.RESPONSE_HELP):
zsh: segmentation fault (core dumped)  ./AppRun

And the backtrace:

Core was generated by `python ./AppRun'.
Program terminated with signal 11, Segmentation fault.
#0  0xb760e68f in gtk_icon_set_render_icon () from /usr/lib/libgtk-x11-2.0.so.0
(gdb) bt
#0  0xb760e68f in gtk_icon_set_render_icon () from /usr/lib/libgtk-x11-2.0.so.0
#1  0xb7761f13 in gtk_widget_render_icon () from /usr/lib/libgtk-x11-2.0.so.0
#2  0xb7622dd0 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#3  0x08273018 in ?? ()
#4  0x08274b78 in ?? ()
#5  0x00000006 in ?? ()
#6  0x00000000 in ?? ()

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)





More information about the pkg-gnome-maintainers mailing list