Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65109 - Nautilus not opening, processes appear to hang
Summary: Nautilus not opening, processes appear to hang
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-23 09:43 UTC by Joe Urbanski
Modified: 2004-11-09 07:33 UTC (History)
3 users (show)

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


Attachments
Stack trace output where nautilus doesn't launch (output.notlaunching.txt,401.64 KB, text/plain)
2004-09-23 09:44 UTC, Joe Urbanski
Details
Stack trace output where nautilus does launch (output.launches.txt,1.07 MB, text/plain)
2004-09-23 09:45 UTC, Joe Urbanski
Details
gdb backtrace of hanging processes (backtrace.txt,20.06 KB, text/plain)
2004-09-28 07:29 UTC, Joe Urbanski
Details
2nd gdb backrtrace log of hanging process (gdb.backtrace.2.txt,20.02 KB, text/plain)
2004-09-29 13:56 UTC, Joe Urbanski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Urbanski 2004-09-23 09:43:17 UTC
I've been having this problem for about the past year, oddly enough around the time I started using ntpd daemons on all my machines to keep there clocks synched.  The same behavior happens on both my home computer (custom built AthlonXP), my laptop (Dell Latitude D600, P4) and my workstation at work (Dell Optiplex GX400 P4), all running Gentoo linux with Gnome 2.6.2-r1 with Nautilus 2.6.3.  In fact, the problem started occuring while I was running Gnome 2.4.  I do not have nautilus set to draw my desktop (hate desktop icons) on any of the machines.  The problem occurs intermittantly, and only a reboot will get nautilus to load properly.  A majority of the time, nautilus will not work as soon as I log in, but I have noticed a few occasions where I will close all nautilus windows then try to reopen nautilus later, where the same behavior is displayed.  When launched from the shell, I get no errors of any kind.  I've recently having a nautilus window set to open when I log in, and this has reduced the number of incidents where nautilus will not open.

Reproducible: Sometimes
Steps to Reproduce:
1. Reboot computer.
2. Login into X with Gnome desktop
3. Open terminal, type nautilus at the prompt.

Actual Results:  
Nothing.  No nautilus window.  No errors on the terminal.  Shell prompt never
returns.

Expected Results:  
Opened a nautilus window.

After this had happened again yesterday I finally decided to write up a bug
about this behavior.  The only Gentoo forum post I've found with anyone else
describing this behavior was:

http://forums.gentoo.org/viewtopic.php?t=194768

I performed 2 stack traces, one from my workstation where nautilus doesn't
appear (output.notlaunching.txt), and one from my laptop, where it does
(output.launches.txt).  I'm attaching both.  When nautilus doesn't launch, the
first cloned process (pid 23864) appears to be stuck in a loop during a poll()
call.  This all happens around line 5309 in output.notlaunching.txt and similar
events around line 4952 in output.launches.txt.  I'm not a developer so I won't
presume to further describe or theorize about what's happening there.
Comment 1 Joe Urbanski 2004-09-23 09:44:51 UTC
Created attachment 40227 [details]
Stack trace output where nautilus doesn't launch

File generated from "strace -o output -f nautilus"
Comment 2 Joe Urbanski 2004-09-23 09:45:46 UTC
Created attachment 40228 [details]
Stack trace output where nautilus does launch

Generated with "strace -o output -f nautilus"
Comment 3 foser (RETIRED) gentoo-dev 2004-09-27 08:32:40 UTC
its probably more interesting to attach gdb to the 'hanging' nautilus process & get a backtrace. You have to recompile nautilus with debugging info.

Also you should always provide your 'emerge info' with a bugreport, like the bugform states.

Comment 4 Joe Urbanski 2004-09-28 07:27:32 UTC
Here's my 'emerge info':
Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -funroll-loops -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/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 -funroll-loops -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://spout.ussg.indiana.edu/gentoo-portage/"
USE="X acpi alsa apm arts avi berkdb bitmap-fonts cdparanoia cdr crypt cups divx4linux dvd dvdr encode esd evo foomaticdb gdbm gif gimpprint gnome gnutls gpm gstreamer gtk gtk2 gtkhtml imlib java jpeg kde kerberos krb4 ldap libg++ libwww lzo mad maildir mikmod mmx motif mozilla mpeg nas ncurses nls oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xinerama xml2 xmms xprint xv xvid zlib"
Comment 5 Joe Urbanski 2004-09-28 07:29:03 UTC
Created attachment 40615 [details]
gdb backtrace of hanging processes

Here's the requested gdb backtrace of the hanging processes.
Comment 6 foser (RETIRED) gentoo-dev 2004-09-28 08:09:43 UTC
the backtrace is pretty useless as it is, you have to set 'debug' in USE & recompile nautilus for a start i guess.
Comment 7 Joe Urbanski 2004-09-29 13:55:21 UTC
Nautilus was compiled with debug flags in the last backtrace I submitted, and "etcat -u nautilus" verified that.  Just in case, I reemerged it with "USE="debug" emerge -va nautilus" after verifying that the debug flags were being picked up.  I even remerged a second time with the FEATURES="nostrip" option as suggested by the output of "etcat -u nautilus".  On both occasions, the backtrace results were similar to the first submitted gdb backtrace log.  I'll attach the last backtrace log.

Perhaps I need to reemerge one or more of the libraries gdb is loading symbols from (or failing to load since they are not emerged with the debug flag) using the debug flag?
Comment 8 Joe Urbanski 2004-09-29 13:56:19 UTC
Created attachment 40731 [details]
2nd gdb backrtrace log of hanging process
Comment 9 Pär Karlsson 2004-10-15 05:13:56 UTC
I got the same behaviour after upgrading to gnome-2.8.
Starting nautilus from a command shell gives nothing. I ran strace on the process and it is waiting on a futex.

Such as:
feinorgh@aiskylos ~ $ strace -p `pidof nautilus`
Process 9522 attached - interrupt to quit
futex(0x8119564, FUTEX_WAIT, 3, NULL

I don't know if this is the same problem as the original bug reporters but the symptoms are similar.

emerge info:
Portage 2.0.51_rc9 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.8-gentoo-r9 i686)
=================================================================
System uname: 2.6.8-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
Gentoo Base System version 1.5.3
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
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-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -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/share/config /usr/lib/mozilla/defaults/pref /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/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc distlocks fixpackages sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://ftp.rhnet.is/pub/gentoo/ http://gentoo.inode.at/ http://mirror.gentoo.ru/pub/mirror/gentoo/ http://ftp.iasi.roedu.net/mirrors/gentoo.org/ http://mirrors.tds.net/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.seren.com/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://kmssghost1.kmss.com/gentoo-portage"
USE="3ds X X509 aac aalib acl acpi acpi4linux afs aim alsa amd antlr apache2 ardour-ksi asterisk async atlas auctex audiofile autofs avi bdf berkdb bitmap-fonts blender-game bonobo bsh cairo cap caps cddb cdf cdparanoia cdr chroot clamav clanJavaScript clanVoice clisp cmucl crypt cscope ctype cups curl curlwrappers dbx dga dio directfb distribution divx4linux dlopen dnd doc droproot dts dv dvd dvdread editor edl eds emacs emacs-w3 encode erandom escreen esd ethereal evo exif ext-png ext-zlib f77 faac faad fam fastcgi fbcon fbdev ffmpeg fftw flac flash flatfile fltk fluidsynth fmod foomaticdb ftp gb gcj gcl gd gdbm geoip ggi gif gimp gimpprint glade glgd gmp gmtsuppl gnome gnomedb gnuplot gphoto2 gpm gps graphviz gs gsl gstreamer gtk gtk2 guile hal hdf hdf5 iconv icq ide imagemagick imap imlib imlib2 jabber jack jack-tmpfs java javadoc javascript jbig jboss jce jdepend jp2 jpeg js jsch jta junit jython ladcca latex lcms ldap libcaca libg++ libgd libgda libsamplerate libwww live lm_sensors ltsp lua lufsusermount lzo lzw lzw-tiff mad maildir matroska mbox mbrola mcal md5sum mdb memlimit mhash mikmod mime ming mldonkeypango mmx mmx2 mng mono mozcalendar mozdevelop mozilla moznocompose moznoirc mozp3p mozsvg mp3 mpeg mpeg4 mpi mplayer msn music mysql nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses netbeans netcdf network nis nls nocd nptl ntlm oav objc odbc offensive oggvorbis openal opengl openssh oro oscar oss pam parse-clocks pcntl pcre pdf pdflib perl php pic pie plotutils png posix ppds print psyco pthreads python qt quicktime quotes readline recode rplay rrdtool rtc ruby ruby18 samba sasl scanner sdk sdl server session sharedmem skey slang slp sndfile snmp soap sockets socks5 soundtouch sox speex spell spl sse sse2 ssl stencil-buffer svg sysvipc t1lib tcltk tcpd tcsim tetex tga theora tidy tiff timidity tokenizer tools transcode truetype type1 unicode usagi usb v4l v4l2 vhosts vim vim-with-x virus-scan vnc wmf wxwin wxwindows x86 xchattext xforms xfs xine xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid xvmc yahoo yaz yv12 zlib video_cards_matrox"
Comment 10 Pär Karlsson 2004-10-15 06:31:08 UTC
Quick fix: stopping d-bus seems to fix the problem. After /etc/init.d/dbus stop, nautilus starts without any problems.

Comment 11 foser (RETIRED) gentoo-dev 2004-10-15 09:03:25 UTC
@ comment 9 & 10 : File another bug, because the reporter is using gnome 2.6, so not using dbus. Also, try to get some debug info from dbus, what it is hanging on obviously...

@ reporter : with that backtrace we still can't do much, i guess you'll have to build more (system ?) stuff with debugging info. In the initial report you mention  it started when you started to use a ntpd daemon, if you disable this daemon does that influence the behaviour ?
Comment 12 Joe Urbanski 2004-11-09 07:33:48 UTC
I tried not using ntp, and didn't have any problems, but then again, the problem was so intermittant, I wasn't sure there was a relationship.  I'd rahter fight with nautilus and leave ntpd up so all my machines are time-synched (call me anal).  Regardless, I've switched my Gnome desktops to have Nautilus draw the desktop, just not show any icons, which seems to prevent the problem pretty well.  That keeps a nautilus process spawned early and always around.

I've switched the status to Resolved: WORKSFORME, as:
1) this seems to be a problem unique to me
2) I don't ahve the time to rebuild every library with the debug flag
3) I've got an acceptable workaround

Cheers everyone...