Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 477954

Summary: gnome-base/gnome-shell-3.8* session unlock broken with >systemd-204
Product: Gentoo Linux Reporter: Mark R. Pariente <markpariente>
Component: [OLD] GNOMEAssignee: Gentoo systemd Team <systemd>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, dominik.kriegner, gentoo-bugs, gnome, marduk, me, ooblick, publiosulpicio
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=67267
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=67273
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 463242    

Description Mark R. Pariente 2013-07-24 00:08:16 UTC
I'm running gdm 3.8.3.1 and upgrading systemd from 204 to 205/206 results in being unable to log back in to a session after locking it. Pulling the "curtain" up results in a yellow "Authentication error" message without even entering any password. When password is entered I get a spinner but nothing happens. The following logs are produced in journalctl:

Jul 23 16:53:24 siegeengine systemd-logind[541]: Removed session c1.
Jul 23 16:53:24 siegeengine systemd[1]: Stopped User Manager for 107.
Jul 23 16:53:24 siegeengine systemd[1]: Stopping user-107.slice.
Jul 23 16:53:24 siegeengine systemd[1]: Removed slice user-107.slice.
Jul 23 16:53:51 siegeengine /etc/gdm/Xsession[947]: Window manager warning: Log level 16: value "-8.000000" of type `gfloat' is invalid or out of range for property `width' of type `gfloat'
Jul 23 16:53:51 siegeengine /etc/gdm/Xsession[947]: Window manager warning: Log level 16: value "-8.000000" of type `gfloat' is invalid or out of range for property `height' of type `gfloat'
Jul 23 16:53:53 siegeengine /etc/gdm/Xsession[947]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2600052 (New Tab - )
Jul 23 16:53:53 siegeengine /etc/gdm/Xsession[947]: Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Jul 23 16:54:53 siegeengine gdm[561]: GdmManager: could not fetch uid of session 'c1': No such file or directory
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!   Failed to open reauthentication channel
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!     message = '"GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: No sessions for mark available for reauthentication"'
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!     fileName = '"/usr/share/gnome-shell/js/gdm/util.js"'
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!     lineNumber = '254'
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!     stack = '"0 anonymous("result" = [object GObject_Object], "client" = [object GObject_Object])@/usr/share/gnome-shell/js/gdm/util.js:254
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: 1 wrapper([object GObject_Object], [object GObject_Object])@/usr/share/gjs-1.0/lang.js:213
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: "'
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!   Exception was: TypeError: this._userVerifier is undefined
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!     message = '"this._userVerifier is undefined"'
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!     fileName = '"/usr/share/gnome-shell/js/gdm/util.js"'
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!     lineNumber = '436'
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: JS ERROR: !!!     stack = '"(false)@/usr/share/gnome-shell/js/gdm/util.js:436
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: wrapper(false)@/usr/share/gjs-1.0/lang.js:213
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: ("Failed to open reauthentication channel",[object GLib_Error])@/usr/share/gnome-shell/js/gdm/util.js:249
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: wrapper("Failed to open reauthentication channel",[object GLib_Error])@/usr/share/gjs-1.0/lang.js:213
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: ([object GObject_Object],[object GObject_Object])@/usr/share/gnome-shell/js/gdm/util.js:265
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: wrapper([object GObject_Object],[object GObject_Object])@/usr/share/gjs-1.0/lang.js:213
Jul 23 16:54:53 siegeengine /etc/gdm/Xsession[947]: "'

I've tried dowgrading to various 3.8* versions of gdm to no avail. Downgrading systemd to 204 fixes the issue.

Reproducible: Always




Portage 2.2.0_alpha188 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.9.10-gentoo x86_64)
=================================================================
System uname: Linux-3.9.10-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:    12281376 total,   9678072 free
KiB Swap:   16787888 total,  16787888 free
Timestamp of tree: Tue, 23 Jul 2013 23:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0::java-overlay
dev-lang/python:          2.7.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo vmware mrpdaemon systemd multimedia steam-overlay java megacoffee Mark-s-local-portage-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.llarian.net/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.gossamerhost.com http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vmware /var/lib/layman/mrpdaemon /var/lib/layman/systemd /var/lib/layman/multimedia /var/lib/layman/steam /var/lib/layman/java /var/lib/layman/megacoffee /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 artworkextra avahi bash-completion berkdb bluray branding bzip2 cairo cdda cdr cleartype cli clutter colord cracklib crypt cscope cups cxx dbus devhelp device-mapper dri dts dv dvd dvdr eds emboss encode evo exif faac fam ffmpeg firefox flac fortran fuse gdbm gdu geoloc gif git glade glitz gnome gnome-keyring gnome-online-accounts gnutls gphoto2 gpm gstreamer gtk gtk2 gtk3 hostip iconv id3tag introspection ipv6 jabber jpeg lame lcms libnotify libsecret mad map mmx mmxext mng modules mp3 mp4 mpeg msn mudflap multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support qt4 quicktime readline rtmp sdl session socialweb spell sse sse2 sse3 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb v4l v4l2 vala vdpau vim-syntax vorbis vpx wav win32codecs wxwidgets x264 xcb xcomposite xml xv xvid xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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 access_compat" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Pacho Ramos gentoo-dev 2013-07-24 05:22:58 UTC
I see this problem from time to time (can be workarounded clicking on "Cancel" and retrying some number of times when it occurs). CCing systemd people
Comment 2 Pacho Ramos gentoo-dev 2013-07-24 05:24:12 UTC
(as a side note: using -O3 with gcc4 is not recommended at all
http://www.gentoo.org/doc/en/gcc-optimization.xml )
Comment 3 Jan Vesely 2013-07-24 07:11:02 UTC
I can reliably work around this by switching to another vt (when the 'curtain' is down), and then back.
Comment 4 Mark R. Pariente 2013-07-24 08:57:13 UTC
(In reply to Pacho Ramos from comment #2)
> (as a side note: using -O3 with gcc4 is not recommended at all
> http://www.gentoo.org/doc/en/gcc-optimization.xml )

Thanks for the suggestion - I've always (since 2004) used system wide -O3 without any negative consequences. I have plenty of memory and disk space to spare, and stuff runs quite well in terms of speed. If anything I prefer to keep using it so there's someone out there testing -O3 with all kinds of packages and report bugs to gcc or the affected package if anything blows up :)
Comment 5 Kobboi 2013-07-24 20:46:30 UTC
For me, it fails every time :)
Comment 6 Alexander E. Patrakov 2013-07-28 07:54:34 UTC
I have also hit this bug. In my case, this was because I had the fprint USE-flag enabled, and guess what:

# cat /etc/pam.d/gdm-fingerprint 
account  include  system-login

auth     substack fingerprint-auth
auth     optional pam_gnome_keyring.so

password required pam_deny.so

session  substack system-login
session  optional pam_gnome_keyring.so auto_start

And the /etc/pam.d/fingerprint-auth file does not exist on a fresh install. Created it, fixed the problem:

# cat /etc/pam.d/fingerprint-auth 
auth required pam_fprintd.so
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-07-29 01:37:28 UTC
For me (hitting this failure every time with systemd-206, gdm[-fprintd]), journalctl shows the following:

Jul 28 21:32:24 rook gdm[10417]: GdmManager: could not fetch uid of session 'c2': No such file or directory
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!   Failed to open reauthentication channel
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!     message = '"GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: No sessions for tetromino available fo
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!     fileName = '"/usr/share/gnome-shell/js/gdm/util.js"'
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!     lineNumber = '254'
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!     stack = '"0 anonymous("result" = [object GObject_Object], "client" = [object GObject_Object])@/usr/shar
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: 1 wrapper([object GObject_Object], [object GObject_Object])@/usr/share/gjs-1.0/lang.js:213
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: "'
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!   Exception was: TypeError: this._userVerifier is undefined
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!     message = '"this._userVerifier is undefined"'
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!     fileName = '"/usr/share/gnome-shell/js/gdm/util.js"'
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!     lineNumber = '436'
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: JS ERROR: !!!     stack = '"(false)@/usr/share/gnome-shell/js/gdm/util.js:436
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: wrapper(false)@/usr/share/gjs-1.0/lang.js:213
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: ("Failed to open reauthentication channel",[object GLib_Error])@/usr/share/gnome-shell/js/gdm/util.js:249
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: wrapper("Failed to open reauthentication channel",[object GLib_Error])@/usr/share/gjs-1.0/lang.js:213
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: ([object GObject_Object],[object GObject_Object])@/usr/share/gnome-shell/js/gdm/util.js:265
Jul 28 21:32:24 rook /etc/gdm/Xsession[10532]: wrapper([object GObject_Object],[object GObject_Object])@/usr/share/gjs-1.0/lang.js:213
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-07-29 02:11:19 UTC
This was fixed in systemd git master by this patch: http://cgit.freedesktop.org/systemd/systemd/commit/?id=cba38758b4d49c6fe7c2f0eea255e11ee9df23eb

Applying it and rebooting allows me to unlock gnome-shell.
Comment 9 Albert W. Hopkins 2013-07-29 10:15:12 UTC
(In reply to Alexandre Rostovtsev from comment #8)
> This was fixed in systemd git master by this patch:
> http://cgit.freedesktop.org/systemd/systemd/commit/
> ?id=cba38758b4d49c6fe7c2f0eea255e11ee9df23eb
> 
> Applying it and rebooting allows me to unlock gnome-shell.

Same... (even seems to work w/o rebooting).
Comment 10 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-07-31 12:25:24 UTC
*** Bug 479084 has been marked as a duplicate of this bug. ***
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-31 22:24:34 UTC
In 206-r1 that I just committed.