Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jun 2006 16:55:55 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Norbert Kaufmann <norbert@akumakun.de>
Cc:        gnome@freebsd.org
Subject:   Re: pygtk unusable - Segmentation fault: 11 (core dumped)
Message-ID:  <1149972955.26551.15.camel@shumai.marcuscom.com>
In-Reply-To: <448A8B19.1070109@akumakun.de>
References:  <448A8B19.1070109@akumakun.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-1hoQdzWqC62PwS1arbEx
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2006-06-10 at 11:04 +0200, Norbert Kaufmann wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> Hello experts,
>=20
> could anybody please give me a hint on this issue.
>=20
> ~$ uname -rs
> FreeBSD 6.1-PRERELEASE
>=20
> ~$ python -V
> Python 2.4.3
>=20
> ~$ python /usr/local/share/examples/py-gtk/pygtk-demo/pygtk-demo.py
>=20
> (process:1049): GLib-GObject-CRITICAL **: gtype.c:2254: initialization
> assertion failed, use IA__g_type_init() prior to this function
>=20
> (process:1049): GLib-GObject-CRITICAL **: gtype.c:2294: initialization
> assertion failed, use IA__g_type_init() prior to this function
>=20
> (process:1049): GLib-GObject-CRITICAL **: gtype.c:2254: initialization
> assertion failed, use IA__g_type_init() prior to this function
>=20
> (process:1049): GLib-GObject-CRITICAL **: gtype.c:2294: initialization
> assertion failed, use IA__g_type_init() prior to this function
>=20
> (process:1049): GLib-GObject-CRITICAL **: gtype.c:2254: initialization
> assertion failed, use IA__g_type_init() prior to this function
>=20
> (process:1049): GLib-GObject-CRITICAL **: g_object_new: assertion
> `G_TYPE_IS_OBJECT (object_type)' failed
> Segmentation fault: 11 (core dumped)
>=20
> The pygtk version is 2.8.6, gtk 2.8.18. This problem occured after
> upgrading from the 2.6 versions of pygtk and gtk.
>=20
> gdb tells me something like this (avoided to build everything new with
> debugging symbols)
> (gdb) bt
> #0  0x287f62e3 in gtk_rc_find_module_in_path ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #1  0x287f5658 in gtk_rc_scanner_new () from
> /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #2  0x287f4f74 in gtk_rc_scanner_new () from
> /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #3  0x287f3f7b in gtk_rc_scanner_new () from
> /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #4  0x287f20a1 in gtk_rc_parse_string ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #5  0x287f225b in gtk_rc_parse_string ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #6  0x287f1cb3 in gtk_rc_get_default_files ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #7  0x287f346d in gtk_rc_reparse_all_for_settings ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #8  0x288037dd in gtk_settings_get_for_screen ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #9  0x28803838 in gtk_settings_get_default ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #10 0x2880f709 in gtk_style_get_type () from
> /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #11 0x28385e58 in g_type_create_instance ()
>    from /usr/local/lib/libgobject-2.0.so.0
> #12 0x2836dda2 in g_object_new_valist ()
>    from /usr/local/lib/libgobject-2.0.so.0
> #13 0x2836d2c1 in g_object_newv () from #14 0x2836da77 in
> g_object_new_valist ()
>    from /usr/local/lib/libgobject-2.0.so.0
> #15 0x2836cde6 in g_object_new () from /usr/local/lib/libgobject-2.0.so.0
> #16 0x28810027 in gtk_style_new () from /usr/X11R6/lib/libgtk-x11-2.0.so.=
0
> #17 0x288bf770 in gtk_widget_get_default_style ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #18 0x288b979b in gtk_widget_get_type ()
>    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
> #19 0x28385b9e in g_type_create_instance ()
>    from /usr/local/lib/libgobject-2.0.so.0
> #20 0x2836dda2 in g_object_new_valist ()
>    from /usr/local/lib/libgobject-2.0.so.0
> #21 0x2836d2c1 in g_object_newv () from /usr/local/lib/libgobject-2.0.so.=
0
> #22 0x2834bbc8 in ?? ()
>    from /usr/local/lib/python2.4/site-packages/gtk-2.0/gobject.so
> #23 0x0826ecc0 in ?? ()
> #24 0x00000000 in ?? ()
> #25 0xbfbfdfc0 in ?? ()
> #26 0x2867f990 in ?? ()
>    from /usr/local/lib/python2.4/site-packages/gtk-2.0/gtk/_gtk.so
> #27 0x00000000 in ?? ()
> #28 0xbfbfdfd8 in ?? ()
> #29 0xbfbfdff8 in ?? ()
> /usr/local/lib/libgobject-2.0.so.0
> #30 0x28594aa8 in init_gtk ()
>    from /usr/local/lib/python2.4/site-packages/gtk-2.0/gtk/_gtk.so
> Previous frame identical to this frame (corrupt stack?)
>=20
>=20
> Any clues?

Works fine for me.  Without debugging symbols, the backtrace does not
help.  You might try portupgrade -Rf x11-toolkits/py-gtk2.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-1hoQdzWqC62PwS1arbEx
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQBEizHbb2iPiv4Uz4cRAhloAKCT9YcRWCsUIdAZ+i3cYO4rvtksUACeJ7jQ
mLO0f0yu0fVfmorHVrXUlew=
=SgvH
-----END PGP SIGNATURE-----

--=-1hoQdzWqC62PwS1arbEx--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1149972955.26551.15.camel>