For some reason I can suspend to ram only once. After the first time it just keeps waking back up again. Reproducible: Always Steps to Reproduce: 1. Power Session / Suspend 2. Wake up the computer. 3. Power Session / Suspend Actual Results: Computer never sleeps. Expected Results: Goes back to sleep Please don't mark plasma stable. Portage 2.2.23 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.2.3-gentoo x86_64) ================================================================= System uname: Linux-4.2.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2 KiB Mem: 24686892 total, 16598464 free KiB Swap: 2000088 total, 2000088 free Timestamp of repository gentoo: Wed, 14 Oct 2015 02:45:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo, 3.5.0-r1::gentoo dev-util/cmake: 3.3.2-r1::gentoo dev-util/pkgconfig: 0.29::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.18.2::gentoo sys-apps/sandbox: 2.9::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::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.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage priority: -1000 luman location: /var/lib/layman/luman masters: gentoo priority: 0 local_overlay location: /usr/local/portage masters: gentoo priority: 1 hasufell location: /var/lib/layman/hasufell masters: gentoo priority: 50 java location: /var/lib/layman/java masters: gentoo priority: 50 miramir location: /var/lib/layman/miramir masters: gentoo priority: 50 open-overlay location: /var/lib/layman/open-overlay masters: gentoo priority: 50 proaudio location: /var/lib/layman/proaudio masters: gentoo priority: 50 science location: /var/lib/layman/science masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 50 torbrowser location: /var/lib/layman/torbrowser masters: gentoo priority: 50 tox-overlay location: /var/lib/layman/tox-overlay masters: gentoo priority: 50 wtk location: /var/lib/layman/wtk masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="${CONFIG_PROTECT} /etc /etc/idea/conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" 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 userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j10" 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" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 amr berkdb branding btrfs bzip2 cairo cdda cddb cdr cifs cli consolekit cracklib crypt cups curl custom-cflags cxx dbus declarative dri dts dvd dvdr emboss encode exif faac fam fat ffmpeg firefox flac fortran ftp gdbm gif glamor gnutls gpm gsm gstreamer gtk hal hfs iconv icu ipv6 jpeg kde kipi lame lcms legacy-systray libnotify lm_sensors lto lzma mad mmx mmxext mng modules mozilla mp3 mp4 mpeg multilib musepack mysql ncurses networkmanager nfs nls nptl nptlonl nsplugin ntfs offensive ogg openal opengl openmp opus pam pango pcre pdf phonon pic plasma png policykit popcnt ppds python3 qml qt3support qt4 qt5 rar rdesktop rdp readline samba sdl seccomp session speex spell sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification steamgames_source_engine svg system-sqlite tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vnc vorbis vpx wavpack widgets wxwidgets x264 xcb xcomposite xfs xinerama xml xscreensaver xv xvid xvmc zip zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="access_compat actions alias auth_basic authn_core authz_core authz_host autoindex dir env filter log_config mime negotiation rewrite setenvif unique_id unixd" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 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="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 en_US" NETBEANS_MODULES="apisupport cnd dlight harness ide java nb php profiler websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21 ruby22" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
[ 2224.900248] console-kit-dae[3057]: segfault at 28 ip 000000000040c539 sp 00007fff083ae060 error 4 in console-kit-daemon[400000+3b000]
Program received signal SIGSEGV, Segmentation fault. 0x000000000040c539 in cancel_timeout_and_call_system_action (priv=0x1bdc010, priv=0x1bdc010) at ck-manager.c:3453 3453 ck-manager.c: No such file or directory. (gdb) bt #0 0x000000000040c539 in cancel_timeout_and_call_system_action (priv=0x1bdc010, priv=0x1bdc010) at ck-manager.c:3453 #1 on_inhibit_manager_changed_event (manager=<optimized out>, inhibit_mode=2, event=1, enabled=0, user_data=0x1bdc0f0) at ck-manager.c:3488 #2 0x00000034f74102b5 in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0 #3 0x00000034f7421fbc in ?? () from /usr/lib64/libgobject-2.0.so.0 #4 0x00000034f742a624 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0 #5 0x00000034f742a87f in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0 #6 0x0000000000416665 in cb_changed_event (inhibit=0x7f227c0094e0, inhibit_mode=2, event=1, enabled=<optimized out>, user_data=<optimized out>) at ck-inhibit-manager.c:147 #7 0x00000034f74102b5 in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0 #8 0x00000034f7421fbc in ?? () from /usr/lib64/libgobject-2.0.so.0 #9 0x00000034f742a624 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0 #10 0x00000034f742a87f in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0 #11 0x000000000041555a in emit_final_uninhibit_signals (inhibit=0x7f227c0094e0) at ck-inhibit.c:340 #12 close_named_pipe (inhibit=0x7f227c0094e0) at ck-inhibit.c:409 #13 0x00000000004157dd in cb_named_pipe_close (source=<optimized out>, condition=<optimized out>, user_data=0x7f227c0094e0) at ck-inhibit.c:435 #14 0x00000034f5c497cd in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #15 0x00000034f5c49ba0 in ?? () from /usr/lib64/libglib-2.0.so.0 #16 0x00000034f5c49ec2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0 #17 0x00000000004085dd in main (argc=1, argv=0x7ffcf2d09528) at main.c:303
So compiling consolekit and glib with -O1 and without omit frame pointer stops this segfault O_o
Its only when glib is compiled with -O2 Program received signal SIGSEGV, Segmentation fault. 0x000000000040c539 in cancel_timeout_and_call_system_action (priv=0x1697040, priv=0x1697040) at ck-manager.c:3453 3453 ck-manager.c: No such file or directory. (gdb) bt #0 0x000000000040c539 in cancel_timeout_and_call_system_action (priv=0x1697040, priv=0x1697040) at ck-manager.c:3453 #1 on_inhibit_manager_changed_event (manager=<optimized out>, inhibit_mode=2, event=1, enabled=0, user_data=0x1697120) at ck-manager.c:3488 #2 0x00007f3fce097a0f in g_closure_invoke (closure=0x1694b20, return_value=return_value@entry=0x0, n_param_values=4, param_values=param_values@entry=0x7ffd21f62c50, invocation_hint=invocation_hint@entry=0x7ffd21f62bf0) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/gobject/gclosure.c:768 #3 0x00007f3fce0a7f05 in signal_emit_unlocked_R (node=node@entry=0x1698790, detail=detail@entry=0, instance=instance@entry=0x168f9e0, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffd21f62c50) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/gobject/gsignal.c:3549 #4 0x00007f3fce0afd21 in g_signal_emit_valist (instance=0x168f9e0, signal_id=<optimized out>, detail=0, var_args=var_args@entry=0x7ffd21f62e10) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/gobject/gsignal.c:3305 #5 0x00007f3fce0b01ad in g_signal_emit (instance=<optimized out>, signal_id=signal_id@entry=39, detail=detail@entry=0) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/gobject/gsignal.c:3361 #6 0x0000000000416665 in cb_changed_event (inhibit=0x7f3fc8010e90, inhibit_mode=2, event=1, enabled=<optimized out>, user_data=<optimized out>) at ck-inhibit-manager.c:147 #7 0x00007f3fce097a0f in g_closure_invoke (closure=0x16a1e70, return_value=return_value@entry=0x0, n_param_values=4, param_values=param_values@entry=0x7ffd21f630f0, invocation_hint=invocation_hint@entry=0x7ffd21f63090) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/gobject/gclosure.c:768 #8 0x00007f3fce0a7f05 in signal_emit_unlocked_R (node=node@entry=0x16ae330, detail=detail@entry=0, instance=instance@entry=0x7f3fc8010e90, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffd21f630f0) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/gobject/gsignal.c:3549 #9 0x00007f3fce0afd21 in g_signal_emit_valist (instance=0x7f3fc8010e90, signal_id=<optimized out>, detail=0, var_args=var_args@entry=0x7ffd21f632b0) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/gobject/gsignal.c:3305 #10 0x00007f3fce0b01ad in g_signal_emit (instance=<optimized out>, signal_id=signal_id@entry=83, detail=detail@entry=0) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/gobject/gsignal.c:3361 #11 0x000000000041555a in emit_final_uninhibit_signals (inhibit=0x7f3fc8010e90) at ck-inhibit.c:340 #12 close_named_pipe (inhibit=0x7f3fc8010e90) at ck-inhibit.c:409 #13 0x00000000004157dd in cb_named_pipe_close (source=<optimized out>, condition=<optimized out>, user_data=0x7f3fc8010e90) at ck-inhibit.c:435 #14 0x00007f3fcdddf1c0 in g_io_unix_dispatch (source=source@entry=0x16ae8b0, callback=0x415790 <cb_named_pipe_close>, user_data=0x7f3fc8010e90) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/glib/giounix.c:165 #15 0x00007f3fcdd9ee96 in g_main_dispatch (context=0x1689c00) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/glib/gmain.c:3122 #16 g_main_context_dispatch (context=context@entry=0x1689c00) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/glib/gmain.c:3737 #17 0x00007f3fcdd9f184 in g_main_context_iterate (context=0x1689c00, block=block@entry=1, dispatch=dispatch@entry=1, self=self@entry=0x168a260) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/glib/gmain.c:3808 #18 0x00007f3fcdd9f4e8 in g_main_loop_run (loop=0x16917a0) at /var/tmp/portage/dev-libs/glib-2.44.1-r1/work/glib-2.44.1/glib/gmain.c:4002 #19 0x00000000004085dd in main (argc=1, argv=0x7ffd21f63718) at main.c:303 processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz stepping : 5 microcode : 0x15 cpu MHz : 3369.504 cache size : 8192 KB physical id : 0 siblings : 8 core id : 3 cpu cores : 4 apicid : 7 initial apicid : 7 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm dtherm tpr_shadow vnmi flexpriority ept vpid bugs : bogomips : 6739.00 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
So just to clarify, CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" causes segfaults while CFLAGS="-march=native -O1 -fomit-frame-pointer -pipe" seems to be ok. Both sys-libs/glibc-2.21-r1 and sys-auth/consolekit-1.0.0-r1 must be recompiled with -O1.
(In reply to Alex Barker from comment #6) > So just to clarify, CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" > causes segfaults while CFLAGS="-march=native -O1 -fomit-frame-pointer -pipe" > seems to be ok. Both sys-libs/glibc-2.21-r1 and > sys-auth/consolekit-1.0.0-r1 must be recompiled with -O1. I have the same versions of glibc and consolekit but I cannot reproduce this on an Xfce desktop environment. :( Can someone that uses plasma try this? It might be something different in that env that causes problems.
I have no idea why, however, this issue seems to have resolved itself. I could have been building with both radeon and r600, the 4.3 kernel or the latest round of plasma updates. Either way, I cannot reproduce this particular problem anymore.
So this works when it suspends due to inactivity, however, the original bug still occurs but only if you sleep manually from the power/session menu.
I use Plasma 5 and got the same error from time to time.
Portage 2.2.24 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.3.3-gentoo x86_64) ================================================================= System uname: Linux-4.3.3-gentoo-x86_64-Intel-R-_Core-TM-_i5-5200U_CPU_@_2.20GHz-with-gentoo-2.2 KiB Mem: 8154916 total, 1958112 free KiB Swap: 8003580 total, 8003580 free Timestamp of repository gentoo: Sat, 19 Dec 2015 19:24:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.2rc1 x86_64-pc-linux-gnu [enabled] app-shells/bash: 4.3_p39::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3::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.18.4::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::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: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 milkway location: /usr/local/portage masters: gentoo gentoo-zh location: /var/lib/layman/gentoo-zh sync-type: laymansync sync-uri: git://github.com/microcai/gentoo-zh.git masters: gentoo priority: 50 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 50 rebutia location: /var/lib/layman/rebutia sync-type: laymansync sync-uri: git://anongit.gentoo.org/user/rebutia.git masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/x11 masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core-avx2 -mabm -madx -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mprfchw -mrdseed" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" 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 -pipe -march=core-avx2 -mabm -madx -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mprfchw -mrdseed" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distcc-pump 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 -pipe" GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j24 -l4" 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" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emacs emboss encode exif fam fcitx firefox flac fortran gdbm gif glamor gles gles1 gles2 gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libinput libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pch pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff touchpad truetype udev udisks unicode upower usb vaapi vdpau vorbis wayland widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="intel i965" XFCE_PLUGINS="battery brightness" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
console-kit-dae[8847]: segfault at 28 ip 000000000040cf41 sp 00007ffe7be89460 error 4 in console-kit-daemon[400000+41000] I confirm this always happens after suspend-wakeup.
Some update: This segfault only happens when "Lock screen on resume." is on in "System Settings->Desktop Behavior->Screen Locking". I guess xfce4 is not affected because it locks the screen BEFORE suspend, not after resume. Based on Alex's trace it seems that Consolekit has a timeout period for various resume actions, and Plasma's screen locking takes longer than that?
Still an on going issue for me as well. Nothing I do can get this working properly and I am really out of ideas.
Please try the latest update to powerdevil-5.5.2-r1 and migrate from upower-pm-utils to upower and pm-utils. Let's see if this maybe fixes your bug.
Same problem: kernel: console-kit-dae[4180]: segfault at 28 ip 000000000040c9d1 sp 00007ffdf8770b90 error 4 in console-kit-daemon[400000+40000] This always segfaults when use menu Suspend to RAM / Suspend to disk. if use pm-suspend from command prompt all ok. [I] sys-auth/consolekit Installed versions: 1.0.0-r1(03:42:18 05.01.2016)(acl debug pam policykit -cgroups -doc -selinux -test KERNEL="linux") [I] sys-power/upower Installed versions: 0.99.3(19:00:16 04.01.2016)(introspection -doc -ios -selinux KERNEL="linux -FreeBSD") [I] kde-plasma/powerdevil Installed versions: 5.5.2-r1(5)[1](15:11:35 04.01.2016)(handbook -debug -systemd) Portage 2.2.26 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.3.3-gentoo x86_64) ================================================================= System uname: Linux-4.3.3-gentoo-x86_64-Intel-R-_Core-TM-_i5-5200U_CPU_@_2.20GHz-with-gentoo-2.2 KiB Mem: 8078104 total, 4923648 free KiB Swap: 16777212 total, 16585744 free Timestamp of repository gentoo: Tue, 05 Jan 2016 14:00:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3::gentoo dev-util/cmake: 3.4.1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.18.4::gentoo sys-apps/sandbox: 2.6-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: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 kde location: /var/lib/layman/kde masters: gentoo priority: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -g0" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" 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="-O2 -march=native -pipe -fomit-frame-pointer -g0" DISTDIR="/usr/portage/distfiles" 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 userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="rsync://gentoo.bloodhost.ru/gentoo-distfiles ftp://gentoo.bloodhost.ru/ http://gentoo.bloodhost.ru/ ftp://xeon.gentoo.ru/mirrors/gentoo/distfiles/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" 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" PORTAGE_TMPDIR="/var/tmp" USE="7zip X a52 aac acl acpi alsa amd64 amr apm avi avx avx2 berkdb bittorent bluetooth bluray branding bzip2 cairo cdda cddb cdr chardet chm cli consolekit cracklib crypt cups custom-optimization cxx dbus declarative dhcp djvu dri dts dvd dvdr dvdread egl emboss encode exif fam fbcon fbcondecor fbsplash ffmpeg firefox flac fma fontconfig fortran g3dvl gdbm gif glamor gphoto2 gpm gtk iconv icu id3tag ipod ipv6 jabber jack java jpeg jpeg2k kde kerberos kipi lame lastfm lcms ldap libass libcaca libmpeg2 libnotify libv4l libv4l2 live lm_sensors lzma lzo mad matroska mikmod mjpeg mmx mmxext mng modplug modules mp3 mp3tunes mp4 mpeg mpg123 mplayer mtp multilib musepack ncurses network networkmanager nfs nfsv41 nls nplugin nptl ogg opengl openmp opus pam pango pcre pdf phonon plasma pmu png policykit postproc ppds projectm qml qt3support qt4 qt5 quicktime rar raster readline real rtlsdr rtmp rtsp samba sdl seccomp sensors session sip sipim smp sndfile spell srtp sse sse2 sse3 sse4 sse4_2 ssl ssse3 startup-notification svg taglib tcpd theora threads tiff truetype twolame udev udisks unicode upower usb utf8 v4l v4l2 vaapi vdpau vlc vlm vorbis vpx webkit widgets wifi wma wma-fixed wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xosd xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="emu pc efi-64 multiboot" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" 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="intel i965" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
I am now seeing this as well. Otherwise stable system but for qt-5.5.1 and plasma. Nothing exotic. I recently upgraded to plasma-5.5.2 and at the same time from upower-pm-utils to upower, since it seems that is required in order to get lock-on-resume to work properly since plasma-5.5.x. I tried downgrading back to upower-pm-utils and still saw the segfault. I'm pretty sure this wasn't happening with plasma-5.4.3, but don't want to downgrade unless necessary. I filed an upstream bug with my backtrace here: https://github.com/ConsoleKit2/ConsoleKit2/issues/57
I was going to close this bug, however, now I am glad I didn't. So I was on consolekit 1.0.0 and I *think* what solved my issue was installing kwalletmanager from the kdeutils-meta. I already had kwallet installed independently but not he manager. I had also just done the gcc53 system rebuild, but the system continued to segfault after that so I dont believe it helped.
Created attachment 422520 [details, diff] Patch to fix segfault I found on github, right after 1.0.0 was tagged, upstream reverted a commit with the comment that it causes some situations to crash consolekit after a suspend. I took the SHA of that revert and made the attached patch. I added it as a epatch_user patch on my system and it made the segfault go away. Not sure if this is something that could be added to the tree, or just wait for the next ck2 release.
The SHA if anyone is interested is: 1e3f7f9862dceec3fa11ee4205c343ed64ce5b63 Also, I guess you could try -9999
(In reply to David Flogeras from comment #20) > The SHA if anyone is interested is: > 1e3f7f9862dceec3fa11ee4205c343ed64ce5b63 > > Also, I guess you could try -9999 That's a working solution. Thanks very much for your effort!
So I just noticed that I too was running -9999 version of the ebuild, however, down grading back to 1.0.0-r1 does not immediately re-produce the problem for me. I'll keep an eye on it in the coming weeks.
I persuaded upstream to release a 1.0.1 for consolekit. Hopefully once it gets added to the tree we can consider this fixed.
consolekit-1.0.1 is in the tree now. please test :D
Build and runs here without the segfault, thanks!
PS I noticed that another issue I had (since upgrading to ck-1.0.0, I had to now be in plugdev group to get access to bluez on dbus) has gone away with 1.0.1. Does that have anything to do with the pam-forground-compat.ck that was introduced? I'm only trying to figure out so I can report to upstream either fixed, or was a gentoo integration problem.
(In reply to David Flogeras from comment #26) > PS I noticed that another issue I had (since upgrading to ck-1.0.0, I had to > now be in plugdev group to get access to bluez on dbus) has gone away with > 1.0.1. Does that have anything to do with the pam-forground-compat.ck that > was introduced? I'm only trying to figure out so I can report to upstream > either fixed, or was a gentoo integration problem. yes, the bluez thing was fixed with bug 571524 by re-adding the pam-foreground hook.
I've raised the dependency in powerdevil to >=1.0.1 to make sure everyone gets the fixed version.