Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362393 - sys-auth/consolekit-0.4.3 & 0.4.4 resuming from suspend-to-disk - console-kit-daemon[10739]: GThread-ERROR: file gthread-posix.c: line 348 (g_thread_create_posix_impl): error 'Invalid argument' during 'pthread_attr_setsch
Summary: sys-auth/consolekit-0.4.3 & 0.4.4 resuming from suspend-to-disk - console-kit...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 06:18 UTC by Da Fox
Modified: 2011-12-22 16:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Da Fox 2011-04-07 06:18:44 UTC
After resuming my laptop from suspend to disk many actions (such as inserting an USB-stick) give an error message about permissions and fail to complete (e.g. usb-stick is not mounted).
Some research shows that console-kit-daemon is no longer running:
1) Output of ck-list-sessions is empty (i.e. no active sessions)
2) /var/log/messages shows that console-kit-daemon crashed:
---8<---------
Apr  7 07:50:44 localhost kernel: PM: restore of devices complete after 1007.801 msecs
Apr  7 07:50:44 localhost kernel: Restarting tasks ... done.
Apr  7 07:50:44 localhost kernel: video LNXVIDEO:00: Restoring backlight state
Apr  7 07:50:44 localhost kernel: ath_pci 0000:02:02.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
Apr  7 07:50:44 localhost kernel: MadWifi: ath_attach: Switching rfkill capability off.
Apr  7 07:50:44 localhost kernel: wifi0: Atheros AR5213 chip found (MAC 5.6, PHY 2112 4.1, 5 GHz Radio 1.7 2 GHz Radio 2.3)
Apr  7 07:50:44 localhost kernel: ath_pci: wifi0: Atheros 5212: mem=0xc0210000, irq=11
Apr  7 07:50:45 localhost /etc/init.d/net.ath0[10260]: net.ath0: not allowed to be hotplugged
Apr  7 07:50:45 localhost /etc/init.d/net.ath0[10284]: net.ath0: not allowed to be hotplugged
Apr  7 07:50:49 localhost su[10279]: pam_unix(su:session): session closed for user dafox
Apr  7 07:50:50 localhost logger: Switching to default runlevel
Apr  7 07:50:50 localhost logger: Switching to battery runlevel
Apr  7 07:50:51 localhost laptop-mode: Laptop mode 
Apr  7 07:50:51 localhost laptop-mode: enabled, not active
Apr  7 07:50:52 localhost kernel: ata1.00: configured for UDMA/100
Apr  7 07:50:52 localhost kernel: ata1: EH complete
Apr  7 07:50:54 localhost ntpdate[10737]: can't find host 0.gentoo.pool.ntp.org
Apr  7 07:50:54 localhost ntpdate[10737]: can't find host 1.gentoo.pool.ntp.org
Apr  7 07:50:54 localhost ntpdate[10737]: can't find host 2.gentoo.pool.ntp.org
Apr  7 07:50:54 localhost ntpdate[10737]: can't find host 3.gentoo.pool.ntp.org
Apr  7 07:50:54 localhost ntpdate[10737]: no servers can be used, exiting
Apr  7 07:50:54 localhost console-kit-daemon[10739]: GThread-ERROR: file gthread-posix.c: line 348 (g_thread_create_posix_impl): error 'Invalid argument' during 'pthread_attr_setschedparam (&attr, &sched)'
Apr  7 07:50:54 localhost aborting...
Apr  7 07:50:55 localhost logger: ACPI event unhandled: ibm/hotkey HKEY 00000080 0000100c
Apr  7 07:50:55 localhost acpid: client 8057[0:0] has disconnected
Apr  7 07:50:55 localhost laptop-mode: Laptop mode 
Apr  7 07:50:55 localhost laptop-mode: enabled, 
Apr  7 07:50:55 localhost laptop-mode: not active [unchanged]
Apr  7 07:50:55 localhost logger: ACPI event unhandled: button/lid LID 00000080 00000001
Apr  7 07:50:55 localhost acpid: client connected from 8057[0:0]
Apr  7 07:50:55 localhost acpid: 1 client rule loaded
Apr  7 07:50:55 localhost logger: ACPI event unhandled: processor CPU0 00000081 00000000
--->8---------

This shows that console-kit-daemon crashed:
GThread-ERROR: file gthread-posix.c: line 348 (g_thread_create_posix_impl): error 'Invalid argument' during 'pthread_attr_setschedparam (&attr, &sched)'

Both =sys-auth/console-kit-0.4.3 and =sys-auth/console-kit-0.4.4 exhibit this problem.

Reproducible: Always

Steps to Reproduce:
1. Reboot computer, login, verify console-kit functionality (automounting an USB-stick should work)
2. Suspend-to-disk, resume
3. Verify console-kit unfunctionality (automounting an USB-stick no longer works)
3b. See above error message in /var/log/messages
Actual Results:  
Console-kit-daemon crashed, various actions depending on console-kit no longer work (e.g. automounting fails)

Expected Results:  
Console-kit-daemon does not crash, various actions depending on console-kit continue to work (e.g. automounting succeeds)

Simply restarting console-kit (/etc/init.d/consolekit restart) does not help because this wil not start a new console-kit session. In order to get a new session a full logout/login appears to be necessary, which kind of defeats the purpose of suspend-to-disk.
This is a bit of a setback since I only recently figured out how to get console-kit to work (I use the 'slim' login-manager i.c.w. xfce)

emerge --info:
---8<---------
Portage 2.2.0_alpha29 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38 i686)
=================================================================
System uname: Linux-2.6.38-i686-Intel-R-_Pentium-R-_M_processor_1.70GHz-with-gentoo-2.0.2
Timestamp of tree: Fri, 01 Apr 2011 16:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.5.4-r4, 2.6.4-r1, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13::<unknown repository>, 2.65-r1
sys-devel/automake:  1.4_p6::<unknown repository>, 1.5, 1.7.9-r1::<unknown repository>, 1.9.6-r2::<unknown repository>, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo shogoki desktop-effects x11 berkano mozilla multimedia
Installed sets: 
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O3 -pipe -fomit-frame-pointer -fweb -ffast-math -mtune=pentium-m -mfpmath=sse -m32"
CHOST="i686-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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O3 -pipe -fomit-frame-pointer -fweb -ffast-math -mtune=pentium-m -mfpmath=sse -m32"
DISTDIR="/var/tmp/distfiles"
FEATURES="assume-digests binpkg-logs distcc distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5"
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/local/portage/desktop-effects /usr/local/portage/x11 /usr/local/portage/berkano /usr/local/portage/mozilla /usr/local/portage/gentoo-multimedia"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi aio alsa amr ao asf aspell ass async audio automount avahi bash-completion bitmap-fonts bzip2 cairo calendar canna cdparanoia cdr cjk client consolekit crypt cups curl curlwrappers cxx dbus device-mapper dga dirac directfb dllloader dri drm dvd dvdnav emerald encode exif expat faac faad fam fbcon fbcondecor ffmpeg firefox flac fontconfig freetype ftp gallium gd gdbm gdu ggi gif glut gnutls gpm graphite graphviz gtk howl imagemagick imlib ipv6 irda java javascript jit jpeg jpeg2k kdehiddenvisibility libcaca libnotify lto lua lzo mad madwifi matroska midi mmap mmx mmxext mozilla mp3 mp4 mpeg mpi mplayer msn musepack musicbrainz mxx nas ncurses netapi network nls nntp nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pango pascal pcap pcf pcmcia pcre pdf perl png policykit posix ppds python quicktime readline rtc samba sasl sdl sharedmem smbclient snmp sockets speex spell srt sse sse2 ssl startup-notification subversion svg svga tcl tetex theora threads thunar tiff timidity tk truetype type1 type1-fonts udev unicode usb userlocales vcd vorbis vpx webdav-neon wifi win32codecs wmf x264 x86 xanim xcomposite xft xine xinerama xinetd xml xorg xosd xpm xrandr xscreensaver xulrunner xv xvid xvmc zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en" LIRC_DEVICES="userspace sir" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r300 vesa" XFCE_PLUGINS="menu trash logout brightness" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
--->8---------
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-11-26 14:45:34 UTC
Please clean up your cflags and rebuild consolekit dependencies (glib looks like a good target).
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-12-22 16:40:50 UTC
(In reply to comment #1)
> Please clean up your cflags and rebuild consolekit dependencies (glib looks
> like a good target).

After re-emerging and updating world with sane flags to latest version of consolekit, try again.   Reopen if this is still a problem after doing so.