Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585688 - >=sys-auth/consolekit-1.0.0 causes KDE and XFCE to not start
Summary: >=sys-auth/consolekit-1.0.0 causes KDE and XFCE to not start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-12 13:07 UTC by Tom
Modified: 2016-10-03 07:47 UTC (History)
3 users (show)

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


Attachments
syslog of consolekit --debug (x.sl,34.82 KB, text/plain)
2016-06-13 20:02 UTC, Tom
Details
all 4 logs stuffed in the archive (log-output.tgz,7.54 KB, application/x-gzip)
2016-07-11 11:39 UTC, Tom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom 2016-06-12 13:07:08 UTC
Hello,

after upgrading to the new qt5-libs, neither the kde4 nor the xfce desktop will start. The X server is starting and exiting immediately without any hints.

I've then restored a backup and only upgraded 55 system packages, not upgrading the 74 qt5-related packages - see list attached.

As both desktops won't came up, I've noticed, that the consolekit made a jump from v0.4.6 to v1.1.0, so I've masked v1.* and downgraded the consolekit.
Now both kde4 and xfce starts again as usual. :)
Maybe there's a bug in the new consolekit code...

So fine, so good, but I'm asking myself, if it safe to emerge the qt5-packages and still have a working desktop?

THX and CU Tom

---
# not upgraded packages:

These are the packages that would be merged, in order:

Calculating dependencies  . . ............ ....... done!
[ebuild     U  ] dev-qt/qtchooser-0_p20151008::gentoo [0_p20150102::gentoo] USE="{-test} (-qt5%)" 0 KiB
[ebuild  NS    ] dev-qt/qtcore-5.5.1-r1:5::gentoo [4.8.6-r2:4::gentoo] USE="icu -debug -systemd {-test}" 0 KiB
[ebuild  N     ] x11-libs/libxkbcommon-0.5.0::gentoo  USE="X -doc -static-libs {-test}" 0 KiB
[ebuild  N     ] dev-qt/qtxml-5.5.1:5::gentoo  USE="-debug {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtscript-5.5.1-r1:5::gentoo [4.8.6-r2:4::gentoo] USE="jit -debug -scripttools {-test}" 0 KiB
[ebuild  N     ] dev-qt/qtnetwork-5.5.1:5::gentoo  USE="ssl -bindist -connman -debug -libproxy -networkmanager {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qttest-5.5.1:5::gentoo [4.8.6-r1:4::gentoo] USE="-debug {-test}" 0 KiB
[ebuild  N     ] dev-qt/qtconcurrent-5.5.1:5::gentoo  USE="-debug {-test}" 0 KiB
[ebuild  N     ] dev-qt/linguist-tools-5.5.1-r1:5::gentoo  USE="-debug -qml {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtxmlpatterns-5.5.1-r1:5::gentoo [4.8.6-r1:4::gentoo] USE="-debug {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtdbus-5.5.1:5::gentoo [4.8.6-r1:4::gentoo] USE="-debug {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtgui-5.5.1-r1:5::gentoo [4.8.6-r4:4::gentoo] USE="accessibility dbus gif jpeg png udev xcb -debug -egl -eglfs -evdev -gles2 -gtkstyle -ibus -libinput {-test} -tslib -tuio" 0 KiB
[ebuild  N     ] dev-qt/qtwidgets-5.5.1-r1:5::gentoo  USE="png xcb -debug -gles2 -gtkstyle {-test}" 0 KiB
[ebuild  N     ] dev-qt/qtx11extras-5.5.1:5::gentoo  USE="-debug {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtsvg-5.5.1-r1:5::gentoo [4.8.6-r1:4::gentoo] USE="-debug {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtopengl-5.5.1:5::gentoo [4.8.6-r1:4::gentoo] USE="-debug -gles2 {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtdeclarative-5.5.1-r1:5::gentoo [4.8.6-r1:4::gentoo] USE="jit widgets xml -debug -gles2 -localstorage {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kf-env-3:5::gentoo  0 KiB
[ebuild  N     ] dev-qt/qtprintsupport-5.5.1:5::gentoo  USE="cups -debug -gles2 {-test}" 0 KiB
[ebuild  NS    ] dev-qt/designer-5.5.1-r1:5::gentoo [4.8.6-r1:4::gentoo] USE="-debug -declarative {-test} -webkit" 0 KiB
[ebuild  NS    ] dev-java/icedtea-bin-3.0.1:8::gentoo [7.2.6.6-r1:7::gentoo] USE="alsa cups gtk -cjk -doc -examples -headless-awt -nsplugin -pulseaudio (-selinux) -source -webstart" 0 KiB
[ebuild  NS    ] virtual/jdk-1.8.0-r3:1.8::gentoo [1.7.0-r1:1.7::gentoo] 0 KiB
[ebuild  NS    ] virtual/jre-1.8.0-r1:1.8::gentoo [1.7.0-r1:1.7::gentoo] 0 KiB
[ebuild   R    ] dev-libs/libdbusmenu-qt-0.9.3_pre20140619-r1::gentoo  USE="qt4 qt5* -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/extra-cmake-modules-5.21.0:5/5.21::gentoo  USE="-doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kcoreaddons-5.21.0-r1:5/5.21::gentoo  USE="nls -debug -doc (-fam) {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kconfig-5.21.0:5/5.21::gentoo  USE="nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/ki18n-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kwidgetsaddons-5.21.0:5/5.21::gentoo  USE="nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kwindowsystem-5.21.0:5/5.21::gentoo  USE="X nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kdbusaddons-5.21.0:5/5.21::gentoo  USE="X nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kcodecs-5.21.0:5/5.21::gentoo  USE="nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kitemviews-5.21.0:5/5.21::gentoo  USE="nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kguiaddons-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/karchive-5.21.0:5/5.21::gentoo  USE="bzip2 lzma -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/sonnet-5.21.0:5/5.21::gentoo  USE="hunspell nls -aspell -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kitemmodels-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kcrash-5.21.0:5/5.21::gentoo  USE="X nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kdoctools-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kcompletion-5.21.0:5/5.21::gentoo  USE="nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kjobwidgets-5.21.0:5/5.21::gentoo  USE="X nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kpty-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kpackage-5.21.0:5/5.21::gentoo  USE="-debug -doc -man {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kunitconversion-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kservice-5.21.0:5/5.21::gentoo  USE="man -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kglobalaccel-5.21.0:5/5.21::gentoo  USE="nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kdesignerplugin-5.21.0:5/5.21::gentoo  USE="nls -debug -designer -doc -webkit" 0 KiB
[ebuild  N     ] kde-frameworks/kjs-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kdesu-5.21.0:5/5.21::gentoo  USE="X -debug -doc" 0 KiB
[ebuild  N     ] kde-frameworks/kemoticons-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild   R    ] media-libs/phonon-4.7.2::gentoo  USE="gstreamer qt4 qt5* (-aqua) -debug -designer -pulseaudio -vlc (-zeitgeist)" 0 KiB
[ebuild   R    ] media-libs/phonon-gstreamer-4.7.2::gentoo  USE="alsa network qt4 qt5* -debug" 0 KiB
[ebuild  N     ] kde-frameworks/knotifications-5.21.0:5/5.21::gentoo  USE="X dbus nls -debug -doc (-speech)" 0 KiB
[ebuild   R    ] sys-auth/polkit-qt-0.112.0-r1::gentoo  USE="qt4 qt5* -debug -examples" 0 KiB
[ebuild  N     ] kde-frameworks/solid-5.21.0:5/5.21::gentoo  USE="nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kauth-5.21.0:5/5.21::gentoo  USE="nls policykit -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kconfigwidgets-5.21.0:5/5.21::gentoo  USE="man -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kiconthemes-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/ktextwidgets-5.21.0:5/5.21::gentoo  USE="-debug -doc (-speech) {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kxmlgui-5.21.0:5/5.21::gentoo  USE="-attica -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kwallet-5.21.0:5/5.21::gentoo  USE="man -debug -doc -gpg {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kbookmarks-5.21.0:5/5.21::gentoo  USE="nls -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kio-5.21.0:5/5.21::gentoo  USE="X acl handbook kwallet -debug -doc -kerberos {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kinit-5.21.0:5/5.21::gentoo  USE="caps man -debug -doc" 0 KiB
[ebuild  N     ] kde-frameworks/kded-5.21.0:5/5.21::gentoo  USE="man -debug -doc" 0 KiB
[ebuild  N     ] kde-frameworks/kparts-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kdelibs4support-5.21.0:5/5.21::gentoo  USE="X -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/khtml-5.21.0:5/5.21::gentoo  USE="X -debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-frameworks/kdeclarative-5.21.0:5/5.21::gentoo  USE="-debug -doc" 0 KiB
[ebuild  N     ] kde-frameworks/kcmutils-5.21.0:5/5.21::gentoo  USE="-debug -doc {-test}" 0 KiB
[ebuild  N     ] kde-plasma/kde-cli-tools-5.5.5:5::gentoo  USE="X handbook kdesu -debug {-test}" 0 KiB
[ebuild  NS    ] kde-frameworks/oxygen-icons-5.21.0:5/5.21::gentoo [4.14.3:4/4.14::gentoo] USE="{-test}" 0 KiB
[uninstall     ] kde-frameworks/oxygen-icons-4.14.3:4/4.14::gentoo  USE="(-aqua) -sources" 
[blocks b      ] kde-frameworks/oxygen-icons:4 ("kde-frameworks/oxygen-icons:4" is blocking kde-frameworks/oxygen-icons-5.21.0)
[ebuild  NS    ] kde-apps/khelpcenter-5.5.5-r1:5::gentoo [4.14.3:4/4.14::gentoo] USE="handbook -debug" 0 KiB
[uninstall     ] kde-apps/khelpcenter-4.14.3:4/4.14::gentoo  USE="(-aqua) -debug" 
[blocks b      ] kde-apps/khelpcenter:4 ("kde-apps/khelpcenter:4" is blocking kde-apps/khelpcenter-5.5.5-r1)
[ebuild  N     ] kde-plasma/polkit-kde-agent-5.5.5:5::gentoo  USE="-debug" 0 KiB
[uninstall     ] sys-auth/polkit-kde-agent-0.99.1-r1:4::gentoo  USE="(-aqua) -debug -minimal" LINGUAS="de en_GB -ar -bs -ca -ca@valencia -cs -da -el -eo -es -et -fi -fr -ga -gl -hr -hu -is -it -ja -kk -km -lt -mai -mr -ms -nb -nds -nl -pa -pl -pt -pt_BR -ro -ru -sk -sl -sr -sr@ijekavian -sr@ijekavianlatin -sr@latin -sv -th -tr -ug -uk -vi -zh_CN -zh_TW" 
[blocks b      ] sys-auth/polkit-kde-agent:4[-minimal(-)] ("sys-auth/polkit-kde-agent:4[-minimal(-)]" is blocking kde-plasma/polkit-kde-agent-5.5.5)

Total: 74 packages (1 upgrade, 54 new, 15 in new slots, 4 reinstalls, 3 uninstalls), Size of downloads: 0 KiB
Conflict: 3 blocks
Comment 1 Jason Zaman gentoo-dev 2016-06-12 16:00:50 UTC
how do you login to X? There was a problem with slim a few months ago that caused issues.

Can you put this in /etc/conf.d/consolekit (create the file if it doesnt exist):
command_args="--debug"

It should log a lot into syslog, is there anything enlightening? Also can you include emerge --info.
Comment 2 Tom 2016-06-13 20:02:51 UTC
Created attachment 437440 [details]
syslog of consolekit --debug
Comment 3 Tom 2016-06-13 20:04:00 UTC
Hello Jason,

below the infos you've requested (grep /^§§§ for sections)

§§§ Q1: login

As I do most things using the ascii 80x25 console (preferring big letters ;), X will be started on demand using this shell script called Run-X (Run-Xfce4 is a soft-link starting Xfce4 instead of KDE4):

#!/bin/bash -f
myself="${0##*/}"
case "${myself#Run-X}" in
  fce4) XSESSION='Xfce4' ;;
  *)    XSESSION='KDE-4' ;;
esac
export XSESSION
startx >~/.Xerrors 2>&1 &
exit $?

So neither kdm nor xdm is used.

§§§ Q2: --debug

After creating the configuration file and upgrading to consolekit v1.1.0:
(I've marked the POIs with ### (grep /^### for POIs)

Obviously ck-launch-session produces a seg-fault within the C library - maybe this is somewhat more enlightening for you than to me?

See attached file, since it's too big.

§§§ Q3: emerge --info

Portage 2.2.28 (python 2.7.10-final-0, default/linux/x86/13.0, gcc-4.9.3, glibc-2.22-r4, 4.4.6-gentoo i686)
=================================================================
System uname: Linux-4.4.6-gentoo-i686-Pentium-R-_Dual-Core_CPU_T4500_@_2.30GHz-with-gentoo-2.2
KiB Mem:     2036244 total,   1290036 free
KiB Swap:    2160736 total,   2160736 free
Timestamp of repository gentoo: Sun, 12 Jun 2016 09:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -fno-stack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -fno-stack-protector"
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 userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -fno-stack-protector"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X Xaw3d a52 aac accessibility acl acpi alsa amr apache2 berkdb bs2b bzip2 cairo cdda cddb cdr cli cracklib crypt css cups curl cxx dbus device-mapper dri dts dv dvd dvdr encode espeak exif extensions extras fam festival ffmpeg fftw firefox flac flatfile fontconfig fortran ftp gdbm gif gmp gphoto2 gstreamer iconv icu id3tag imagemagick inotify ipc ipv6 javascript jbig jit jpeg jpeg2k kde kpathsea ladspa lame latex lcms libnotify libsamplerate libsoxr lzma mad mbox mikmod mime mmap mms mmx mmxext mng modules mp3 mp4 mpeg ncurses nls nntp nptl nsplugin nss ogg opengl openmp opus pam pcmcia pcre pdf plasma plotutils png postscript qt3support qt4 raw readline seccomp session snmp sockets speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg syslog sysvipc taglib tcpd theora tiff toolame truetype twolame udev unicode usb vcd vhosts vim-syntax vorbis vpx wavpack webp x264 x265 x86 xattr xft xine xinetd xml xpm xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_US en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa vmware intel" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

If you need further information, just let me know.

THX and CU Tom
Comment 4 Jason Zaman gentoo-dev 2016-07-10 15:16:59 UTC
*** Bug 580750 has been marked as a duplicate of this bug. ***
Comment 5 Jason Zaman gentoo-dev 2016-07-10 15:26:25 UTC
Is there any chance either of you can get a full backtrace or even to bisect consolekit and see which commit caused the issues. The problem is something in glibc is segfaulting so we need to find out what it is calling in glibc that makes it die.

https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

https://bugs.gentoo.org/show_bug.cgi?id=580750#c0 seems like the child of ck-launch-session has a bug and we need to see the gdb backtrace of the child. This is some info to switch gdb to the child process: https://sourceware.org/gdb/onlinedocs/gdb/Forks.html
Comment 6 Tom 2016-07-11 11:38:49 UTC
I've emerged consolekit v1.1.0 as stated in your linked document:
- added USE=debug
- added FEATURES=nostrip
- added command_args="--debug" to /etc/conf.d/consolekit
- CFLAGS: replaced -fomit-frame-pointer with -g


After installing I've moved ck-launch-session -> ck-launch-session.bin and created a wrapper-script, letting gdb run the binary, but requesting a backtrace results in the message "no stack"... (file: gdb.log)


I've then created two straces:
- strace-ck-launch-session.log: looks like there is no POI here...

- xstart-strace.log: POI here is an error calling dbus-send:

# snip
Errors from xkbcomp are not fatal to the X server
Error org.freedesktop.ConsoleKit.Manager.Error.General: Unable to find session for cookie
Usage: dbus-send [--help] [--system | --session | --bus=ADDRESS | --peer=ADDRESS] [--dest=NAME] [--type=TYPE] [--print-reply[=literal]] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...]
xinit: connection to X server lost
# end snip


The file daemon.log shows a POI:

# snip
Jul 11 11:49:26 laptop console-kit-daemon[12319]: DEBUG: Executing /usr/lib/Cons
oleKit/ck-collect-session-info --uid 0 --pid 12422 
Jul 11 11:49:26 laptop console-kit-daemon[12319]: DEBUG: command error output:  
 
Jul 11 11:49:26 laptop console-kit-daemon[12319]: DEBUG: command error output: ** (ck-collect-session-info:12423): WARNING **: Couldn't read /proc/12422/sessionid: Failed to open file '/proc/12422/sessionid': No such file or directory  
Jul 11 11:49:26 laptop console-kit-daemon[12319]: DEBUG: Emitting completed
# end snip


The archive log-output.tgz holds all 4 files.

Hoping that this information is helpful for you?

CU Tom
Comment 7 Tom 2016-07-11 11:39:37 UTC
Created attachment 440346 [details]
all 4 logs stuffed in the archive
Comment 8 Tom 2016-07-11 12:13:33 UTC
I've put a wrapper around /usr/lib/ConsoleKit/ck-collect-session-info - this is gdb's log output:


Reading symbols from usr/lib/ConsoleKit/ck-collect-session-info.bin...done.
(gdb) Starting program: /usr/lib/ConsoleKit/ck-collect-session-info.bin --uid 0 --pid 15114
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".

** (ck-collect-session-info.bin:15174): WARNING **: Couldn't read /proc/15114/sessionid: Failed to open file '/proc/15114/sessionid': No such file or directory
unix-user = 0
x11-display = :0
x11-display-device = /dev/tty7
display-device = /dev/tty1
is-local = true
[Inferior 1 (process 15174) exited normally]
(gdb) No stack.
(gdb) quit


Hmm, nothing new...

CU Tom
Comment 9 konsolebox 2016-07-14 13:32:34 UTC
I think this bug doesn't apply to 1.0.x.
Comment 10 Jason Zaman gentoo-dev 2016-07-16 13:03:18 UTC
Tom: Can you test out the patch from bug 588840? It looks like these bugs might be the same.
If that fixes it, I will backport the patch.
Comment 11 Tom 2016-07-17 09:48:22 UTC
Applying this patch was a little bit tricky, since modifying the emerge-files for automation resulted in bad checksum errors...

So I've emerged consolekit-1.1.0 twice with USE=debug applied - the second time I've killed emerge just after compiling and applied the changes using patch -p1 and doing a make && make install in src and tools.

After /etc/init.d/consolekit restart both Xfce4 and KDE-4 started fine. :)

THX very much for finding a solution for this bug!

CU Tom
Comment 12 Jason Zaman gentoo-dev 2016-07-18 09:45:21 UTC
(In reply to Tom from comment #11)
> Applying this patch was a little bit tricky, since modifying the
> emerge-files for automation resulted in bad checksum errors...
In future you can use this for patches: https://wiki.gentoo.org/wiki//etc/portage/patches any EAPI6 ebuild or earlier if it has epatch_user will automatically apply patches during src_prepare().

also you can run 'repoman manifest' to re-generate the manifest checksums if you have edited things.

> So I've emerged consolekit-1.1.0 twice with USE=debug applied - the second
> time I've killed emerge just after compiling and applied the changes using
> patch -p1 and doing a make && make install in src and tools.
> 
> After /etc/init.d/consolekit restart both Xfce4 and KDE-4 started fine. :)

Great! I will test this some more then make a 1.1.0-r1 that includes that patch.
Comment 13 Jason Zaman gentoo-dev 2016-08-02 15:18:37 UTC
1.1.0-r1 with the patch is in the tree now.
Comment 14 Tom 2016-08-05 08:23:11 UTC
Works fine so far - a big THX to you, also for the hints above applying patches much easier. :)
Comment 15 KosmiK 2016-08-08 11:04:14 UTC
What? Resolved? Are you sure?

consolekit-1.1.0 and -r1 giving me same seg.fault.
559338.040315] ck-launch-sessi[26371]: segfault at 0 ip 00007f9ab5ca759a sp 00007ffdf37eb328 error 4 in libc-2.22.so[7f9ab5c26000+193000]

Check https://bugs.gentoo.org/show_bug.cgi?id=580750 plz.