Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303341 - gnome and gnome-related software crashes
Summary: gnome and gnome-related software crashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-03 15:18 UTC by Martin Wolters
Modified: 2010-02-07 14:27 UTC (History)
0 users

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


Attachments
xsession-errors (xsession-errors.txt,2.34 KB, text/plain)
2010-02-03 15:19 UTC, Martin Wolters
Details
gnome-terminal stderr output (gnome-terminal-bt,1014 bytes, text/plain)
2010-02-03 15:27 UTC, Martin Wolters
Details
xsession-errors with backtrace (xsession-errors.txt,3.13 KB, text/plain)
2010-02-03 15:30 UTC, Martin Wolters
Details
xsession-errors (.xsession-errors,2.24 KB, text/plain)
2010-02-04 02:27 UTC, Martin Wolters
Details
.xsession-errors (.xsession-errors,1.62 KB, text/plain)
2010-02-04 09:32 UTC, Martin Wolters
Details
Xorg.0.log.old (Xorg.0.log.old,22.40 KB, text/plain)
2010-02-05 17:37 UTC, Martin Wolters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wolters 2010-02-03 15:18:32 UTC
I recently opened bug 303175 after experiencing crashes with mozilla-firefox. I found the crashes to cease when building net-libs/xulrunner with USE=-gnome, and believing the bug is in fact related to gnome, I started an X-session with gnome and saw it crashing. Also other programs related to gnome seem to crash randomly, like net-im/pidgin.

Reproducible: Always

Steps to Reproduce:
1. Login with gdm and choose the session GNOME
2. GNOME doesn't start, instead crashes.
Actual Results:  
GNOME and related software crashes randomly

Expected Results:  
GNOME and related software runs more or less stable.

Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.33-rc6-git i686)
=================================================================
System uname: Linux-2.6.33-rc6-git-i686-AMD_Phenom-tm-_II_X4_920_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 02 Feb 2010 14:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.4.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA Q3AEULA PUEL skype-eula"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=amdfam10 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://mirror.netcologne.de/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/own"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib acl acpi aim alsa apache2 apm bash-completion berkdb branding bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl curlwrappers cvs cxx dbus dri dts dvb dvd dvdr eds emboss encode evo exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp fuse gdbm gif gimp glut gnome gnome-keyring gnutls gpm gstreamer gtk gtkhtml guile gzip hal hddtemp iconv icq imagemagick imap ipod ipv6 jabber javascript joystick jpeg jpeg2k kde lame latex ldap libcaca libnotify lm_sensors mad matroska mikmod mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer msn mudflap musicbrainz mysql nautilus ncurses networking nls nptl nptlonly nsplugin offensive ogg openal opengl openmp oscar pam pcre pdf perl png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session smartcard smp sockets speex spell spl sse sse2 ssl ssse3 startup-notification subversion svg svga sysfs syslog tcpd theora threads thunar tiff truetype unicode usb v4l v4l2 vdpau vorbis wifi win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="dibusb-usb1 dibusb-usb2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv vesa nouveau nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Wolters 2010-02-03 15:19:17 UTC
Created attachment 218295 [details]
xsession-errors

This is the ~/.xsession-errors created while GNOME crashes.
Comment 2 Martin Wolters 2010-02-03 15:27:13 UTC
Created attachment 218297 [details]
gnome-terminal stderr output

As suggested, I built sys-apps/dbus with debug symbols (USE=debug) and ran a random GNOME application (gnome-terminal) to supply you with a backtrace.
Comment 3 Martin Wolters 2010-02-03 15:30:30 UTC
Created attachment 218299 [details]
xsession-errors with backtrace

This is the ~/.xsession-errors created with a backtrace of dbus.
Comment 4 Martin Wolters 2010-02-03 16:05:47 UTC
Rebuilding glib bindings (dev-libs/dbus-glib, dev-cpp/glibmm and net-libs/telepathy-glib) seemed to have had some positive effect. GNOME now starts, but some panel items are missing. These are the workspace selector, clock and window selector, among others. Application starters and the menu are there and working. When I try to add something to a panel, both panels hang, i.e. they don't update anymore and clicking on them does nothing. Using previously opened windows keeps working, though.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-03 17:08:03 UTC
you may be facing bug #297483. Which version of glib are you running ?
Comment 6 Martin Wolters 2010-02-03 17:21:06 UTC
Installed versions:  2.22.4(2)(05:23:11 PM 02/03/2010)(fam -debug -doc -hardened -selinux -xattr)
Comment 7 Martin Wolters 2010-02-03 17:27:54 UTC
Since in the referenced bug report it was suggested to rebuild glib's reverse dependencies and the ebuilds which I rebuilt (dbus-glib etc) were direct reverse dependencies of glib, I'm now running "revdep-rebuild -L libglib-2.0.so.0". It's 221 packets to rebuild, so it'll take some time. I'll report whether this works.
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-03 17:38:13 UTC
also, it would be nice to know if you had 2.22.3 installed at any time and if you already had to rebuild some packages depending on glib to fix eventual problems that occured with the 2.22.2 -> 2.22.3 upgrade.
Comment 9 Martin Wolters 2010-02-03 17:44:26 UTC
genlop tells me this:
     Sat Dec 19 15:39:21 2009 >>> dev-libs/glib-2.22.3
     Sat Jan 30 21:52:48 2010 >>> dev-libs/glib-2.22.4

Problems arose only after 2.22.4 had been installed, but then instantly. I noticed firefox first, so I opened the other bug, but it soon was obvious that other programs broke as well.
Comment 10 Martin Wolters 2010-02-03 17:47:13 UTC
20 packets into the rebuild of all reverse dependencies of glib, pidgin started working again. Seems like I'm on the right path.
Comment 11 Martin Wolters 2010-02-04 02:26:53 UTC
Done. And now almost nothing in X works anymore. gdm and kdm show unreadable messed up fonts. gdm locks up. gnome starts to some extend, then hangs before completely done, triggering a restart of X. Even Fluxbox hangs randomly. Sometimes these errors hang the complete system. I have no idea how to even diagnose these problems. .xsession-errors tell me about resources not being available. Any help where to look would be appreciated.
Comment 12 Martin Wolters 2010-02-04 02:27:53 UTC
Created attachment 218335 [details]
xsession-errors

New .xsession-errors after starting gnome after rebuild of all reverse dependencies of glib
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-04 09:22:13 UTC
looks like you are having a problem with xcb now which kills X.
Comment 14 Martin Wolters 2010-02-04 09:32:15 UTC
Created attachment 218383 [details]
.xsession-errors

I rebuilt x11-libs/xcb-util-0.3.6, x11-proto/xcb-proto-1.6 and x11-libs/libxcb-1.5
Still gnome crashes. I don't know what exactly caused it, since I rebuilt quite a lot last night, but gdm works fine now. No more messed up text or crashes. Fluxbox also works. So I have least an X session now.
Comment 15 Martin Wolters 2010-02-04 09:33:20 UTC
I am slowly coming to think that my system plays a fucking bad joke on me. :(
Comment 16 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-02-04 13:06:02 UTC
I'm wondering why you're not getting bug-buddy popping up when gnome programs crash... That would at least give us some backtraces.

Or maybe I'm just confused as to what happens.  If you start a gnome session, does it come up at all?  Does it hang?  Does it kick you back to gdm?

If you're in flukebox, and you run a gnome program (say gnome-terminal) does it work?  Does it crash?

To many sets of rebuilds and changing symptoms have confused me as to what's going on right now.
Comment 17 Martin Wolters 2010-02-04 14:37:51 UTC
> I'm wondering why you're not getting bug-buddy popping up when gnome programs
> crash... That would at least give us some backtraces.
>
> Or maybe I'm just confused as to what happens.  If you start a gnome session,
> does it come up at all?  Does it hang?  Does it kick you back to gdm?
When I start a gnome session, it begins to start. Then, right after the panels pop up, X seems to crash. I cant' move the cursor or do anything for a few seconds. Then gdm comes back again.

> If you're in flukebox, and you run a gnome program (say gnome-terminal) does 
> it work?  Does it crash?
I didn't test a lot of programs, but pidgin and gnome-terminal run perfectly
well. I don't think it's a gnome problem anymore.

> To many sets of rebuilds and changing symptoms have confused me as to what's
> going on right now.
I'm sorry. But I can tell you, I am quite confused as well.

I thought, maybe it would help to get a backtrace of X, as it seems to me,
since the cursor won't move and bug-buddy doesn't pop up that's what actually
crashes. I also don't get that "Your session lasted less than 10 seconds" message, although the session obviously lasted much less.

Is there a way to run X in gdb to get a backtrace? I have noticed, that if I put gnome-session into .xinitrc and then just run startx, X crashes at the exact same moment as it would after I started gnome with gdm, but when it does, I can't do anything at all. The screen freezes and I can't get back to the VT. A cold reboot is all I can do. So I'd rather not start X by itself, but use gdm when I try to get a backtrace.

If I can't run X in gdb in any sensible way, maybe there is another way to get some diagnostics.

Thanks in advance.
Comment 18 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-02-05 16:12:26 UTC
Actually, X prints it's backtrace into it's log when it crashes.  Look in /var/log/Xorg.0.log.old which should be the previous (crashed) session.  That should be useful.
Comment 19 Martin Wolters 2010-02-05 17:37:04 UTC
Created attachment 218553 [details]
Xorg.0.log.old

This is the log file. It doesn't contain a backtrace, but maybe there's something else in it that helps.
Comment 20 Martin Wolters 2010-02-05 17:59:58 UTC
After having a look on the Xorg log, I figured I had been using some more or less experimental video driver; maybe that was the cause. I updated mesa, libdrm and xf86-video-nouveau (all from git) and just to make sure, the kernel (git), and everything seems fine now.

I feel honestly stupid and I'm sorry to have wasted your time. But thanks a lot for all your patience.
Comment 21 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-02-07 14:27:20 UTC
No problem.  Glad it's working again.