I am using Gnome 2.8.0-r1. Sometimes logging in takes about five minutes on my 2.6GHz P4 from writing in the password to display the panel, icons, etc... Some built-in apps (not specific, sometimes when I close firefox, the desktop halts for about 2 minutes) such as the sound properties panel sometimes really slow (about five minutes to exit). Logging out often takes about 2 minutes, but not always. I have this problem only when I use Gnome, in xFce4 everithing is fine. My emerge --info: Portage 2.0.51-r3 (gcc34-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-g entoo-r2 i686) ================================================================= System uname: 2.6.9-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Gentoo Base System version 1.6.6 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r6 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -fvisibility-inlines-hi dden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.mirror.icd.hu http://gentoo.inode.at http://ftp.be lnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mir rors/gentoo/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acpi alsa apm avi berkdb bitmap-fonts cdr cdrom crypt cups dg a directfb divx4linux doc dvd dvdr encode esd evo f77 fbcon fbdev foomaticdb for tran fs ftp gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml hal iml ib joystick jpeg libcaca libg++ libwww mad maildir mikmod mmx mono motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python quic ktime readline sdk sdl slang spell sse sse2 ssl svga tcpd tiff truetype truetype -fonts type1-fonts unicode x86 xml2 xmms xv zlib" My gcc version (gnome built with 3.4.2 and the problem appeared before the update): gcc (GCC) 3.4.3 (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I am using the gcc34-x86-2004.2 profile. The bug is reproducable by any user on my system. Reproducible: Sometimes Steps to Reproduce: Just login 3 or 5 times, and I get to the problem. Actual Results: Logging in and some apps to start or to exit takes very long time (minutes) Expected Results: Logging in and running apps cleanly. I expected the problem after two days of usage, so I do not have many programs and advanced properties. The propplem appeared after two complete reinstall.
mmm its probably hanging on some call, but it's really for you to find out. you could strace or gdb an application that is exhibiting the behaviour & try to get some info from there. That the bug is reproducable by any user is not so strange, but is it also reproducable on other systems ? Also i noticed the somewhat exotic 'fvisibility-inlines-hidden' option, are you sure that it is not related ?
I don't have the ability to try this out in other systems. I think the fvisible-inlines-hidden flag is unrelevant, because this is a cxx flag, and gnome doesn't contain any c++ code. It's a good idea to trace back, but I don't no which application will behave like this. The most strange, that it isn't happen in the first one or two logins. It can denote that the error produced by some preferences... But about every users, including root, where I didn't change anything? Sombody knows how can I use a debugger on processes like gnome-panel? (The problem most cases occurs with the panel, when I can figure it out.)
use 'gdb --pid=xxx' to attach it to your panel process, do rebuild without fomit-frame-pointers & add '-g' to your cflags .. also disable stripping (set USE=debug) to get any relevant info. Just remove -fomit-frame-pointers all the way from your cflags, it screws up your sys debugging. Also you are using eg.firefox, mozilla is c++ so yes cxxflags might be involved in some way.
If everithing go well, I'll try this out during the weekend. Here are the processes running while waiting for being logged in: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.1 0.0 1376 508 ? S 19:11 0:00 init [3] root 2 0.0 0.0 0 0 ? S 19:11 0:00 [migration/0] root 3 0.0 0.0 0 0 ? SN 19:11 0:00 [ksoftirqd/0] root 4 0.0 0.0 0 0 ? S 19:11 0:00 [migration/1] root 5 0.0 0.0 0 0 ? SN 19:11 0:00 [ksoftirqd/1] root 6 0.0 0.0 0 0 ? S< 19:11 0:00 [events/0] root 7 0.0 0.0 0 0 ? S< 19:11 0:00 [events/1] root 8 0.0 0.0 0 0 ? S< 19:11 0:00 [khelper] root 9 0.0 0.0 0 0 ? S< 19:11 0:00 [kacpid] root 30 0.1 0.0 0 0 ? S< 19:11 0:01 [kblockd/0] root 31 0.0 0.0 0 0 ? S< 19:11 0:00 [kblockd/1] root 42 0.0 0.0 0 0 ? S 19:11 0:00 [pdflush] root 41 0.0 0.0 0 0 ? S 19:11 0:00 [kirqd] root 43 0.0 0.0 0 0 ? S 19:11 0:00 [pdflush] root 45 0.0 0.0 0 0 ? S< 19:11 0:00 [aio/0] root 44 0.1 0.0 0 0 ? S 19:11 0:01 [kswapd0] root 46 0.0 0.0 0 0 ? S< 19:11 0:00 [aio/1] root 629 0.1 0.0 0 0 ? S< 19:11 0:01 [vesafb] root 639 0.0 0.0 0 0 ? S 19:11 0:00 [kseriod] root 672 0.0 0.0 0 0 ? S< 19:11 0:00 [ata/0] root 673 0.0 0.0 0 0 ? S< 19:11 0:00 [ata/1] root 674 0.0 0.0 0 0 ? S 19:11 0:00 [scsi_eh_0] root 675 0.0 0.0 0 0 ? S 19:11 0:00 [scsi_eh_1] root 691 0.0 0.0 0 0 ? S< 19:11 0:00 [reiserfs/0] root 692 0.0 0.0 0 0 ? S< 19:11 0:00 [reiserfs/1] root 765 0.0 0.0 1364 412 ? S<s 19:11 0:00 udevd root 6060 0.0 0.0 0 0 ? S 19:12 0:00 [khubd] root 8821 0.0 0.1 2104 640 ? Ss 19:12 0:00 metalog [MASTER] root 8822 0.0 0.1 1444 528 ? S 19:12 0:00 metalog [KERNEL] root 10181 0.0 0.2 3248 1476 ? Ss 19:12 0:00 /usr/sbin/sshd root 10202 0.0 0.7 7424 4064 ? Ss 19:12 0:00 /usr/sbin/apache2 -k start -D SSL -D FTPD 101 10248 0.0 0.2 3176 1484 ? Ss 19:12 0:00 /usr/bin/dbus-daemon-1 --system rpc 10329 0.0 0.1 1604 640 ? Ss 19:12 0:00 /sbin/portmap apache 10331 0.0 0.7 7240 3872 ? S 19:12 0:00 /usr/sbin/apache2 -k start -D SSL -D FTPD apache 10332 0.0 0.7 7556 4080 ? S 19:12 0:00 /usr/sbin/apache2 -k start -D SSL -D FTPD apache 10333 0.0 0.7 7556 4080 ? S 19:12 0:00 /usr/sbin/apache2 -k start -D SSL -D FTPD apache 10334 0.0 0.7 7556 4080 ? S 19:12 0:00 /usr/sbin/apache2 -k start -D SSL -D FTPD apache 10335 0.0 0.7 7556 4080 ? S 19:12 0:00 /usr/sbin/apache2 -k start -D SSL -D FTPD apache 10336 0.0 0.7 7556 4080 ? S 19:12 0:00 /usr/sbin/apache2 -k start -D SSL -D FTPD root 10444 0.0 0.0 1576 508 ? Ss 19:12 0:00 /usr/sbin/gpm -m /dev/input/mice -t imps2 -l "a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377" root 10552 0.0 1.0 6876 5412 ? Ss 19:12 0:00 /usr/sbin/hald nobody 10632 0.0 0.1 1712 828 ? Ss 19:12 0:00 /usr/sbin/noip2 -c /etc/no-ip2.conf root 10761 0.0 0.2 2352 1168 ? S 19:12 0:00 /bin/sh /usr/sbin/adsl-connect root 10930 0.0 0.1 1636 720 ? Ss 19:12 0:00 /usr/sbin/cron xfs 11146 0.0 0.5 4204 2584 ? Ss 19:12 0:00 /usr/X11R6/bin/xfs -daemon -config /etc/X11/fs/config -droppriv -user xfs -port -1 root 11214 0.0 0.2 2224 1044 ? Ss 19:12 0:00 login -- root root 11215 0.0 0.1 1420 608 tty2 Ss+ 19:12 0:00 /sbin/agetty 38400 tty2 linux root 11216 0.0 0.1 1420 608 tty3 Ss+ 19:12 0:00 /sbin/agetty 38400 tty3 linux root 11217 0.0 0.1 1420 608 tty4 Ss+ 19:12 0:00 /sbin/agetty 38400 tty4 linux root 11218 0.0 0.1 1420 604 tty5 Ss+ 19:12 0:00 /sbin/agetty 38400 tty5 linux root 11219 0.0 0.1 1420 604 tty6 Ss+ 19:12 0:00 /sbin/agetty 38400 tty6 linux root 11372 0.0 0.4 8920 2400 ? Ss 19:12 0:00 /usr/bin/gdm root 11374 0.0 0.6 9712 3352 ? S 19:12 0:00 /usr/bin/gdm root 11386 0.0 1.8 88516 9588 ? S 19:12 0:00 /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7 root 11467 0.0 0.1 2308 944 ? Ss 19:14 0:00 /usr/sbin/pppd pty /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U -m 1412 noipdefault noauth default-asyncmap defaultroute hide-password nodetach usepeerdns mtu 1492 mru 1492 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp user vasko@interware.hu lcp-echo-interval 20 lcp-echo-failure 3 root 11468 0.0 0.0 1384 492 ? S 19:14 0:00 /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U -m 1412 root 11482 0.0 0.1 1960 864 ? S 19:20 0:00 /usr/sbin/cron root 11483 0.0 0.1 2024 944 ? Ss 19:20 0:00 /bin/bash -c test -x /usr/sbin/run-crons && /usr/sbin/run-crons root 11484 0.0 0.1 2024 1008 ? S 19:20 0:00 /bin/bash /usr/sbin/run-crons root 11493 0.0 0.1 2028 956 ? S 19:20 0:00 /bin/sh /etc/cron.daily/slocate root 11494 8.8 0.1 1860 940 ? RN 19:20 0:35 /usr/bin/updatedb tacsko 11495 0.1 1.2 15828 6544 ? Ss 19:25 0:00 gnome-session tacsko 11515 0.0 0.1 2840 932 ? Ss 19:25 0:00 /usr/bin/ssh-agent -- gnome-session tacsko 11517 0.1 0.4 4092 2532 ? S 19:25 0:00 /usr/libexec/gconfd-2 5 tacsko 11520 0.0 0.1 2152 952 ? S 19:25 0:00 /usr/bin/gnome-keyring-daemon root 11523 0.0 0.2 2524 1496 tty1 Ss 19:26 0:00 -bash root 11527 0.0 0.1 2672 880 tty1 R+ 19:26 0:00 ps aux
As you can see in the output of 'ps aux', updatedb is the only process with remarkable cpu usage, about 10%, but this activity takes for a minute when logging in.
hanging doesn't need to be cpu intensive.. this really is not too helpful... are you using hal ? if you disable hal, does it also happen ? are you using nautilus ? if you disable nautilus, does it also happen ?
Recompiled the whole system without the -fvisible-inlines-hidden flag, now everithing work fine. I tried out the -fvisible-inlines-hidden option on an other system with the same settings and there were no problems. I maybe had a hardware incompatibility issue.