Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242924 - gnome-base/gnome-session-2.22.3 dies with bad directories list in .gnome2/session
Summary: gnome-base/gnome-session-2.22.3 dies with bad directories list in .gnome2/ses...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-20 19:15 UTC by Albert Zeyer
Modified: 2010-03-12 13:56 UTC (History)
0 users

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


Attachments
gnome-settings-daemon-bugreport.txt (gnome-settings-daemon-bugreport.txt,20.32 KB, text/plain)
2008-10-20 19:20 UTC, Albert Zeyer
Details
~/.gnome2/session (session,2.68 KB, text/plain)
2008-10-20 23:15 UTC, Albert Zeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2008-10-20 19:15:04 UTC
When I normally try to start the Gnome session, I do see the loading flash screen for about half a second or less and then, it does not load further. After about 2 seconds, I get my normal background, but that is all it does.

When I login with Failsafe and try to start gnome-session there, I get basically the same behaviour and this output:

_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root
SESSION_MANAGER=local/acompneu:/tmp/.ICE-unix/8514
Connection failure: Access denied
Comment 1 Albert Zeyer 2008-10-20 19:17:39 UTC
az@acompneu ~ $ emerge --info
Error during set creation: Redefinition of set 'kde-svn' (sections: 'usersets', 'kde4-overlay sets')
Portage 2.2_rc12 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-rc4 i686)
=================================================================
System uname: Linux-2.6.27-rc4-i686-Intel-R-_Core-TM-2_CPU_E8500_@_3.16GHz-with-glibc2.0
Timestamp of tree: Mon, 13 Oct 2008 16:31:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -ggdb -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/kdesvn-portage /usr/portage/local/layman/mpd /usr/portage/local/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="GAPING_SECURITY_HOLE X X509 a52 aac aalib acl acpi acpi4linux adns agg aiglx alsa amd amuled ao aqua_theme archive ares asf asm async asyncns atm auctex avahi bash-completion berkdb bidi binary binary-drivers bindist bittorrent bl bluetooth bonjour bookmarks bootsplash branding bzip2 bzlib cairo captury cdda cddb cdio cdparanoia cdr cdrom cgi cli clisp clucene cmake codecs corba cracklib crypt cups curl custreloc dbus dedicated dga dhcp disk-partition divx4linux dlopen dmi dnd dri dts dv dvd dvdnav dvdr dvdread dxr3 eds emboss encode esd evo exif faad fam fame ffmpeg firefox flac flash font-server foomaticdb fortran fpx freetype ftp galago gcj gcl gd gdbm ggi gif gimp gl glib glitz glslideshow glut gnome gphoto2 gpm gprof graphviz gs gstreamer gtk gtk2 gzip h323 hal haskell howl howl-compat html httpd hyperestraier iconv icq id3 id3tag imagemagick imap imlib imlib2 inotify insecure-drivers ipv6 isdnlog ithreads jack java jbig jikes jit jpeg jpeg2k kde kerberos lame latex lcms ldap libcaca libnotify libwww linuxthreads-tls live lzo mad matroska mbox mdnsresponder-compat midi mikmod mjpeg mmx mmxext mng mod modplug mozbranding mozcalendar mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mppe-mppc mudflap multislot musepack musicbrainz mysql nautilus ncurses nepomuk net network njb nls nntp nptl nptlonly nsplugin objc offensive ogg oggvorbis openal opengl openmp oss pam pascal pch pcre pdf perl php plasma png pop posix ppds pppd prebuilt-system pthreads pulseaudio python qt qt3 qt3support qt4 quicktime rar rdesktop readline real realmedia reflection rogue rplay rtc rtsp ruby samba sasl screen sdl semantic-desktop server session shorten shout silvercity silverxp skins slp sndfile sockets solver speedo speex spell spl sqlite sse sse2 ssh ssl ssse3 startup-notification stream subversion svg sysfs tagwriting tcltk tcpd teamarena tetex tga themes theora threads threadsafe thumbnail tiff transcode truetype type1 unicode urandom usb v4l v4l2 vcd vdr vidix visualization vlm vorbis win32codecs wma wmf wxwindows x264 x86 xanim xatrix xcomposite xext xface xforms xine xml xorg xosd xpm xprint xrandr xrender xscreensaver xsettings xterm xulrunner xv xvid xvmc zeroconf zip zlib zvbi" ALSA_CARDS="emu10k1" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv apm"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Albert Zeyer 2008-10-20 19:20:19 UTC
When I start gnome-session a second time, I am getting this output:

az@acompneu ~ $ gnome-session
SESSION_MANAGER=local/acompneu:/tmp/.ICE-unix/9538
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Connection failure: Access denied
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.
Window manager warning: Screen 0 on display ":0.0" already has a window manager; try using the --replace option to replace the current window manager.

(That is clear as metacity is already running.)

But then, gnome-settings-daemon is also crashing.
Comment 3 Albert Zeyer 2008-10-20 19:20:50 UTC
Created attachment 169216 [details]
gnome-settings-daemon-bugreport.txt

Backtrace of crashing gnome-settings-daemon.
Comment 4 Albert Zeyer 2008-10-20 19:24:40 UTC
gnome-settings-daemon probably crashes because it is already running:

az@acompneu ~ $ ps ax | grep gnome
 9423 pts/0    Sl     0:01 gnome-terminal
 9429 pts/0    S      0:00 gnome-pty-helper
 9440 pts/1    Sl     0:00 gnome-session
 9443 pts/1    SL     0:00 /usr/bin/gnome-keyring-daemon
 9448 ?        Sl     0:00 /usr/libexec/gnome-settings-daemon
 9468 ?        Ss     0:00 gnome-screensaver
 9492 ?        Ss     0:00 /usr/libexec/gnome-volume-manager --sm-disable
 9493 ?        Ss     0:00 gnome-power-manager
 9538 pts/1    Sl     0:00 gnome-session
 9541 pts/1    SL     0:00 /usr/bin/gnome-keyring-daemon
 9584 ?        Ss     0:00 gnome-power-manager
 9673 ?        Ss     0:00 gnome-power-manager

Probably this is another bug and not related to my main problem with gnome-session.

Or perhaps the problem of Gnome is also not gnome-session but some other tool. Any idea of further debugging?
Comment 5 Albert Zeyer 2008-10-20 19:25:46 UTC
Btw., although gnome-session is running, I am getting this:

az@acompneu ~ $ gnome-session-properties 
could not connect to the session manager
Comment 6 Albert Zeyer 2008-10-20 19:29:22 UTC
az@acompneu ~ $ ls -la /tmp/.ICE-unix/
total 0
drwxrwxrwt  2 root root  240 2008-10-20 21:26 .
drwxrwxrwt 10 root root  296 2008-10-20 21:26 ..
srwxrwxrwx  1 az   users   0 2008-10-20 21:26 1803
srwxrwxrwx  1 az   users   0 2008-10-20 21:26 1858
srwxrwxrwx  1 az   users   0 2008-10-20 21:04 8420
srwxrwxrwx  1 az   users   0 2008-10-20 21:05 8514
srwxrwxrwx  1 az   users   0 2008-10-20 21:10 8616
srwxrwxrwx  1 az   users   0 2008-10-20 21:16 9440
srwxrwxrwx  1 az   users   0 2008-10-20 21:17 9538
srwxrwxrwx  1 az   users   0 2008-10-20 21:21 9634
Comment 7 Albert Zeyer 2008-10-20 19:33:01 UTC
I searched a bit on Google, which program could cause the message "Connection failure: Access denied". The very first result was Pulseaudio.

I stopped Pulseaudio and now, I am not getting this message anymore. But it seems to change nothing, though.
Comment 8 Albert Zeyer 2008-10-20 19:36:34 UTC
I made a new try to start gnome-session (with a clean environment) and now, I am getting "Connection failure: Connection refused". Nothing else has really changed.
Comment 9 Albert Zeyer 2008-10-20 19:37:22 UTC
az@acompneu ~ $ ls -la /tmp/
total 1
drwxrwxrwt  9 root root  248 2008-10-20 21:34 .
drwxr-xr-x 22 root root  576 2008-10-03 19:47 ..
drwxrwxrwt  2 az   users  72 2008-10-20 21:34 .esd
drwx------  3 az   users  72 2008-10-20 21:34 gconfd-az
drwxrwxrwt  2 az   users  72 2008-10-20 21:34 .ICE-unix
drwx------  2 root root   48 2008-10-20 21:34 kde-root
drwx------  2 az   users 128 2008-10-20 21:34 keyring-gRZjYi
drwx------  2 az   users 624 2008-10-20 21:35 orbit-az
drwxrwxrwt  2 root root   72 2008-10-20 21:33 .X11-unix
az@acompneu ~ $ ls -la /tmp/*
/tmp/gconfd-az:
total 0
drwx------ 3 az   users  72 2008-10-20 21:34 .
drwxrwxrwt 9 root root  248 2008-10-20 21:34 ..
drwx------ 2 az   users  72 2008-10-20 21:34 lock
ls: cannot open directory /tmp/kde-root: Permission denied

/tmp/keyring-gRZjYi:
total 0
drwx------ 2 az   users 128 2008-10-20 21:34 .
drwxrwxrwt 9 root root  248 2008-10-20 21:34 ..
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 socket
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 socket.pkcs11
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 ssh

/tmp/orbit-az:
total 5
drwx------ 2 az   users 624 2008-10-20 21:35 .
drwxrwxrwt 9 root root  248 2008-10-20 21:34 ..
-rwx------ 1 az   users   0 2008-10-20 21:34 bonobo-activation-register.lock
-rw-r--r-- 1 az   users 621 2008-10-20 21:34 bonobo-activation-server-ior
srwxr-xr-x 1 az   users   0 2008-10-20 21:33 linc-817-0-2e22225d1c47d
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-835-0-6195d0d3d2261
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-83a-0-47b73ba8d1b46
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-841-0-4177741f24fda
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-84e-0-5a08888d72dab
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-850-0-588ba0996fb63
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-858-0-3300f53779655
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-85f-0-5b72ac7a8b18c
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-865-0-4177741fa0e1a
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-869-0-4177741fa1c54
srwxr-xr-x 1 az   users   0 2008-10-20 21:34 linc-878-0-776e29672d588
srwxr-xr-x 1 az   users   0 2008-10-20 21:35 linc-883-0-5dfeca238d6a

az@acompneu ~ $ ls -la /tmp/.esd
total 0
drwxrwxrwt 2 az   users  72 2008-10-20 21:34 .
drwxrwxrwt 9 root root  248 2008-10-20 21:34 ..
srwxrwxrwx 1 az   users   0 2008-10-20 21:34 socket
az@acompneu ~ $ ls -la /tmp/.ICE-unix
total 0
drwxrwxrwt 2 az   users  72 2008-10-20 21:34 .
drwxrwxrwt 9 root root  248 2008-10-20 21:34 ..
srwxrwxrwx 1 az   users   0 2008-10-20 21:34 2101
az@acompneu ~ $ ls -la /tmp/.X11-unix
total 0
drwxrwxrwt 2 root root  72 2008-10-20 21:33 .
drwxrwxrwt 9 root root 248 2008-10-20 21:34 ..
srwxrwxrwx 1 root root   0 2008-10-20 21:33 X0
Comment 10 Albert Zeyer 2008-10-20 19:38:15 UTC
az@acompneu ~ $ ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 init [3]   
    2 ?        S<     0:00 [kthreadd]
    3 ?        S<     0:00 [migration/0]
    4 ?        S<     0:03 [ksoftirqd/0]
    5 ?        S<     0:00 [migration/1]
    6 ?        S<     0:00 [ksoftirqd/1]
    7 ?        S<     0:00 [events/0]
    8 ?        S<     0:00 [events/1]
    9 ?        S<     0:00 [khelper]
   97 ?        S<     0:00 [kblockd/0]
   98 ?        S<     0:00 [kblockd/1]
  100 ?        S<     0:00 [kacpid]
  101 ?        S<     0:00 [kacpi_notify]
  184 ?        S<     0:00 [cqueue]
  188 ?        S<     0:00 [ata/0]
  189 ?        S<     0:00 [ata/1]
  190 ?        S<     0:00 [ata_aux]
  191 ?        S<     0:00 [ksuspend_usbd]
  196 ?        S<     0:00 [khubd]
  199 ?        S<     0:00 [kseriod]
  255 ?        S<     0:02 [kswapd0]
  297 ?        S<     0:00 [aio/0]
  298 ?        S<     0:00 [aio/1]
  311 ?        S<     0:00 [cifsoplockd]
  312 ?        S<     0:00 [cifsdnotifyd]
  501 ?        S<     0:00 [iscsi_eh]
  583 ?        S<     0:00 [kpsmoused]
  588 ?        S<     0:00 [exec-osm/0]
  589 ?        S<     0:00 [exec-osm/1]
  606 ?        S<     0:00 [kondemand/0]
  607 ?        S<     0:00 [kondemand/1]
  649 ?        S<     0:00 [kirqd]
 1210 ?        S<     0:00 [scsi_eh_0]
 1213 ?        S<     0:00 [scsi_eh_1]
 1400 ?        S<     0:00 [scsi_eh_2]
 1403 ?        S<     0:00 [scsi_eh_3]
 1406 ?        S<     0:00 [scsi_eh_4]
 1409 ?        S<     0:00 [scsi_eh_5]
 1412 ?        S<     0:00 [scsi_eh_6]
 1415 ?        S<     0:00 [scsi_eh_7]
 1809 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 1814 ?        S      0:00 /usr/libexec/gvfsd
 1864 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 1910 ?        S<     0:00 [khpsbpkt]
 1918 ?        S      0:00 /usr/libexec/gvfsd
 1961 ?        S<     0:00 [knodemgrd_0]
 2009 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 2014 ?        S      0:00 /usr/libexec/gvfsd
 2068 ?        S      0:00 -:0                 
 2071 ?        Ssl    0:00 /usr/libexec/bonobo-activation-server --ac-activate -
 2078 ?        S      0:00 dbus-launch --autolaunch e61c0fec98625ce14454220045c9
 2079 ?        Ss     0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-add
 2085 ?        Ss     0:00 xterm -geometry 80x24-0-0
 2095 pts/0    Ss+    0:00 bash
 2101 pts/0    Sl     0:00 gnome-session
 2104 ?        S<     0:00 [reiserfs/0]
 2105 ?        S<     0:00 [reiserfs/1]
 2106 pts/0    S      0:00 /usr/libexec/gconfd-2 5
 2108 pts/0    SL     0:00 /usr/bin/gnome-keyring-daemon
 2111 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 2113 ?        Sl     0:00 /usr/libexec/gnome-settings-daemon
 2116 ?        SL     0:01 esd -nobeeps
 2128 ?        Ssl    0:00 /usr/libexec/bonobo-activation-server --ac-activate -
 2136 ?        S      0:00 /usr/libexec/vino-server --oaf-activate-iid=OAFIID:GN
 2137 ?        Ss     0:00 gnome-screensaver
 2143 pts/0    S      0:00 metacity --sm-save-file 1129201793-11874-2548139685.m
 2158 ?        Ss     0:00 gnome-power-manager
 2159 ?        Ss     0:00 /usr/libexec/gnome-volume-manager --sm-disable
 2163 ?        S      0:00 /usr/libexec/gvfsd
 2168 pts/0    Sl     0:04 /usr/lib/mozilla-firefox/firefox
 2179 pts/0    Sl     0:00 gnome-terminal
 2182 pts/0    S      0:00 gnome-pty-helper
 2183 pts/1    Ss     0:00 -bash
 2201 pts/1    R+     0:00 ps ax
 2214 ?        S<s    0:00 /sbin/udevd --daemon
 3010 ?        S<     0:00 [scsi_eh_8]
 3011 ?        S<     0:00 [usb-storage]
 4829 ?        Ss     0:01 metalog [MASTER]                                    
 4830 ?        S      0:00 metalog [KERNEL]                                    
 4887 ?        Ss     0:00 /usr/sbin/acpid
 4945 ?        Ss     0:02 /usr/bin/dbus-daemon --system
 5004 ?        Ss     0:00 /usr/sbin/hald --use-syslog --verbose=no
 5005 ?        S      0:00 hald-runner
 5008 ?        S      0:00 hald-addon-input: Listening on /dev/input/event1 /dev
 5012 ?        S      0:00 hald-addon-acpi: listening on acpid socket /var/run/a
 5555 ?        Ss     0:00 /sbin/dhcpcd -h acompneu -t 10 eth0
 5842 ?        S      0:00 /usr/sbin/atalkd
 5844 ?        Ss     0:00 avahi-daemon: running [acompneu.local]
 5845 ?        Ss     0:00 avahi-daemon: chroot helper
 5900 ?        Ss     0:00 /usr/sbin/cupsd
 6079 ?        Ss     0:00 pure-ftpd (SERVER)                                  
 6136 ?        Ss     0:00 /usr/sbin/smbd -D
 6145 ?        Ss     0:00 /usr/sbin/nmbd -D
 6179 ?        S      0:00 /usr/sbin/smbd -D
 6205 ?        Ss     0:00 /usr/sbin/sshd
 6262 ?        Ss     0:00 /usr/sbin/cron
 6327 tty1     Ss     0:00 /bin/login --     
 6328 tty2     Ss+    0:00 /sbin/agetty 38400 tty2 linux
 6329 tty3     Ss+    0:00 /sbin/agetty 38400 tty3 linux
 6330 tty4     Ss+    0:00 /sbin/agetty 38400 tty4 linux
 6331 tty5     Ss+    0:00 /sbin/agetty 38400 tty5 linux
 6334 tty6     Ss+    0:00 /sbin/agetty 38400 tty6 linux
 6447 ?        S      0:00 /usr/sbin/papd
 6456 ?        S      0:00 /usr/sbin/cnid_metad
 6465 ?        S      0:00 /usr/sbin/afpd -g nobody -c 50 -n acompneu
 6761 ?        S      0:04 [pdflush]
 6801 ?        S      0:00 [pdflush]
 8235 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 8283 ?        S      0:00 /usr/libexec/gvfsd
 8330 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 8378 ?        S      0:00 /usr/libexec/gvfsd
 8426 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 8473 ?        S      0:00 /usr/libexec/gvfsd
 8517 ?        S      0:01 /usr/libexec/gconfd-2 5
 8522 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 8570 ?        S      0:00 /usr/libexec/gvfsd
 8622 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 8627 ?        S      0:00 /usr/libexec/gvfsd
 8637 ?        S      0:00 /usr/libexec/gvfsd-smb-browse --spawner :1.3 /org/gtk
 8720 tty1     S+     0:00 -bash
 9382 ?        Ss     0:00 /usr/kde/4.2/bin/kdm
 9386 tty7     SLs+   0:29 /usr/bin/X -br -novtswitch -nolisten tcp :0 vt7 -auth
 9446 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 9496 ?        S      0:00 /usr/libexec/gvfsd
 9544 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 9549 ?        S      0:00 /usr/libexec/gvfsd
 9559 ?        S      0:00 /usr/libexec/gvfsd-smb-browse --spawner :1.3 /org/gtk
 9640 ?        Ss     0:00 dbus-daemon --fork --print-address 16 --print-pid 18
 9645 ?        S      0:00 /usr/libexec/gvfsd
Comment 11 Albert Zeyer 2008-10-20 19:47:30 UTC
When I attach with GDB to gnome-session, I have this backtrace:

(gdb) thread apply all bt

Thread 2 (Thread 0xb45fcb90 (LWP 15895)):
#0  0xb7f7f424 in __kernel_vsyscall ()
#1  0xb707effb in read () from /lib/libpthread.so.0
#2  0xb6f17d75 in child_watch_helper_thread (data=0x0) at gmain.c:3857
#3  0xb6f3d1ce in g_thread_create_proxy (data=0x89cb1a8) at gthread.c:635
#4  0xb707817b in start_thread (arg=0xb45fcb90) at pthread_create.c:296
#5  0xb6e6a06e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb5f26700 (LWP 15855)):
#0  0xb7f7f424 in __kernel_vsyscall ()
#1  0xb6e60c73 in *__GI___poll (fds=0xb6ed4ff4, nfds=13, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb6f19f2f in g_main_context_iterate (context=0x8961288, block=1, 
    dispatch=1, self=0x8962098) at gmain.c:2954
#3  0xb6f1a46e in IA__g_main_loop_run (loop=0x8987260) at gmain.c:2853
#4  0xb7805f36 in IA__gtk_main () at gtkmain.c:1163
#5  0x08054fef in main (argc=Cannot access memory at address 0xd
) at main.c:774
#6  0xb6dbefdc in __libc_start_main (main=0x8054a05 <main>, argc=1, 
    ubp_av=0xbfe984a4, init=0x80613f0 <__libc_csu_init>, 
    fini=0x80613e0 <__libc_csu_fini>, rtld_fini=0xb7f8e150 <_dl_fini>, 
    stack_end=0xbfe9849c) at libc-start.c:229
#7  0x080506a1 in _start ()
#0  0xb7f7f424 in __kernel_vsyscall ()
Comment 12 Albert Zeyer 2008-10-20 19:49:14 UTC
When I attach with GDB to gnome-settings-daemon, I see this:

(gdb) thread apply all bt

Thread 2 (Thread 0xb5b21b90 (LWP 15865)):
#0  0xb7fb0424 in __kernel_vsyscall ()
#1  0xb7213ffb in read () from /lib/libpthread.so.0
#2  0xb712fd75 in child_watch_helper_thread (data=0x0) at gmain.c:3857
#3  0xb71551ce in g_thread_create_proxy (data=0x9132220) at gthread.c:635
#4  0xb720d17b in start_thread (arg=0xb5b21b90) at pthread_create.c:296
#5  0xb708a06e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb613f700 (LWP 15863)):
#0  0xb7fb0424 in __kernel_vsyscall ()
#1  0xb7080c73 in *__GI___poll (fds=0xb70f4ff4, nfds=8, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb7131f2f in g_main_context_iterate (context=0x9118cd0, block=1, dispatch=1, self=0x9107998) at gmain.c:2954
#3  0xb713246e in IA__g_main_loop_run (loop=0x9126f98) at gmain.c:2853
#4  0xb7d6cf36 in IA__gtk_main () at gtkmain.c:1163
#5  0x0804b24a in main (argc=152168384, argv=0x2) at main.c:269
#0  0xb7fb0424 in __kernel_vsyscall ()

(Hm, very similar, isn't it?)
Comment 13 Albert Zeyer 2008-10-20 19:50:44 UTC
(In reply to comment #12)
> When I attach with GDB to gnome-settings-daemon, I see this:
> 
> (gdb) thread apply all bt
> 
> Thread 2 (Thread 0xb5b21b90 (LWP 15865)):
> #0  0xb7fb0424 in __kernel_vsyscall ()
> #1  0xb7213ffb in read () from /lib/libpthread.so.0
> #2  0xb712fd75 in child_watch_helper_thread (data=0x0) at gmain.c:3857
> #3  0xb71551ce in g_thread_create_proxy (data=0x9132220) at gthread.c:635
> #4  0xb720d17b in start_thread (arg=0xb5b21b90) at pthread_create.c:296
> #5  0xb708a06e in clone () from /lib/libc.so.6
> 
> Thread 1 (Thread 0xb613f700 (LWP 15863)):
> #0  0xb7fb0424 in __kernel_vsyscall ()
> #1  0xb7080c73 in *__GI___poll (fds=0xb70f4ff4, nfds=8, timeout=-1) at
> ../sysdeps/unix/sysv/linux/poll.c:87
> #2  0xb7131f2f in g_main_context_iterate (context=0x9118cd0, block=1,
> dispatch=1, self=0x9107998) at gmain.c:2954
> #3  0xb713246e in IA__g_main_loop_run (loop=0x9126f98) at gmain.c:2853
> #4  0xb7d6cf36 in IA__gtk_main () at gtkmain.c:1163
> #5  0x0804b24a in main (argc=152168384, argv=0x2) at main.c:269

This seem a bit wrong to me. It has mixed up the argv with argc. Not sure if that means something... Or if the debug data is wrong somehow (I have compiled everything with -ggdb).

> #0  0xb7fb0424 in __kernel_vsyscall ()
> 

Comment 14 Albert Zeyer 2008-10-20 19:54:35 UTC
When I start gnome-panel and nautilus now manually, everything seem to work fine so far and I can normally work with Gnome.

Though, I still get this error:

az@acompneu ~ $ gnome-session-properties 
could not connect to the session manager

Whereby gnome-session is running of course (see my GDB backtrace).
Comment 15 Albert Zeyer 2008-10-20 19:57:15 UTC
(In reply to comment #14)
> When I start gnome-panel and nautilus now manually, everything seem to work
> fine so far and I can normally work with Gnome.

OK, not everything. I cannot visit most places of Nautilus, for example, it says that "computer:", "network:" or "trash:" are unknown protocols. Normal file-browsing does work though.
Comment 16 Mike Auty (RETIRED) gentoo-dev 2008-10-20 22:52:29 UTC
Whoa there Albert!  Thanks for the in-depth debugging information.  5:)  To start us off with though, it appears as though this might be related to pulseaudio.  Can you get your system into a state where it works without puluseaudio, but doesn't with?

If not, can you report what state it's in please?  It's very difficult to help diagnose a moving target...  5:)
Comment 17 Albert Zeyer 2008-10-20 23:01:25 UTC
(In reply to comment #16)
> Whoa there Albert!  Thanks for the in-depth debugging information.  5:)  To
> start us off with though, it appears as though this might be related to
> pulseaudio.  Can you get your system into a state where it works without
> puluseaudio, but doesn't with?
> 

What do you mean with "it"? The normal startup of Gnome? Btw., am I right that this is the same as starting gnome-session or what is happening when I select Gnome in kdm?

And what do you mean "without pulseaudio"? Having it not started? I tried that already and all I get is "Connection failure: Connection refused" instead of "Connection failure: Access denied". I am not really sure if my main problem is related at all to pulseaudio. I wonder why gnome-session is starting / dealing with pulseaudio. Perhaps it tries it as a replacement for ESD. But I can also try to delete pulseaudio at all.

Btw., interesting side note: The sound seems to work. I always hear the start sound when I start gnome-session.

> If not, can you report what state it's in please?  It's very difficult to help
> diagnose a moving target...  5:)
> 

The state of what?
Comment 18 Albert Zeyer 2008-10-20 23:05:43 UTC
I have deleted pulseaudio now. Nothing really has changed, the behaviour is exactly the same. The only difference is that I don't get anymore any message "Connection failure: ...".
Comment 19 Albert Zeyer 2008-10-20 23:12:33 UTC
Btw., from my "ps ax" output, can you see if something is wrong or missing there? I wonder what applications are missing.

I myself notice, that clearly gnome-panel and nautilus (for the background icons) are missing. But anything else? After starting these both, I have more or less everything I need. Is there some other application which is normally running in a Gnome session which was not started on my system? (Sorry in being not so involved into Gnome.)

I also notice, that the running gnome-session is somehow not working. At least that is what I interpret out of this:

az@acompneu ~ $ gnome-session-properties 
could not connect to the session manager
az@acompneu ~ $ 

Again, I am not exactly sure what a session manager even is. I assume that it tries to connect to gnome-session. As what I have understood, gnome-session is the tool which starts all the applications needed for a Gnome session and perhaps other applications I have configured for startup. I assume that gnome-session-properties is exactly for this purpose, to set up additional startup applications. If I am right so far, I really wonder how such easy tools (gnome-session*) could fail.
Comment 20 Albert Zeyer 2008-10-20 23:15:13 UTC
Created attachment 169238 [details]
~/.gnome2/session

I don't know if it helps and I am not sure if that is the main configuration file of gnome-session. Though I attach it, perhaps it can help somehow.

And I will delete this file now to try again with a clean setup for gnome-session. Or are there any other configuration files also involved into the behaviour of gnome-session?
Comment 21 Albert Zeyer 2008-10-20 23:16:54 UTC
Btw., in this session-file, most of the paths are not valid anymore, any of these CurrentDirectory=/mnt/hda5/... would not work because that path does not exist anymore. Perhaps that is the problem here?
Comment 22 Albert Zeyer 2008-10-20 23:19:10 UTC
(In reply to comment #21)
> Btw., in this session-file, most of the paths are not valid anymore, any of
> these CurrentDirectory=/mnt/hda5/... would not work because that path does not
> exist anymore. Perhaps that is the problem here?
> 

That really seems to be the problem. After removing ~/.gnome2/session, it started just fine.

Some strange warnings/error though, but it works:

az@acompneu ~ $ gnome-session
_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root
SESSION_MANAGER=local/acompneu:/tmp/.ICE-unix/24419
Window manager warning: Failed to read saved session file /home/az/.metacity/sessions/default0.ms: Failed to open file '/home/az/.metacity/sessions/default0.ms': No such file or directory
Initializing nautilus-open-terminal extension
seahorse nautilus module initialized

** (nautilus:24461): WARNING **: Unable to add monitor: Not supported

** (gnome-panel:24458): WARNING **: Failed to establish a connection with GDM: No such file or directory


Comment 23 Albert Zeyer 2008-10-20 23:20:43 UTC
I would still consider this as a serious bug in gnome-session. Only because some of the paths in the ~/.gnome2/session are not up-to-date anymore does not mean that it should just give up at starting (or perhaps it does not give up but is just too dump).
Comment 24 Albert Zeyer 2008-10-20 23:35:39 UTC
(In reply to comment #18)
> I have deleted pulseaudio now. Nothing really has changed, the behaviour is
> exactly the same. The only difference is that I don't get anymore any message
> "Connection failure: ...".
> 

gnome-session still works after I reinstalled and started pulseaudio again.

I though note a small delay (perhaps 0.5-1 second) at startup which is a bit annoying. I think it is because of pulseaudio as I have not noted this before. But this is probably not related here for this bug report.
Comment 25 Mike Auty (RETIRED) gentoo-dev 2008-10-21 09:09:29 UTC
Thanks Albert, I think that's enough information for the gnome guys to figure out what needs solving.  They'll advise you on the best resolution for this bug...
Comment 26 Rémi Cardona (RETIRED) gentoo-dev 2008-10-21 12:55:45 UTC
Indeed that's a lot of information to process :) I'll try to recap, please let me know if I'm wrong.

If I understand you correctly, the "session" attachment makes gnome-session hang if /mnt/hda5/home/az isn't available or mounted. And if you change those paths to something that does exist, then it all works, doesn't it?

Thanks for all your efforts
Comment 27 Albert Zeyer 2008-10-21 13:06:21 UTC
(In reply to comment #26)
> Indeed that's a lot of information to process :) I'll try to recap, please let
> me know if I'm wrong.
> 
> If I understand you correctly, the "session" attachment makes gnome-session
> hang if /mnt/hda5/home/az isn't available or mounted. And if you change those
> paths to something that does exist, then it all works, doesn't it?
> 
> Thanks for all your efforts
> 

I haven't tried to change the path, I just deleted the file and then everything worked again.

But I assume that it didn't worked because of the wrong paths.
Comment 28 Albert Zeyer 2008-10-21 13:10:09 UTC
(In reply to comment #27)
> (In reply to comment #26)
> > Indeed that's a lot of information to process :) I'll try to recap, please let
> > me know if I'm wrong.
> > 
> > If I understand you correctly, the "session" attachment makes gnome-session
> > hang if /mnt/hda5/home/az isn't available or mounted. And if you change those
> > paths to something that does exist, then it all works, doesn't it?
> > 
> > Thanks for all your efforts
> > 
> 
> I haven't tried to change the path, I just deleted the file and then everything
> worked again.
> 
> But I assume that it didn't worked because of the wrong paths.
> 

I have tried that now. Just put the file again in the ~/.gnome2 dir and it did not work anymore. Then I fixed all the paths in it and after that, it works (with the file).
Comment 29 Pacho Ramos gentoo-dev 2010-03-12 11:54:08 UTC
I cannot reproduce this with gnome-session-2.26.2-r1, but I am not sure if it's still looking at .gnome2/session :-/
Comment 30 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-03-12 13:56:17 UTC
it is not, 2.22 was the last release to do that iirc. I think this can be closed wontfix no further developement is made on gnome-2.22 nor 2.24. Thanks for reporting anyway.