Created attachment 431456 [details] strace -o ck-launch-session-1.1.0.log /usr/bin/ck-launch-session #-------------------------------------------------# emerge --info here: http://pastebin.com/ma6g09HD #-------------------------------------------------# localhost ~ # eselect profile list [12] default/linux/amd64/13.0/systemd * strace in attach. #-------------------------------------------------# gdb --tui -d /usr/src/debug/sys-auth/consolekit-1.1.0/ConsoleKit2-1.1.0/src /usr/bin/ck-launch-session (gdb) break main (gdb) run (gdb) step *** *** 70 if (ck_connector_open_session (ckc, &error)) { 71 pid = fork (); 72 switch (pid) { (gdb) step (gdb) step (gdb) step 84 waitpid (pid, &status, 0); 85 exit (status); [Inferior 1 (process 10390) exited with code 013] (gdb) #-------------------------------------------------# dmesq: [ 5295.234356] ck-launch-sessi[10406]: segfault at 0 ip 00007ffff74595da sp 00007fffffffe3f8 error 4 in libc-2.22.so[7ffff73d8000+193000]
Created attachment 431458 [details] Kernel config My kernel config.
backtrace?
(In reply to Alex Xu (Hello71) from comment #2) > backtrace? I hopу i did it right Or it's not what you want? https://580750.bugs.gentoo.org/attachment.cgi?id=431456
Created attachment 435142 [details] ck-launch-session-sf.strace strace
if i run "DISPLAY=:0 ck-launch-session mate-session" uner non-root user, then its works: steam@localhost ~ $ DISPLAY=:0 ck-launch-session mate-session No protocol specified ** (mate-session:8586): WARNING **: Cannot open display: In dmesq: [44582.781572] traps: ck-remove-direc[8575] trap int3 ip:7ff5f68c44ee sp:7ffc55345d80 error:0 [44582.821754] traps: ck-remove-direc[8593] trap int3 ip:7f44dabe24ee sp:7ffc044ab300 error:0 --- if i run same for root, then in dmesq: [44778.618046] ck-launch-sessi[30764]: segfault at 0 ip 00007f84974265da sp 00007ffdda1ef148 error 4 in libc-2.22.so[7f84973a5000+193000]
This looks very similar to 585688, the segfault is the same so lets continue in that bug. *** This bug has been marked as a duplicate of bug 585688 ***
Reopening. (In reply to KosmiK from comment 585688#15) > 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. Can you try the -9999 version of consolekit to double check the bug is still present. Also can you get the gdb backtrace at the segfault ("bt" at the gdb prompt)
(In reply to Jason Zaman from comment #7) > > Can you try the -9999 version of consolekit to double check the bug is still > present. Also can you get the gdb backtrace at the segfault ("bt" at the gdb > prompt) Hello, I had the same problem on my stable x86 hardened profile with OpenRC, startxfce4 didn't work by root, and in the /var/log/messages I found those strings: [code]localhost kernel: ck-launch-sessi[8680]: segfault at 0 ip b0bacf71 sp bc83251c error 4 in libc-2.22.so[b0b2c000+1ad000] Aug 31 17:53:04 localhost kernel: grsec: Segmentation fault occurred at (nil) in /usr/bin/ck-launch-session[ck-launch-sessi:8680] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/ck-launch-session[ck-launch-sessi:8671] uid/euid:0/0 gid/egid:0/0 Aug 31 17:53:04 localhost kernel: grsec: bruteforce prevention initiated for the next 30 minutes or until service restarted, stalling each fork 30 seconds. Please investigate the crash report for /usr/bin/ck-launch-session[ck-launch-sessi:8680] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/ck-launch-session[ck-launch-sessi:8671] uid/euid:0/0 gid/egid:0/0 Aug 31 17:53:04 localhost kernel: grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/bin/ck-launch-session[ck-launch-sessi:8680] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/ck-launch-session[ck-launch-sessi:8671] uid/euid:0/0 gid/egid:0/0[/code]. But, now, after installing sys-auth/consolekit-9999 it works well as user and root too. I have tryed to use gdb on 1.1.0 version of ck-launch-session, but even I change to paxctl -m flags on /usr/bin/gdb and /usr/bin/ck-launch-session binaries, I still had those errors: [code]warning: Could not load shared library symbols for linux-gate.so.1. Do you need set solib-search-path or set sysroot? [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/libthread_db.so.1. [Inferior 1 (process 4666) exited with code 013][/code]. Sorry, but I didn't understoode what to do with this. The bt command returned something like "no stack".
(In reply to russiangentooshnik from comment #8) The emerge --info output: Portage 2.2.28 (python 2.7.10-final-0, hardened/linux/x86, gcc-4.9.3, glibc-2.22-r4, 4.4.8-hardened-r1 i686) ================================================================= System uname: Linux-4.4.8-hardened-r1-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.2 KiB Mem: 1000532 total, 22460 free KiB Swap: 8000000 total, 8000000 free Timestamp of repository gentoo: Wed, 31 Aug 2016 00:45: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-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.3.5-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.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.8.4::gentoo, 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: webrsync sync-uri: http://gentoo.osuosl.org/ priority: -1000 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="@FREE" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -mmmx -msse -msse2 -msse3 -mssse3" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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 -march=native -mmmx -msse -msse2 -msse3 -mssse3" DISTDIR="/usr/portage/distfiles" FCFLAGS="-march=i686 -O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-march=i686 -O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LANG="ru_RU.utf8" LC_ALL="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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 acl acpi alsa bash-completion berkdb bzip2 cli consolekit cracklib crypt cxx dbus dri gdbm gtk hardened iconv jpeg mmx mmxext modules ncurses nls nptl openmp pam pax_kernel pcre pic pie policykit readline seccomp session sse sse2 sse3 ssl ssp ssse3 startup-notification tcpd thunar truetype udev unicode urandom x86 xattr xtpax 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" 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="keyboard mouse evdev" KERNEL="linux" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="intel i915" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
(In reply to russiangentooshnik from comment #8) > But, now, after installing sys-auth/consolekit-9999 it works well as user > and root too. should all be fixed in 1.2.0. please re-open if its still an issue.