Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135540 - GTK2 apps crash after upgrade to gcc-4.1.1
Summary: GTK2 apps crash after upgrade to gcc-4.1.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-04 10:22 UTC by Sam Kimbrel
Modified: 2006-06-05 03:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Kimbrel 2006-06-04 10:22:42 UTC
After my last Portage sync (06/01/2006) and an upgrade to gcc-4.1.1, GTK+ applications all crash upon launch.

Steps to reproduce:
1. Have gtk+ installed along with gaim, gtkam, etc. all working properly.
2. Update portage tree, switch to 2006.0 profile, and upgrade shadow and gcc.
3. Try to use gtk+ apps.

Actual behavior:
1. GTK+ apps crash.

Expected behavior:
1. GTK+ apps work.

Running gaim in gdb results in the following:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1216420176 (LWP 19641)]
0xb7bc5f5d in g_param_spec_object () from /usr/lib/libgobject-2.0.so.0
(gdb) bt
#0  0xb7bc5f5d in g_param_spec_object () from /usr/lib/libgobject-2.0.so.0
#1  0xb7e7554f in gtk_tree_view_get_type () from /usr/lib/libgtk-x11-2.0.so.0
#2  0xb7bd1373 in g_type_class_ref () from /usr/lib/libgobject-2.0.so.0
#3  0xb7bbf50c in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#4  0xb7bbf728 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#5  0xb7e7d8c8 in gtk_tree_view_new_with_model () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x080c1f97 in gaim_gtk_blist_update_plugin_actions ()
#7  0x0806d338 in gaim_blist_show ()
#8  0x08074d6c in gaim_connection_set_state ()
#9  0xb73052e4 in oscar_caps_to_string () from /usr/lib/gaim/liboscar.so
#10 0xb72dac7c in aim_bos_changevisibility () from /usr/lib/gaim/liboscar.so
#11 0xb72ee1b1 in aim_rxdispatch () from /usr/lib/gaim/liboscar.so
#12 0xb72fb7ff in oscar_caps_to_string () from /usr/lib/gaim/liboscar.so
#13 0x080d9d69 in gaim_gtkdialogs_remove_chat ()
#14 0xb7b77ec2 in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#15 0xb7b5a091 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#16 0xb7b5b419 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#17 0xb7b5b672 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#18 0xb7de1a82 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#19 0x0810c6e4 in main ()
The backtrace is the same every time I try to run it.

gtk-demo behaves similarly:
(gtk-demo:19657): GLib-GObject-CRITICAL **: g_param_spec_internal: assertion `(name[0] >= 'A' && name[0] <= 'Z') || (name[0] >= 'a' && name[0] <= 'z')' failed

Program received signal SIGSEGV, Segmentation fault.
0xb7be7f5d in g_param_spec_object () from /usr/lib/libgobject-2.0.so.0
(gdb) bt
#0  0xb7be7f5d in g_param_spec_object () from /usr/lib/libgobject-2.0.so.0
#1  0xb7e0254f in gtk_tree_view_get_type () from /usr/lib/libgtk-x11-2.0.so.0
#2  0xb7bf3373 in g_type_class_ref () from /usr/lib/libgobject-2.0.so.0
#3  0xb7be0bc3 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#4  0xb7be1493 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#5  0xb7be1728 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#6  0xb7e0a89d in gtk_tree_view_new () from /usr/lib/libgtk-x11-2.0.so.0
#7  0x080591cb in ?? ()
#8  0x0805f6e0 in ?? ()
#9  0xbf98b361 in ?? ()
#10 0xb785a2a1 in __guard_setup () from /lib/libc.so.6
#11 0xb7859f21 in __libc_start_main () from /lib/libc.so.6
#12 0x08050241 in ?? ()

gtkam:
(gtkam:19667): GLib-GObject-CRITICAL **: g_param_spec_internal: assertion `(name[0] >= 'A' && name[0] <= 'Z') || (name[0] >= 'a' && name[0] <= 'z')' failed

Program received signal SIGSEGV, Segmentation fault.
0xb7c84f5d in g_param_spec_object () from /usr/lib/libgobject-2.0.so.0
(gdb) bt
#0  0xb7c84f5d in g_param_spec_object () from /usr/lib/libgobject-2.0.so.0
#1  0xb7ef354f in gtk_tree_view_get_type () from /usr/lib/libgtk-x11-2.0.so.0
#2  0xb7c90373 in g_type_class_ref () from /usr/lib/libgobject-2.0.so.0
#3  0xb7c90021 in g_type_class_ref () from /usr/lib/libgobject-2.0.so.0
#4  0xb7c7dbc3 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#5  0xb7c7e493 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#6  0xb7c7e728 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#7  0x0805c35b in ?? ()
#8  0x080af0e8 in ?? ()
#9  0x00000000 in ?? ()

emerge info:
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm)  2600+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r1, 2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-ffast-math -O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-ffast-math -O2 -march=athlon-xp -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage"
PORTDIR="/home/portage/tree/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aalib alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cdr cfq-ts cli crypt cups curl divx divx4linux dri dvd emboss encode ethereal exif expat fam ffmpeg flac foomatic foomaticdb fortran gdbm gif gimpprint glut gmp gpm gtk gtk2 idn imagemagick imlib ipv6 isdnlog java jpeg junit lcms libg++ libwww live lua mad mhash mikmod ming mmx mmxext mng motif mozilla mp3 mpeg musicbrainz nas ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre pdflib perl pic png posix ppds pppd python quicktime readline real recode reflection samba sdl session spell spl sse ssl staircase svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb visualization vorbis win32codecs wxwindows xine xml xml2 xorg xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS

Nothing on the system has been built with the new gcc version (the old one was 3.4.6) and the only changes made were the following:
unmerge success: sys-apps/pam-login-4.0.14

completed emerge (1 of 3) sys-apps/sandbox-1.2.17 to /
emerge (2 of 3) sys-apps/portage-2.0.54-r2 to /
unmerge success: sys-apps/portage-2.0.54-r1
RESTARTING emerge via exec() after change of portage version.
completed emerge (1 of 1) sys-apps/shadow-4.0.15-r2 to /

completed emerge (1 of 5) dev-libs/gmp-4.1.4-r3 to /
completed emerge (2 of 5) sys-devel/binutils-config-1.8-r7 to /
completed emerge (3 of 5) sys-devel/binutils-2.16.1-r2 to /
completed emerge (4 of 5) dev-libs/mpfr-2.2.0_p8 to /
completed emerge (5 of 5) sys-devel/gcc-4.1.1 to /
Comment 1 Sam Kimbrel 2006-06-05 03:30:37 UTC
Well, I rebuilt GTK against the new toolchain, and things work again now.
Probably should have tried that first before filing a bug...