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

Josselin Mouette joss at debian.org
Sun May 27 22:11:58 UTC 2007


tag 425131 + confirmed
thanks

Le samedi 19 mai 2007 à 13:26 +0200, Vincent Lefevre a écrit :
> Package: python-gtk2
> Version: 2.10.4-2
> Severity: normal
> 
> Python GTK2 programs segfault when DISPLAY is not set instead of
> getting a clean behavior when there are errors.

I can reproduce it easily:
$ DISPLAY= python
>>> import gtk
>>> a=gtk.FileChooserDialog()
__main__:1: Warning: invalid (NULL) pointer instance
__main__:1: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
__main__:1: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
__main__:1: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
__main__:1: GtkWarning: gtk_icon_theme_has_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
__main__:1: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
__main__:1: GtkWarning: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
__main__:1: GtkWarning: Invalid icon size 2

__main__:1: GtkWarning: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed

Here is a trace if someone wants to work on it:

#0  0x00002b952359280c in IA__gtk_icon_set_render_icon (icon_set=0x7c84d0, style=0x864040, direction=GTK_TEXT_DIR_LTR, state=GTK_STATE_NORMAL, size=GTK_ICON_SIZE_SMALL_TOOLBAR, widget=0x87e120, detail=0x0) at /scratch/build-area/gtk+2.0-2.10.12/gtk/gtkiconfactory.c:1470
#1  0x00002b95236ca31a in IA__gtk_widget_render_icon (widget=0x87e120, stock_id=<value optimized out>, size=GTK_ICON_SIZE_SMALL_TOOLBAR, detail=0x0) at /scratch/build-area/gtk+2.0-2.10.12/gtk/gtkwidget.c:5567
#2  0x00002b952356796c in shortcuts_insert_path (impl=0x87e120, pos=2, is_volume=1, volume=0x10, path=<value optimized out>, label=<value optimized out>, removable=0, type=SHORTCUTS_VOLUMES) at /scratch/build-area/gtk+2.0-2.10.12/gtk/gtkfilechooserdefault.c:1552
#3  0x00002b952356e5c4 in shortcuts_add_volumes (impl=0x87e120) at /scratch/build-area/gtk+2.0-2.10.12/gtk/gtkfilechooserdefault.c:1871
#4  0x00002b952357226a in gtk_file_chooser_default_constructor (type=<value optimized out>, n_construct_properties=<value optimized out>, construct_params=<value optimized out>) at /scratch/build-area/gtk+2.0-2.10.12/gtk/gtkfilechooserdefault.c:2096
#5  0x00002b9522849ff4 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#6  0x00002b952284aaae in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#7  0x00002b952284ac51 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#8  0x00002b9523575b09 in gtk_file_chooser_widget_constructor (type=<value optimized out>, n_construct_properties=<value optimized out>, construct_params=<value optimized out>) at /scratch/build-area/gtk+2.0-2.10.12/gtk/gtkfilechooserwidget.c:103
#9  0x00002b9522849ff4 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#10 0x00002b952284aa1c in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#11 0x00002b952284ac51 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#12 0x00002b9523572ab3 in gtk_file_chooser_dialog_constructor (type=<value optimized out>, n_construct_properties=<value optimized out>, construct_params=<value optimized out>) at /scratch/build-area/gtk+2.0-2.10.12/gtk/gtkfilechooserdialog.c:279
#13 0x00002b9522849ff4 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#14 0x00002b952270d960 in ?? () from /var/lib/python-support/python2.4/gtk-2.0/gobject/_gobject.so
#15 0x00002b952270dcd1 in ?? () from /var/lib/python-support/python2.4/gtk-2.0/gobject/_gobject.so
#16 0x00002b952324fd52 in ?? () from /var/lib/python-support/python2.4/gtk-2.0/gtk/_gtk.so
#17 0x000000000044a891 in type_call (type=0x2b9523466a20, args=0x2b95212e8050, kwds=0x0) at ../Objects/typeobject.c:435
#18 0x0000000000413a40 in PyObject_Call (func=0x2b95236f9d87, arg=0x10, kw=0x2b9523718190) at ../Objects/abstract.c:1795
#19 0x0000000000471dfc in PyEval_EvalFrame (f=0x62a5d0) at ../Python/ceval.c:3776
#20 0x0000000000475fb6 in PyEval_EvalCodeEx (co=0x2b9521365880, globals=<value optimized out>, locals=<value optimized out>, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2741
#21 0x0000000000476062 in PyEval_EvalCode (co=0x2b95236f9d87, globals=0x10, locals=0x2b9523718190) at ../Python/ceval.c:484
#22 0x0000000000499920 in PyRun_InteractiveOneFlags (fp=<value optimized out>, filename=0x4c37c9 "<stdin>", flags=0x7fff898e41e0) at ../Python/pythonrun.c:1285
#23 0x0000000000499a24 in PyRun_InteractiveLoopFlags (fp=0x2b9521fd2680, filename=0x4c37c9 "<stdin>", flags=0x7fff898e41e0) at ../Python/pythonrun.c:704
#24 0x000000000049a4aa in PyRun_AnyFileExFlags (fp=0x2b9521fd2680, filename=0x4c37c9 "<stdin>", closeit=0, flags=0x7fff898e41e0) at ../Python/pythonrun.c:667
#25 0x0000000000410a5a in Py_Main (argc=<value optimized out>, argv=0x0) at ../Modules/main.c:493
#26 0x00002b9521ca48e4 in __libc_start_main () from /lib/libc.so.6
#27 0x000000000040ff39 in _start ()

-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20070528/46726ee3/attachment.pgp 


More information about the pkg-gnome-maintainers mailing list