Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271023 - gnome-base/gnome-panel-2.26: restart/shutdown does not work as expected
Summary: gnome-base/gnome-panel-2.26: restart/shutdown does not work as expected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-24 06:00 UTC by peng shao
Modified: 2009-11-20 18:30 UTC (History)
4 users (show)

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


Attachments
dbus-monitor's log (dbus-monitor_log.txt,8.05 KB, text/plain)
2009-05-24 06:03 UTC, peng shao
Details
xsession-errors (xsession-errors,2.24 KB, text/plain)
2009-05-26 13:18 UTC, peng shao
Details
xsession-errors (.xsession-errors,3.33 KB, text/plain)
2009-10-18 09:49 UTC, Marcello Magaldi
Details
var-log-messages (gnome-session.log,12.36 KB, text/plain)
2009-10-26 20:48 UTC, Marcello Magaldi
Details
part of my /var/log/messages (messages.log,29.45 KB, text/plain)
2009-10-28 07:56 UTC, peng shao
Details
var-log-messages (gnome-session.log,27.01 KB, text/plain)
2009-10-28 15:22 UTC, Marcello Magaldi
Details
normally this patch solves the segfault (gnome-session-2.26.2-xsmp-stop-throw-error.patch,1.14 KB, patch)
2009-10-28 16:27 UTC, Romain Perier (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description peng shao 2009-05-24 06:00:28 UTC
If I press from the panel System--->Shutdown--->Restart/Shutdown. It did not restart/shutdown my machine as before, instead I return to the gdm logon window. This is very similar to the symptom reported in bug 70403. I am a rookie in gentoo so I am really afraid of wasting everybody's time on reporting an existed bug. But I am a little confused after reading 70403 since in the past years I always restarted/shutdown my machine through panel and this issue appeared just yesterday after an "emerge -avuDN world". And the most strange
thing is that this issue does NOT happen everytime. Occasionally I got my system
restart/shutdown normally. But in most of the time I was leaded back to 
gdm logon window.




Reproducible: Sometimes

Steps to Reproduce:
1.GNOME panel, system
2.Shutdown
3.Restart/Shutdown

Actual Results:  
Return to gdm window, the same result as pressing ctrl+alt+backspace

Expected Results:  
restart/shutdown my entire system

emerge --info 

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.10.1-r0, 2.6.29-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.0
Timestamp of tree: Sun, 24 May 2009 03:00:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8
dev-lang/python:     2.4.4-r13, 2.6.2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.cyberuse.com/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
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/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt cups dbus djvu dri dvd dvdr dvdread eds emboss encode esd evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vim-syntax vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="ice1712" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Possibly-related package use-flag
[ebuild   R   ] sys-auth/consolekit-0.3.0-r1  USE="pam -debug -doc -policykit" 
[ebuild   R   ] gnome-base/gnome-session-2.26.1  USE="branding ipv6 policykit -debug -doc"
[ebuild   R   ] sys-auth/policykit-0.9-r1  USE="bash-completion pam -doc (-selinux) -zsh-completion" 
[ebuild   R   ] gnome-base/gnome-2.24.1  USE="cdr cups dvdr esd ldap -accessibility -mono" 
[ebuild   R   ] gnome-base/gdm-2.20.10-r1  USE="accessibility branding consolekit ipv6 pam tcpd -afs -debug -dmx -gnome-keyring -remote (-selinux) -xinerama"

I do not know if it is the problem of policykit use-flag in consolekit. But
I tried several times to compile consolekit/gnome-session with/without that flag
and the problem remained.

By the way, I found some warning message in /var/log/messages which I am not sure whether harmless or not

3448 May 24 01:14:58 toyhill gnome-session[2981]: WARNING: Unable to determine session: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
3449 May 24 01:14:58 toyhill gnome-session[2981]: WARNING: Could not connect to ConsoleKit: Could not get owner of name 'org.freedesktop.ConsoleKit': no such name
3450 May 24 01:14:58 toyhill gnome-session[2981]: WARNING: Could not connect to ConsoleKit: Could not get owner of name 'org.freedesktop.ConsoleKit': no such name
3451 May 24 01:14:58 toyhill gnome-session[2981]: WARNING: Could not connect to ConsoleKit: Could not get owner of name 'org.freedesktop.ConsoleKit': no such name

And my /etc/Policy/Policy.conf:

 1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
 2 
 3 <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
 4 "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
 5 
 6 <!-- See the manual page PolicyKit.conf(5) for file format -->
 7 
 8 <config version="0.1">
 9 <define_admin_auth group="wheel"/>
10 <match user="root">
11         <return result="yes"/>
12 </match>
13 <match user="shaopeng">
14         <return result="yes"/>
15         </match>
16 
17 </config>
Comment 1 peng shao 2009-05-24 06:03:06 UTC
Created attachment 192266 [details]
dbus-monitor's log

I run in terminal dbus-monitor>dbus-monitor_log.txt and obtain this log file.
I wish it may help.Thanks
Comment 2 Don Swam 2009-05-25 12:40:06 UTC
I'am seeing the same problem
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-25 22:11:29 UTC
you are having inconsistent policykit USE flag across your system, this is a really bad idea. Also you forgot to show use your emerge -pv gnome-panel.

Please also check for any suspicious message in your ~/.xsession-errors.log and /var/log/messages
Comment 4 Don Swam 2009-05-26 00:41:22 UTC
[ebuild   R   ] gnome-base/gnome-panel-2.26.1  USE="-doc -eds -networkmanager -policykit" 0 kB

Seems to be strange errors in .xsession-errors but they don't seem to affect anything.
don don # more .xsession-errors
/etc/X11/gdm/Xsession: Beginning session setup...
which: no keychain in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linu
x-gnu/gcc-bin/4.3.3:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin)
/etc/X11/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- gnome-ses
sion
GNOME_KEYRING_SOCKET=/tmp/keyring-k0KA6g/socket
SSH_AUTH_SOCK=/tmp/keyring-k0KA6g/socket.ssh
GNOME_KEYRING_PID=3689
gnome-session[3654]: WARNING: Could not launch application '104a527bd0b49f9b1f12
4323241430307900000036480014.desktop': Unable to start application: Failed to ex
ecute child process "invest-applet" (No such file or directory)

** (gnome-power-manager:3704): WARNING **: DBUS error: Could not get owner of na
me 'org.gnome.ScreenSaver': no such name
** (gnome-power-manager:3704): DEBUG: proxy is NULL, maybe the daemon responsibl
e for org.gnome.ScreenSaver is not running?

** (gnome-power-manager:3705): WARNING **: DBUS error: Could not get owner of na
me 'org.gnome.ScreenSaver': no such name
** (gnome-power-manager:3705): DEBUG: proxy is NULL, maybe the daemon responsibl
e for org.gnome.ScreenSaver is not running?
*** ERROR ***
TI:02:51:27	TH:0x6512c0	FI:gpm-main.c	FN:main,232
 - Power Manager is already running in this session.
Traceback:
	gnome-power-manager [0x409767]
	gnome-power-manager [0x420ba2]
	/lib/libc.so.6(__libc_start_main+0xe6) [0x7f4f737aca26]
	gnome-power-manager [0x408ff9]
** Message: Initializing gksu extension...

** (nautilus:3698): WARNING **: Unable to add monitor: Not supported
error: option -s not recognized

HP Linux Imaging and Printing System (ver. 3.9.2)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


Usage: hp-systray [OPTIONS]


[OPTIONS]61%)
  Set the logging     -l<level> or --logging=<level>                        
  level:                                                                    
                      <level>: none, info*, error, warn, debug (*default)   
  Run in debug mode:  -g (same as option: -ldebug)                          
  This help           -h or --help                                          
  information:                                                              

  Startup even if no  -x or --force-startup                                 
  hplip CUPS queues                                                         
  are present:                                                              


** (nautilus:3698): WARNING **: Unable to add monitor: Not supported
/usr/lib64/python2.6/site-packages/dbus/connection.py:242: DeprecationWarning: o
bject.__init__() takes no parameters
  super(Connection, self).__init__(*args, **kwargs)

(gnome-panel:3697): libglade-WARNING **: Unexpected element <requires-version> i
nside <glade-interface>.
X Error: BadValue (integer parameter out of range for operation) 2
  Major opcode:  25
  Minor opcode:  0
  Resource id:  0x0
No running windows found

Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-26 06:33:08 UTC
try rebuilding either gnome-panel with USE="policykit" or gnome-session with USE="-policykit". Technically consolekit should have the same setting (either enabled or disabled) according to gnome-session and gnome-panel but it is much less harmful so you can leave it as is in the first place.
Comment 6 peng shao 2009-05-26 09:44:48 UTC
(In reply to comment #5)
> try rebuilding either gnome-panel with USE="policykit" or gnome-session with
> USE="-policykit". Technically consolekit should have the same setting (either
> enabled or disabled) according to gnome-session and gnome-panel but it is much
> less harmful so you can leave it as is in the first place.

Dear Gilles:

Thank you very much for your suggestion. I did as you suggested, but I found if I use "-policykit" for gnome-session then when I press restart/shutdown, ,y desktop frooze and all icons and panels disappeared... then nothing happened. and other combinations of "policykit" or "-policykit" did not solve my problem. I even did a clean install with keywords ~amd64 and found the problem remain there... 

By the way I met bug 263367 during the clean install so I have to use gnome-2.26 from gnome overlay...

This is really frustrating :(

Thank you very much for your concern on my issue.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-26 11:57:49 UTC
(In reply to comment #6)
> 
> Thank you very much for your suggestion. I did as you suggested, but I found if
> I use "-policykit" for gnome-session then when I press restart/shutdown, ,y
> desktop frooze and all icons and panels disappeared... then nothing happened.

just to be sure, in both case, when you do what I suggested, you first log off of X then restart gdm from the command line and then you try to log in and shut down right ?

In the first case, is there any other package that as a policykit USE flag enabled ?
Comment 8 Don Swam 2009-05-26 12:51:24 UTC
I checked all packages that use policykit, and all were compiled with -policykit
Comment 9 peng shao 2009-05-26 13:18:10 UTC
Created attachment 192495 [details]
xsession-errors
Comment 10 peng shao 2009-05-26 13:19:22 UTC
(In reply to comment #7)

> just to be sure, in both case, when you do what I suggested, you first log off
> of X then restart gdm from the command line and then you try to log in and shut
> down right ?
> 
> In the first case, is there any other package that as a policykit USE flag
> enabled ?
> 
Dear Gilles:

Thank you. Sorry for being not detailed. Please let me explain what I did specifically: Everytime I just simply restart my machine with "reboot". I would use (+) to denote a package with policykit USE and (-) with not, for short

1. gnome-panel(+), gnome-session(-), consolekit(+)
Result: problem remains, and if emerge -pvuDN world I got

emerge: there are no ebuilds built with USE flags to satisfy "sys-auth/consolekit[-policykit]".
!!! One of the following packages is required to complete your request:
- sys-auth/consolekit-0.3.0-r1 (Change USE: -policykit)
(dependency required by "sys-apps/hal-0.5.12_rc1-r4" [installed])
(dependency required by "x11-base/xorg-server-1.5.3-r6" [installed])
(dependency required by "x11-drivers/xf86-video-nv-2.1.12" [installed])

2.gnome-panel(-) gnome-session(+) consolekit(-)
Result: problem remains.

3.gnome-panel(-) gnome-session(+) consolekit(-)
Result: problem remains.

I have no very clear idea how to check which packages are using 
policykit USE so I tried emerge -pev world | grep policykit
and found there are three packages, sys-apps/hal-0.5.12_rc1-r4,
gconf-2.26.2, and gnome-extra/gnome-power-manager-2.24.4-r2
but all of them are using -policykit USE.

I attached my .xsession-errors as reference.

Thank you for your concern on my issue:)
Comment 11 Don Swam 2009-05-26 13:28:21 UTC
equery h policykit will list everything that uses policykit use flag
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-26 14:10:52 UTC
(In reply to comment #10)
> Thank you. Sorry for being not detailed. Please let me explain what I did
> specifically: Everytime I just simply restart my machine with "reboot".

perfect

> I would use (+) to denote a package with policykit USE and (-) with not, for short
> 
> 1. gnome-panel(+), gnome-session(-), consolekit(+)
> Result: problem remains, and if emerge -pvuDN world I got

ok

> emerge: there are no ebuilds built with USE flags to satisfy
> "sys-auth/consolekit[-policykit]".
> !!! One of the following packages is required to complete your request:
> - sys-auth/consolekit-0.3.0-r1 (Change USE: -policykit)
> (dependency required by "sys-apps/hal-0.5.12_rc1-r4" [installed])
> (dependency required by "x11-base/xorg-server-1.5.3-r6" [installed])
> (dependency required by "x11-drivers/xf86-video-nv-2.1.12" [installed])

that's because hal needs USE="policykit" on consolekit if either consolekit or policykit is enabled on hal.

> 2.gnome-panel(-) gnome-session(+) consolekit(-)
> Result: problem remains.
> 
> 3.gnome-panel(-) gnome-session(+) consolekit(-)
> Result: problem remains.
> 

ok, but then it seems I fail to convey the idea that the following cases were the most important to test:

1. gnome-panel(-) gnome-session(-) consolekit(-)
2. gnome-panel(+) gnome-session(+) consolekit(+/- but preferably +)

> I attached my .xsession-errors as reference.

looks like there is no debugging messages there.
Comment 13 peng shao 2009-05-26 14:44:34 UTC
(In reply to comment #12)
> (In reply to comment #10)
> > Thank you. Sorry for being not detailed. Please let me explain what I did
> > specifically: Everytime I just simply restart my machine with "reboot".
> 
> perfect
> 
> > I would use (+) to denote a package with policykit USE and (-) with not, for short
> > 
> > 1. gnome-panel(+), gnome-session(-), consolekit(+)
> > Result: problem remains, and if emerge -pvuDN world I got
> 
> ok
> 
> > emerge: there are no ebuilds built with USE flags to satisfy
> > "sys-auth/consolekit[-policykit]".
> > !!! One of the following packages is required to complete your request:
> > - sys-auth/consolekit-0.3.0-r1 (Change USE: -policykit)
> > (dependency required by "sys-apps/hal-0.5.12_rc1-r4" [installed])
> > (dependency required by "x11-base/xorg-server-1.5.3-r6" [installed])
> > (dependency required by "x11-drivers/xf86-video-nv-2.1.12" [installed])
> 
> that's because hal needs USE="policykit" on consolekit if either consolekit or
> policykit is enabled on hal.
> 
> > 2.gnome-panel(-) gnome-session(+) consolekit(-)
> > Result: problem remains.
> > 
> > 3.gnome-panel(-) gnome-session(+) consolekit(-)
> > Result: problem remains.
> > 
> 
> ok, but then it seems I fail to convey the idea that the following cases were
> the most important to test:
> 
> 1. gnome-panel(-) gnome-session(-) consolekit(-)
> 2. gnome-panel(+) gnome-session(+) consolekit(+/- but preferably +)
> 
> > I attached my .xsession-errors as reference.
> 
> looks like there is no debugging messages there.
> 

Dear Gilles:

I am sorry for misunderstanding. I tried all of the possible 8 combinations this time (my poor pc...) but none of them solved my problem :( I am new to 
linux so I do not know clearly what I should do to include the debugging
information into my .xsession-errors, sorry for that...

Thank you very much.

Peng 
Comment 14 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-26 15:57:50 UTC
hum, could you try to unmask gdm-2.26 (from gnome-overlay) and see if it goes well with it (use the same value for USE="policykit" than gnome-panel & gnome-session). I doubt it will change anything but it doesn't cost much to try.
Comment 15 Don Swam 2009-05-26 17:52:17 UTC
I got the overlay setup. GDM-2.26 wants hal recompiled with +policykit. All 9 components that use policykit are compiled with -policykit. Should I recompile all with +policykit? 
Comment 16 peng shao 2009-05-27 03:14:46 UTC
(In reply to comment #14)
> hum, could you try to unmask gdm-2.26 (from gnome-overlay) and see if it goes
> well with it (use the same value for USE="policykit" than gnome-panel &
> gnome-session). I doubt it will change anything but it doesn't cost much to
> try.
> 

Dear Gilles:

I have deleted the gnome-overlay since I found it brought more troubles.. our discussion was based on a pure ~amd46 USE .... 

Thank you 
Peng
Comment 17 Don Swam 2009-06-04 12:28:30 UTC
I haven't seen this problem since about the 27th of May. The system has been rebooted about 25-30 times. I was keeping track. I would guess an update resolved it. I update every morning.
Comment 18 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-04 13:05:49 UTC
(In reply to comment #17)
> I haven't seen this problem since about the 27th of May. The system has been
> rebooted about 25-30 times. I was keeping track. I would guess an update
> resolved it. I update every morning.
> 

any chance you could list what you updated since then ?
Comment 19 Don Swam 2009-06-04 13:51:14 UTC
My problem was very intermittent, however it always failed at least once every few days. Here is the list of recent updates
docbook-xsl-stylesheets-1.75.1
cdrtools-0
glib-sharp-2.12.9
gtk-sharp-gapi-2.12.9
imagemagick-6.5.2.9
pango-sharp-2.12.9
atk-sharp-2.12.9
gdk-sharp-2.12.9
gtk-sharp-2.12.9
glade-sharp-2.12.9
vte-0.20.3
python-2.6.2-r1
reportlab-2.3
gnome-nettool-2.26.2
cups-1.3.10-r2
gnome-panel-2.26.2
hplip-3.9.4b
gnome-2.26.2

Started emerge on: May 30, 2009 07:09:04
xvid-1.2.2-r1
acl-0
procps-3.2.8
URI-1.38
openssl-0.9.8k-r1
e2fsprogs-libs-1.41.5
e2fsprogs-1.41.5
subversion-1.6.2
hal-0.5.12_rc1-r5
mythtv-0.21_p19961-r2
kdelibs-3.5.10-r6
gnome-mplayer-0.9.5-r1

Started emerge on: May 30, 2009 04:32:12
hal-0.5.12_rc1-r4
Started emerge on: May 31, 2009 07:04:04
e2fsprogs-libs-1.41.6
e2fsprogs-1.41.6
Test-Simple-0.88
automake-1.11
perl-Test-Simple-0.88
gnutls-2.8.0
mplayer-1.0_rc2_p20090530
brasero-2.26.2-r1

Started emerge on: Jun 01, 2009 06:14:50
sun-jdk-1.6.0.14
sun-jre-bin-1.6.0.14
libsexy-0.1.11-r1
gnome-mplayer-0.9.5-r2
gnome-games-2.26.2-r1

Started emerge on: Jun 01, 2009 07:07:47
networkmanager-0.7.1-r3
nm-applet-0.7.1-r1

Started emerge on: Jun 02, 2009 07:06:22
Nothing to emerge
Started emerge on: Jun 03, 2009 06:45:51
hal-0.5.12_rc1-r6

Started emerge on: Jun 04, 2009 07:12:51
sandbox-2.0
iso-codes-3.9
nvidia-settings-180.60
opera-10.00_pre4402
vte-0.20.4

Started emerge on: Jun 04, 2009 07:28:04
grip-3.3.1-r2
gnome-terminal-2.26.2
 
Comment 20 Marcello Magaldi 2009-10-16 11:50:13 UTC
I compiled the whole system with policykit use flag enabled, on restart gnome ask my password but after the confirmation gnome-session terminates but I'm prompted to gdm login.
Comment 21 Marcello Magaldi 2009-10-18 09:49:10 UTC
Created attachment 207462 [details]
xsession-errors
Comment 22 Yang Zhang 2009-10-20 10:25:43 UTC
(In reply to comment #21)
> Created an attachment (id=207462) [details]
> xsession-errors
> 

Hi, I don't really encounter the same problem as yours. But I have had a similar problem: when upgrading to gnome-2.26.3 on gentoo x86, The shutdown/restart menu refuses to function and when I press the button, the desktop and icons disappear and the X is the then freeze. I have to Ctrl+Alr+Bksp to kill the X, which leads me to a new GDM login. After inspecting the problem, it turns out that I have not started the consolekit daemon! When I added the consolekit daemon to default runlevel, everything works fine. Hope this would help.
Comment 23 Marcello Magaldi 2009-10-20 10:27:56 UTC
(In reply to comment #22)
> (In reply to comment #21)
> > Created an attachment (id=207462) [details] [details]
> > xsession-errors
> > 
> 
> Hi, I don't really encounter the same problem as yours. But I have had a
> similar problem: when upgrading to gnome-2.26.3 on gentoo x86, The
> shutdown/restart menu refuses to function and when I press the button, the
> desktop and icons disappear and the X is the then freeze. I have to
> Ctrl+Alr+Bksp to kill the X, which leads me to a new GDM login. After
> inspecting the problem, it turns out that I have not started the consolekit
> daemon! When I added the consolekit daemon to default runlevel, everything
> works fine. Hope this would help.
> 

Not this case here, consolekit starts at boot and I have consolekit use flag enabled.

Comment 24 peng shao 2009-10-20 16:36:13 UTC
(In reply to comment #23)
> (In reply to comment #22)
> > (In reply to comment #21)
> > > Created an attachment (id=207462) [details] [details] [details]
> > > xsession-errors
> > > 
> > 
> > Hi, I don't really encounter the same problem as yours. But I have had a
> > similar problem: when upgrading to gnome-2.26.3 on gentoo x86, The
> > shutdown/restart menu refuses to function and when I press the button, the
> > desktop and icons disappear and the X is the then freeze. I have to
> > Ctrl+Alr+Bksp to kill the X, which leads me to a new GDM login. After
> > inspecting the problem, it turns out that I have not started the consolekit
> > daemon! When I added the consolekit daemon to default runlevel, everything
> > works fine. Hope this would help.
> > 
> 
> Not this case here, consolekit starts at boot and I have consolekit use flag
> enabled.
> 
Yes that's true. Anyway thank Zhang's suggestion very much:)
Comment 25 Marcello Magaldi 2009-10-26 20:48:23 UTC
Created attachment 208352 [details]
var-log-messages

I attached some lines from my /var/log/messages while having the problem described in this bug report.
Comment 26 Romain Perier (RETIRED) gentoo-dev 2009-10-27 19:57:56 UTC
- Please attach the output of emerge --info too.

@herd: Guys I pretty sure that this crash is the same as the crash in gnome-session-2.28

--> Unable to query client is thrown by xsmp_end_session() (normally)
--> Then there is a crash, so assuming smsConn is still NULL (like a g-s-2.28) the crash occurs in xsmp_stop().... mhhh I'll have a look at the code, at least to avoid that SIGSEGV :\
Comment 27 Marcello Magaldi 2009-10-27 20:02:49 UTC
emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 27 Oct 2009 17:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
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/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://gentoo.mirror.pw.edu.pl/ http://gentoo.mneisen.org/"
LANG="it_IT.UTF-8@euro"
LC_ALL="it_IT.UTF-8@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it en en_US en_GB"
MAKEOPTS="-j7"
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 /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr amrnb amrwb apache2 applet aspnet audiofile avahi bash-completion beagle berkdb bluetooth branding bzip2 c++ cairo cdaudio cdda cddb cdparanoia cdr chm cli consolekit cracklib crypt css cups cvs cxx dbus dga dri dts dv dvb dvd dvdnav dvdr eds emacs emboss encode epiphany evo exif expat fam fame ffmpeg firefox flac foomaticdb fortran ftp fuse galago gd gdbm gif gimp git glade gnome gnome-keyring gnome-print gnutls gphoto2 gpm gstreamer gtk guile hal hddtemp iconv id3tag imagemagick inotify ipv6 isdnlog jabber java java6 javascript joystick jpeg kde kpathsea ladspa lame latex lcms ldap libnotify libsamplerate live lm_sensors logitech-mouse lzo mad matroska mikmod mjpeg mmx mmxext mng modules mono mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql nautilus ncurses network nls nptl nptlonly nsplugin nuv nvidia odbc offensive ogg ogm opengl openmp pam pcre pdf perl php plotutils png ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection samba scanner scrobbler sdl session shout smp sndfile socks5 sourceview speex spell spl sql sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog taglib tcpd theora threads thunar thunderbird tiff timidity truetype twolame unicode upnp usb v4l v4l2 vcd videos vim-syntax vorbis wavpack webkit wma wmf wxwidgets wxwindows x264 xcb xcomposite xemacs xine xml xorg xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia vga vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 28 Romain Perier (RETIRED) gentoo-dev 2009-10-27 20:19:52 UTC
reopen per comment 27
Comment 29 Romain Perier (RETIRED) gentoo-dev 2009-10-27 20:50:44 UTC
Could you enable the debugging mode for gnome-session before proceed to logout/reboot/shutdown ?

That's pretty simple just do in a terminal (before logout) :
$ killall -USR1 gnome-session

Then please attach the verbose var-log-messages,
thanks in advance ;)
Comment 30 Marcello Magaldi 2009-10-27 21:23:53 UTC
(In reply to comment #29)
> Could you enable the debugging mode for gnome-session before proceed to
> logout/reboot/shutdown ?
> 
> That's pretty simple just do in a terminal (before logout) :
> $ killall -USR1 gnome-session
> 
> Then please attach the verbose var-log-messages,
> thanks in advance ;)
> 

So I should simply kill gnome-session with usr1 signal and relaunch it with -g option , right ? Or should I simply send usr1 signal to gnome-session?
Comment 31 Romain Perier (RETIRED) gentoo-dev 2009-10-27 22:25:45 UTC
So normally gnome-session auto-backtrace itself, you have just to send the SIGUSR1 signal to gnome-session and the debugging mode will be enabled dynamically.

And that before your next logout.
Comment 32 peng shao 2009-10-28 07:56:37 UTC
Created attachment 208482 [details]
part of my /var/log/messages
Comment 33 peng shao 2009-10-28 07:57:19 UTC
(In reply to comment #31)
> So normally gnome-session auto-backtrace itself, you have just to send the
> SIGUSR1 signal to gnome-session and the debugging mode will be enabled
> dynamically.
> 
> And that before your next logout.
> 

Dear Romaine, please see the attachment for the log. What I did was:
1. In a terminal, input killall -USR1 gnome-session
2. Try to reboot the machine through System menu
3. Reboot failed, return to gdm
4. I copied relating part from my /var/log/message according to the time.

Please tell me if you think you need more information. 
Comment 34 Marcello Magaldi 2009-10-28 15:22:28 UTC
Created attachment 208528 [details]
var-log-messages

I saw that Peng already attached a /var/log/messages with gnome-session debug enabled, anyway I post also mine so it could be easier comparing them to find the cause of the error.
Comment 35 Romain Perier (RETIRED) gentoo-dev 2009-10-28 16:27:04 UTC
Created attachment 208551 [details, diff]
normally this patch solves the segfault
Comment 36 Romain Perier (RETIRED) gentoo-dev 2009-10-28 16:28:12 UTC
Could you try the attached patch ? and get back me ?
(that's pretty simple make a copy of gnome-session's ebuild in your own overlay, then in src_prepare() epatch "${FILESDIR}/${P}-xsmp-stop-throw-error.patch")
Comment 37 Marcello Magaldi 2009-10-28 18:18:38 UTC
(In reply to comment #36)
> Could you try the attached patch ? and get back me ?
> (that's pretty simple make a copy of gnome-session's ebuild in your own
> overlay, then in src_prepare() epatch
> "${FILESDIR}/${P}-xsmp-stop-throw-error.patch")
> 

I tried your patch and then I rebooted 2 times and 1 time shutdown without problems.
After doing shutdown it returned to gdm login page so I thought there was again the same problem but anyway after some seconds gdm was stopped and the system was halted.

Could you please include your patch into portage tree?
Comment 38 Romain Perier (RETIRED) gentoo-dev 2009-10-28 19:55:22 UTC
(In reply to comment #37)
> I tried your patch and then I rebooted 2 times and 1 time shutdown without
> problems.

nice :)

> After doing shutdown it returned to gdm login page so I thought there was again
> the same problem but anyway after some seconds gdm was stopped and the system
> was halted.
> 

Could you provide another var-log-message with debugging mode again when this stuff happens ? especially for this part just to check something...
that would be very nice :)
I think I'll include this patch in the tree, don't worry ;)

Comment 39 Marcello Magaldi 2009-10-29 08:18:17 UTC
(In reply to comment #38)
> (In reply to comment #37)
> > I tried your patch and then I rebooted 2 times and 1 time shutdown without
> > problems.
> 
> nice :)
> 
> > After doing shutdown it returned to gdm login page so I thought there was again
> > the same problem but anyway after some seconds gdm was stopped and the system
> > was halted.
> > 
> 
> Could you provide another var-log-message with debugging mode again when this
> stuff happens ? especially for this part just to check something...
> that would be very nice :)
> I think I'll include this patch in the tree, don't worry ;)
> 

Sorry but I wasn't able to reproduce this behaviour , I tried to halt three times my pc and every time halted normally without displaying gdm-login
Comment 40 Romain Perier (RETIRED) gentoo-dev 2009-10-29 11:14:19 UTC
+*gnome-session-2.26.2-r1 (29 Oct 2009)
+
+  29 Oct 2009; Romain Perier <mrpouet@gentoo.org>
+  +gnome-session-2.26.2-r1.ebuild,
+  +files/gnome-session-2.26.2-xsmp-stop-throw-error.patch:
+  Fix bug #271023, Do not crash when xsmp->priv->conn is NULL for a given
+  GsmXsmpClient, when SMS connection dies. Import from 2.28 dev cycle, new
+  revision.

have a look to this stuff anyway and try to enable debugging mode when you shutdown, that could help me a lot if you catch this specific problem (come back few seconds to gdm before reboot/shutdown).
That's fixed in the main tree with a new revision in testing, so please unmask it, because it's more stable than the previous ;)
Comment 41 peng shao 2009-10-30 04:57:56 UTC
(In reply to comment #40)
> +*gnome-session-2.26.2-r1 (29 Oct 2009)
> +
> +  29 Oct 2009; Romain Perier <mrpouet@gentoo.org>
> +  +gnome-session-2.26.2-r1.ebuild,
> +  +files/gnome-session-2.26.2-xsmp-stop-throw-error.patch:
> +  Fix bug #271023, Do not crash when xsmp->priv->conn is NULL for a given
> +  GsmXsmpClient, when SMS connection dies. Import from 2.28 dev cycle, new
> +  revision.
> 
> have a look to this stuff anyway and try to enable debugging mode when you
> shutdown, that could help me a lot if you catch this specific problem (come
> back few seconds to gdm before reboot/shutdown).
> That's fixed in the main tree with a new revision in testing, so please unmask
> it, because it's more stable than the previous ;)
> 

Tried around 20 times reboot. It works like a charm :) Thank you thank you Romain(sorry I misspelled your name last time)
Comment 42 Romain Perier (RETIRED) gentoo-dev 2009-10-30 20:52:36 UTC
nice :D
Comment 43 peng shao 2009-11-07 23:42:10 UTC
(In reply to comment #42)
> nice :D
> 

Sorry for bothering you again. Now I am on gnome-session-2.28.0 and I found a tiny annoying issue about shutdown/restart, it looks like in most of the time, when I tried to shutdown/reboot through gnome-panel, I found that the usual output information of openrc is blocked. What I receive is only a few lines such as "Broadcasting message from root.... The system is going to shutdown.."(Sorry I cannot remember what the messages exactly are) and after a few seconds the machine shutdown/reboot normally. On the other hand if I use shutdown -h now, everytime I can clearly see the shutting-down process of the machine through openrc's output. And sometimes these information is important for me.
Can anyone confirm having similar issue? Thank you.
Comment 44 Anton Sidorov 2009-11-20 18:30:48 UTC
on gnome 2.26.3 I comment out in /etc/inittab
#x:a:once:/etc/X11/startDM.sh