Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145017 - gaim segfaults quite frequently (i.e. within 1-2 minutes of startup)
Summary: gaim segfaults quite frequently (i.e. within 1-2 minutes of startup)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-24 15:02 UTC by Michael Mohr
Modified: 2006-10-13 08:29 UTC (History)
2 users (show)

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 Michael Mohr 2006-08-24 15:02:24 UTC
Recently I've noticed that Gaim constantly segfaults for no apparent reason.  Per the instructions in the ebuild, I'm submitting a backtrace of one such crash.

One thing I notice is that the crashes seem to only happen whem I'm using the mouse to enter text in a chat window.

#0  0xb7d84b46 in gtk_text_insert () from /usr/lib/libgtk-x11-2.0.so.0
#1  0xb7d9d10c in gtk_text_iter_ends_line () from /usr/lib/libgtk-x11-2.0.so.0
#2  0xb7d9d398 in gtk_text_iter_forward_to_line_end ()
   from /usr/lib/libgtk-x11-2.0.so.0
#3  0xb7da2408 in gtk_text_layout_get_iter_at_line ()
   from /usr/lib/libgtk-x11-2.0.so.0
#4  0xb7da657a in gtk_text_layout_get_iter_at_position ()
   from /usr/lib/libgtk-x11-2.0.so.0
#5  0xb7da662e in gtk_text_layout_get_iter_at_pixel ()
   from /usr/lib/libgtk-x11-2.0.so.0
#6  0xb7db7903 in gtk_text_view_get_buffer () from /usr/lib/libgtk-x11-2.0.so.0
#7  0xb7cfddee in gtk_marshal_BOOLEAN__VOID ()
   from /usr/lib/libgtk-x11-2.0.so.0
#8  0xb78c8769 in g_value_set_boxed () from /usr/lib/libgobject-2.0.so.0
#9  0xb78c9f29 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#10 0xb78dacdd in g_signal_chain_from_overridden ()
   from /usr/lib/libgobject-2.0.so.0
#11 0xb78dbc6d in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#12 0xb78dc049 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#13 0xb7e2222a in gtk_widget_get_default_style ()
   from /usr/lib/libgtk-x11-2.0.so.0
#14 0xb7cf7658 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#15 0xb7cf9102 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#16 0xb7b71e8a in gdk_add_client_message_filter ()
   from /usr/lib/libgdk-x11-2.0.so.0
#17 0xb7855a29 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0xb7856268 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xb7856607 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#20 0xb7cf8bf3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x080f8a42 in main ()
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-24 15:09:30 UTC
Reopen with emerge --info, please.
Comment 2 Michael Mohr 2006-08-24 15:40:52 UTC
Portage 2.1.1_pre5-r3 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-gentoo-r5 i686)
=================================================================
System uname: 2.6.17-gentoo-r5 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.4
Last Sync: Tue, 22 Aug 2006 06:01:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=athlon-xp -mcpu=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -mtune=athlon-xp -mcpu=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/"
LINGUAS=""
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth bzip2 cdr cli crypt cups dlloader doc dri dvd dvdr eds elibc_glibc emboss encode esd foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl sse ssl swig tcltk tcpd tetex tga threads tiff truetype truetype-fonts type1-fonts udev userland_GNU v4l v4l2 video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis xinetd xml xml2 xmms xorg xprint xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Anthony Mirabella 2006-08-27 21:32:34 UTC
I've got a similar error.  Gaim frequently segfaults when moving the mouse over a gaim window.  Here's the backtrace:

#0  0xa7d87914 in gtk_text_backward_delete () from /usr/lib/libgtk-x11-2.0.so.0
#1  0xa7da3960 in gtk_text_iter_ends_line () from /usr/lib/libgtk-x11-2.0.so.0
#2  0x00000007 in ?? ()
#3  0x00000041 in ?? ()
#4  0xafcefa14 in ?? ()
#5  0xafcefa18 in ?? ()
#6  0xafcefa20 in ?? ()
#7  0xafcefa00 in ?? ()
#8  0x084f8000 in ?? ()
#9  0xa7e5b1f7 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#10 0xa7ee2f2a in gtk_major_version () from /usr/lib/libgtk-x11-2.0.so.0
#11 0x00000048 in ?? ()
#12 0x084ad030 in ?? ()
#13 0x08517600 in ?? ()
#14 0x00000041 in ?? ()
#15 0x00000041 in ?? ()
#16 0x00000048 in ?? ()
#17 0xffffffff in ?? ()
#18 0x5c26bc41 in ?? ()
#19 0xf8c27d50 in ?? ()
#20 0x085176d8 in ?? ()
#21 0x08507c48 in ?? ()
#22 0x00000000 in ?? ()

and emerge --info:

Portage 2.1-r2 (!/usr/portage/profiles/default-linux/x86/2006.0, gcc-4.0.3/vanilla, glibc-2.3.6-r4, 2.6.16-suspend2-r8 i686)
=================================================================
System uname: 2.6.16-suspend2-r8 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.12.4
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.4.2-r1
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -pipe -O3 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -pipe -O3 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -mno-tls-direct-seg-refs -fvisibility-inlines-hidden"
DISTDIR="/mnt/nfs_portage/distfiles"
FEATURES="autoconfig ccache confcache distcc distlocks metadata-transfer sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo http://gentoo.osuosl.org"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
LINGUAS="en"
MAKEOPTS="-j10"
PKGDIR="/mnt/nfs_portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/nfs_portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip X a52 aac aalib acl acpi aim aimextras akode alsa amarok amazon amr apache2 apm arts artworkextra asf audiofile avahi avi bash-completion beagle berkdb bitmap-fonts bittorrent blender-game bzip2 cairo ccache cdda cddb cdio cdparanoia cdr cli crypt cups daap dbus dpms dri dts dv dvd dvdr dvdread eds emacs emboss encode esd exif extraengine ffmpeg fftw firefox flac foomaticdb fortran gdbm gif gimpprint glade gnome gpm gstreamer gstreamer010 gtk gtk2 id3 ieee1394 imap imlib ipod ipv6 irssi isdnlog jack jack-tmpfs joystick jpeg kde kerberos ladcca ladspa lame ldap libcaca libg++ libsamplerate libwww live mad matroska mikmod mmx mmxext mng mono mp3 mp4 mp4live mpeg mpeg2 mplayer music musicbrainz mysql mythtv ncurses nforce2 nfs nls nptl nptlonly nsplugin ntfs nvidia offensive ogg oggvorbis openal opengl oss pam pcre pdflib perl png postgres pppd python qt qt3 quicktime rdesktop readline real reflection reiserfs rhythmbox rtc samba screen sdl session shorten skins slang sndfile sounds soundtouch sox spell spl sse sse-filters ssl subtitles subversion svg tcpd theora tiff transcode truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vim vnc vorbis win32codecs wma wma123 wmf x264 xine xml xmms xorg xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick input_devices_evdev kernel_linux linguas_en userland_GNU video_cards_fglrx video_cards_radeon video_cards_vesa video_cards_v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Michael Mohr 2006-08-30 17:32:52 UTC
Okay, I finally figured out what was causing the problem.  It looks like gtk+ was causing the crashes.  The problem was due to gtk+ being compiled with gcc 4.  When I switched back to gcc 3.4.5 and reinstalled gtk+, everything started working again.

So maybe use --oneshot and install gtk+ with gcc 3.4.5, then switch back to gcc 4.1.1.
Comment 5 M. Edward Borasky 2006-09-03 12:24:43 UTC
(In reply to comment #4)
> Okay, I finally figured out what was causing the problem.  It looks like gtk+
> was causing the crashes.  The problem was due to gtk+ being compiled with gcc
> 4.  When I switched back to gcc 3.4.5 and reinstalled gtk+, everything started
> working again.
> 
> So maybe use --oneshot and install gtk+ with gcc 3.4.5, then switch back to gcc
> 4.1.1.
> 


Ah ... that explains it. Yeah, I recently recompiled gtk with 4.1.1 and gaim started crashing mysteriously. Which means this is what? A gaim bug? A gtk bug? or a gcc bug?
Comment 6 Andy Botting 2006-09-04 03:16:13 UTC
I have the same problem on my x86 box. My PPC machine seems to be ok.

Does seem like a shame to re-emerge gtk using gcc3. Anybody have a fix?
Comment 7 Luke Bratch 2006-09-04 15:29:51 UTC
(In reply to comment #4)
> Okay, I finally figured out what was causing the problem.  It looks like gtk+
> was causing the crashes.  The problem was due to gtk+ being compiled with gcc
> 4.  When I switched back to gcc 3.4.5 and reinstalled gtk+, everything started
> working again.
> 
> So maybe use --oneshot and install gtk+ with gcc 3.4.5, then switch back to gcc
> 4.1.1.
> 
This worked fine for gaim, but now every other app that opens a GTK+ dialogue crashes for me.
Comment 8 Bernard Fortz 2006-09-07 03:37:17 UTC
Rebuilding gtk+ with -O2 instead of -O3 solves the problem.
See <a href="http://bugs.gentoo.org/show_bug.cgi?id=133469">bug #133469</a>.
Comment 9 Kathryn Kulick (RETIRED) gentoo-dev 2006-10-13 08:29:19 UTC
I'm going to close this bug as it was a gtk+ issue and the corresponding gtk+ bug has been closed as fixed.