Josselin Mouette wrote:
Please provide the list of running processes when this is happening
(log in to the console and type "ps auxw"), the contents of
~/.gnome2/session (if any), the list of files in /etc/xdg/autostart
and /usr/share/autostart (if any).
Your request was very helpful, because has given me some input on how to
debug the problem. And i think i've found the cause.
The guilty seems to be the file ~/.gnome2/session.
I've tried to analyze the problem with 3 user accounts: two existing one
and a fresh new one. I've found that the new account doesn't show the
problem.
Same thing if i rename the session file to something else: i can
logout/reboot/shutdown correctly.
I haven't ever modified this file by hand but i remember that in some
Gnome version ago, there was a "Save profile" checkbox on every logout,
and i remember that i've enabled that.
I verified that both faulty account have that flag on (under System ->
Preferences -> Sessions -> Session options) but the new account have
the flag off.
So i tried to disable that flag on these two accounts and now i can
logout correctly from one of the two. In the other account i've also
experimented the button "Remember Currently Running Applications" but
that made the logout problem persist even without the save profile flag.
I've corrected the problem renaming the file ~/.gnome2/session.
Now i've renamed the session file and reenabled the remember flag: the
logout/reboot/poweroff works correctly and a new session file was created.
I've attached the initial session file of my account and the other file
you asked for.
The file "bug.user1.ps-auxw.txt" shows the process situation after i've
said to logout to my just opened session (and the command was ignored).
The /usr/share/autostart directory is not present in my system.
Regards.
Cesare Leonardi.
[Default]
0,id=11c0a80a01000121201320500000027750012
0,RestartStyleHint=2
0,Priority=40
0,Program=nautilus
0,CurrentDirectory=/home/cesare
0,CloneCommand=nautilus --sm-config-prefix /nautilus-R4FJdT/
0,RestartCommand=nautilus --sm-config-prefix /nautilus-R4FJdT/ --sm-client-id
11c0a80a01000121201320500000027750012 --screen 0 --load-session
/home/cesare/.nautilus/saved-session-HBCUGU
1,id=11c0a80a01000112768772700000056000030
1,RestartStyleHint=2
1,Priority=40
1,Program=gnome-panel
1,CurrentDirectory=/home/cesare
1,CloneCommand=gnome-panel --sm-config-prefix /gnome-panel-QAwF6Y/
1,RestartCommand=gnome-panel --sm-config-prefix /gnome-panel-QAwF6Y/
--sm-client-id 11c0a80a01000112768772700000056000030 --screen 0
2,id=11c0a80a01000119542219600000029790007
2,RestartStyleHint=2
2,Priority=20
2,Program=metacity
2,CurrentDirectory=/home/cesare
2,DiscardCommand=rm -f
/home/cesare/.metacity/sessions/11c0a80a01000119542219600000029790007.ms
2,CloneCommand=metacity
2,RestartCommand=metacity --sm-client-id 11c0a80a01000119542219600000029790007
3,RestartCommand=gnome-power-manager --sm-disable
4,RestartCommand=bluetooth-applet
5,RestartCommand=gnome-at-visual -s
6,RestartCommand=/usr/lib/gnome-volume-manager/gnome-volume-manager
--sm-disable
7,RestartCommand=/usr/bin/system-config-printer-applet
8,RestartCommand=kerneloops-applet
9,RestartCommand=system-config-printer-applet
num_clients=10
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 2100 712 ? Ss Sep02 0:01 init [2]
root 2 0.0 0.0 0 0 ? S< Sep02 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< Sep02 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? S< Sep02 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< Sep02 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S< Sep02 0:00 [events/0]
root 7 0.0 0.0 0 0 ? S< Sep02 0:00 [khelper]
root 39 0.0 0.0 0 0 ? S< Sep02 0:00 [kblockd/0]
root 41 0.0 0.0 0 0 ? S< Sep02 0:00 [kacpid]
root 42 0.0 0.0 0 0 ? S< Sep02 0:00 [kacpi_notify]
root 114 0.0 0.0 0 0 ? S< Sep02 0:00 [kseriod]
root 146 0.0 0.0 0 0 ? S Sep02 0:00 [pdflush]
root 147 0.0 0.0 0 0 ? S Sep02 0:00 [pdflush]
root 148 0.0 0.0 0 0 ? S< Sep02 0:00 [kswapd0]
root 149 0.0 0.0 0 0 ? S< Sep02 0:00 [aio/0]
root 611 0.0 0.0 0 0 ? S< Sep02 0:00 [ksuspend_usbd]
root 612 0.0 0.0 0 0 ? S< Sep02 0:00 [khubd]
root 636 0.0 0.0 0 0 ? S< Sep02 0:00 [khpsbpkt]
root 721 0.0 0.0 0 0 ? S< Sep02 0:00 [knodemgrd_0]
root 727 0.0 0.0 0 0 ? S< Sep02 0:00 [ata/0]
root 728 0.0 0.0 0 0 ? S< Sep02 0:00 [ata_aux]
root 819 0.0 0.0 0 0 ? S< Sep02 0:00 [kstriped]
root 824 0.0 0.0 0 0 ? S< Sep02 0:00 [ksnapd]
root 856 0.0 0.0 0 0 ? S< Sep02 0:00 [kjournald]
root 930 0.0 0.1 3076 1660 ? S<s Sep02 0:00 udevd --daemon
root 1312 0.0 0.0 0 0 ? S< Sep02 0:00 [kpsmoused]
root 1423 0.0 0.0 0 0 ? S< Sep02 0:00 [sony-laptop]
root 1436 0.0 0.0 0 0 ? S< Sep02 0:00 [tifm]
root 1520 0.0 0.0 0 0 ? S< Sep02 0:00 [pccardd]
root 1601 0.0 0.0 0 0 ? S< Sep02 0:00 [kmmcd]
root 1741 0.0 0.0 0 0 ? S< Sep02 0:00 [kdmflush]
root 1745 0.0 0.0 0 0 ? S< Sep02 0:00 [kdmflush]
root 1748 0.0 0.0 0 0 ? S< Sep02 0:00 [kdmflush]
root 1797 0.0 0.0 0 0 ? S< Sep02 0:00 [kjournald]
root 1798 0.0 0.0 0 0 ? S< Sep02 0:00 [kjournald]
root 1799 0.0 0.0 0 0 ? S< Sep02 0:00 [kjournald]
daemon 2003 0.0 0.0 1892 508 ? Ss Sep02 0:00 /sbin/portmap
-i 127.0.0.1
root 2309 0.0 0.0 0 0 ? S< Sep02 0:00 [kondemand/0]
root 2354 0.0 0.1 27404 1420 ? Sl Sep02 0:00
/usr/sbin/rsyslogd -c3
root 2394 0.0 0.0 1764 632 ? Ss Sep02 0:00
/usr/sbin/acpid -c /etc/acpi/events
100 2404 0.0 0.1 2744 1144 ? Ss Sep02 0:00
/usr/bin/dbus-daemon --system
avahi 2416 0.0 0.1 2884 1444 ? Ss Sep02 0:00 avahi-daemon:
running [tommaso.local]
avahi 2417 0.0 0.0 2884 484 ? Ss Sep02 0:00 avahi-daemon:
chroot helper
nobody 2431 0.0 0.1 5868 1684 ? S Sep02 0:00
/usr/bin/freepopsd -n -s nobody.nogroup -b 127.0.0.1
root 2450 0.0 0.2 6344 2276 ? Ss Sep02 0:00 /usr/sbin/cupsd
root 2517 0.0 0.1 5600 1820 ? Ss Sep02 0:00
/usr/lib/postfix/master
root 2531 0.0 0.0 3200 600 ? S Sep02 0:00
/usr/sbin/smartd --pidfile /var/run/smartd.pid
root 2559 0.0 0.0 3272 512 ? Ss Sep02 0:00 /usr/sbin/famd
-T 0
ntp 2572 0.0 0.1 4260 1292 ? Ss Sep02 0:00 /usr/sbin/ntpd
-p /var/run/ntpd.pid -u 108:108 -g
105 2585 0.0 0.3 5896 3628 ? Ss Sep02 0:01 /usr/sbin/hald
root 2586 0.0 0.1 3436 1176 ? S Sep02 0:00 hald-runner
root 2606 0.0 0.1 3500 1148 ? S Sep02 0:00
hald-addon-input: Listening on /dev/input/event0 /dev/input/event4
/dev/input/event5 /dev/input/event6 /dev/input/event7 /dev/input/event8
root 2610 0.0 0.1 3512 1224 ? S Sep02 0:00
/usr/lib/hal/hald-addon-cpufreq
105 2611 0.0 0.0 2272 936 ? S Sep02 0:00
hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 2625 0.0 0.1 3500 1152 ? S Sep02 0:00
hald-addon-storage: polling /dev/hdc (every 2 sec)
root 2633 0.0 0.1 3452 1552 ? Ss Sep02 0:00 /usr/sbin/hcid
-x -s
root 2639 0.0 0.0 0 0 ? S< Sep02 0:00 [btaddconn]
root 2640 0.0 0.0 0 0 ? S< Sep02 0:00 [btdelconn]
root 2654 0.0 0.0 0 0 ? S< Sep02 0:00 [krfcommd]
root 2666 0.0 0.1 13976 1984 ? Ss Sep02 0:00 /usr/sbin/gdm
root 2670 0.0 0.3 14416 3116 ? S Sep02 0:00 /usr/sbin/gdm
root 2679 0.0 0.1 3848 1028 ? Ss Sep02 0:00
/usr/bin/system-tools-backends
daemon 2688 0.0 0.0 2048 436 ? Ss Sep02 0:00 /usr/sbin/atd
root 2712 0.0 0.0 3952 984 ? Ss Sep02 0:00 /usr/sbin/cron
root 2741 0.0 0.1 2628 1200 tty1 Ss Sep02 0:00 /bin/login --
root 2742 0.0 0.0 1764 500 tty2 Ss+ Sep02 0:00 /sbin/getty
38400 tty2
root 2743 0.0 0.0 1764 500 tty3 Ss+ Sep02 0:00 /sbin/getty
38400 tty3
root 2744 0.0 0.0 1764 500 tty4 Ss+ Sep02 0:00 /sbin/getty
38400 tty4
root 2745 0.0 0.0 1764 504 tty5 Ss+ Sep02 0:00 /sbin/getty
38400 tty5
root 2746 0.0 0.0 1764 500 tty6 Ss+ Sep02 0:00 /sbin/getty
38400 tty6
cesare 2883 0.0 0.3 40904 3240 ? Ssl Sep02 0:00
/usr/lib/bonobo-activation/bonobo-activation-server --ac-activate
--ior-output-fd=16
root 2981 0.0 0.0 2988 868 ? Ss Sep02 0:00 /usr/sbin/pppd
call dsl-provider
postfix 3081 0.0 0.1 5608 1764 ? S Sep02 0:00 pickup -l -t
fifo -u -c
postfix 3082 0.0 0.1 5648 1800 ? S Sep02 0:00 qmgr -l -t
fifo -u
cesare 3543 0.4 0.4 7836 4304 ? S 00:29 0:00
/usr/lib/libgconf2-4/gconfd-2 14
root 3547 2.2 1.1 19292 12064 tty7 Ss+ 00:29 0:02
/usr/X11R6/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
cesare 3566 0.0 0.2 15132 2200 ? S 00:29 0:00
/usr/bin/gnome-keyring-daemon -d --login
cesare 3567 0.0 0.6 27964 6712 ? Ssl 00:29 0:00
x-session-manager
cesare 3619 0.0 0.0 3100 692 ? S 00:29 0:00
/usr/bin/dbus-launch --exit-with-session /usr/bin/seahorse-agent --execute
x-session-manager
cesare 3620 0.0 0.0 2616 960 ? Ss 00:29 0:00
/usr/bin/dbus-daemon --fork --print-pid 6 --print-address 9 --session
cesare 3626 0.0 0.7 23672 7476 ? Ss 00:29 0:00
/usr/bin/seahorse-agent --execute x-session-manager
cesare 3629 0.2 0.9 40664 9960 ? Sl 00:29 0:00
gnome-settings-daemon
cesare 3648 0.1 0.7 16380 7468 ? S 00:29 0:00 metacity
--sm-client-id 11c0a80a01000119542219600000029790007
cesare 3649 0.7 1.7 68196 17500 ? S 00:29 0:00 nautilus
--sm-config-prefix /nautilus-R4FJdT/ --sm-client-id
11c0a80a01000121201320500000027750012 --screen 0 --load-session
/home/cesare/.nautilus/saved-session-HBCUGU
cesare 3650 2.2 2.1 37464 21604 ? S 00:29 0:01 gnome-panel
--sm-config-prefix /gnome-panel-QAwF6Y/ --sm-client-id
11c0a80a01000112768772700000056000030 --screen 0
cesare 3652 0.0 0.2 15180 2564 ? Ss 00:29 0:00
gnome-screensaver
cesare 3656 0.0 0.3 10536 3792 ? S 00:29 0:00
/usr/lib/gnome-vfs-2.0/gnome-vfs-daemon
cesare 3657 0.0 0.5 14568 5536 ? S 00:29 0:00
bluetooth-applet
cesare 3664 0.2 1.0 25696 10916 ? Ss 00:29 0:00
gnome-power-manager --sm-disable
cesare 3665 0.1 1.1 24460 12160 ? S 00:29 0:00
/usr/bin/python /usr/bin/system-config-printer-applet
cesare 3667 0.0 0.4 13904 4980 ? S 00:29 0:00
kerneloops-applet
cesare 3669 0.1 1.1 24464 12164 ? S 00:29 0:00
/usr/bin/python /usr/bin/system-config-printer-applet
cesare 3671 0.0 0.4 19724 4868 ? Ss 00:29 0:00
/usr/lib/gnome-volume-manager/gnome-volume-manager --sm-disable
cesare 3688 0.0 0.0 2996 1004 ? S 00:29 0:00
/usr/lib/nautilus-cd-burner/mapping-daemon
cesare 3691 0.2 1.2 33568 12832 ? S 00:29 0:00
/usr/lib/gnome-applets/gweather-applet-2
--oaf-activate-iid=OAFIID:GNOME_GWeatherApplet_Factory --oaf-ior-fd=19
cesare 3695 0.1 0.9 20872 9308 ? S 00:29 0:00
/usr/lib/gnome-applets/cpufreq-applet
--oaf-activate-iid=OAFIID:GNOME_CPUFreqApplet_Factory --oaf-ior-fd=20
cesare 3697 0.3 0.7 20304 7760 ? S 00:29 0:00
/usr/lib/gnome-applets/multiload-applet-2
--oaf-activate-iid=OAFIID:GNOME_MultiLoadApplet_Factory --oaf-ior-fd=21
cesare 3700 0.2 1.2 33676 12676 ? Sl 00:29 0:00
/usr/lib/gnome-applets/mixer_applet2
--oaf-activate-iid=OAFIID:GNOME_MixerApplet_Factory --oaf-ior-fd=22
cesare 3704 0.5 0.9 22776 10088 ? S 00:29 0:00
/usr/lib/gnome-netstatus/gnome-netstatus-applet
--oaf-activate-iid=OAFIID:GNOME_NetstatusApplet_Factory --oaf-ior-fd=31
root 3707 0.0 0.1 4764 1716 tty1 S 00:30 0:00 -bash
root 3715 0.0 0.0 4180 972 tty1 R+ 00:31 0:00 ps auxw
total 40
drwxr-xr-x 2 root root 4096 2008-07-22 01:44 .
drwxr-xr-x 4 root root 4096 2007-07-26 00:50 ..
-rw-r--r-- 1 root root 2715 2008-07-20 19:10 bluetooth-applet.desktop
-rw-r--r-- 1 root root 5151 2008-05-29 19:01 gnome-at-session.desktop
-rw-r--r-- 1 root root 7169 2008-01-19 12:41 gnome-volume-manager.desktop
-rw-r--r-- 1 root root 238 2008-04-08 12:45 kerneloops-applet.desktop
-rw-r--r-- 1 root root 5395 2008-06-22 19:17 print-applet.desktop