Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392455 - if consolekit does not set login-session-id = '' or does not find DBUS session-bus system should not soft lock
Summary: if consolekit does not set login-session-id = '' or does not find DBUS sessio...
Status: RESOLVED DUPLICATE of bug 387147
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-29 19:37 UTC by turtle
Modified: 2011-12-13 21:15 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 turtle 2011-11-29 19:37:48 UTC
After following this guide:http://www.gentoo.org/proj/en/desktop/kde/kde44-46-upgrade.xml
and this forums post:http://forums.gentoo.org/viewtopic-t-858965-highlight-.html
I am not experiencing a 'JustWorks'(TM) KDE or Xfce DE.
I am only able to use X with TWM:
System is up to date, all stable packages except perl , did emerge -e world
emerged several relevant packages with --noconfmem
Followed all recommendations in guide and spent days reading 13 page forums post as well as others.
Have stripped configs to stock as much as possible.

logging into KDE or xfce causes soft lock of system due to no memory.
If Consolekit / kdm can not find session bus system should not soft lock, rather should kill processes depending on session bus. 

I am unable locate what process's are using all the memory and have tried several strategies.
documented here:
http://forums.gentoo.org/viewtopic-t-902886-highlight-.html
I am able to use most KDE aps unless they need to open a file dialog box, also when system shuts system shows an error when unmounting stuff and says not in fuser.

 ck-list-sessions 
Session1:
        unix-user = '1001'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-11-29T18:42:24.191486Z'
        login-session-id = ''

And entire contents of kdm log are:
klauncher(3174) kdemain: No DBUS session-bus found. Check if you have started the DBUS server. 
kdeinit4: Communication error with launcher. Exiting!
kdmgreet(3135)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "Not connected to D-Bus server" 


kernel is configured properly:
 zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND|CONFIG_IDE ' /proc/config.gz 
CONFIG_AUDITSYSCALL=y
CONFIG_PM_RUNTIME=y
# CONFIG_IDE is not set
CONFIG_USB_SUSPEND=y

emerge --info
Portage 2.1.10.11 (default/linux/x86/10.0/desktop, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo i686)
=================================================================
System uname: Linux-3.0.6-gentoo-i686-Mobile_Intel-R-_Pentium-R-_4_CPU_3.33GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 29 Nov 2011 14:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     1.3.7-r1, 2.1.11-r3
dev-lang/python:          2.4.6, 2.5.4-r4, 2.6.6-r2, 2.7.2-r3, 3.1.4-r3
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mtune=pentium4 -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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="-march=pentium4 -mtune=pentium4 -pipe -O2"
DISTDIR="/usr/portage/distfiles"                                                                                        
EMERGE_DEFAULT_OPTS=" --autounmask "                                                                                    
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"            
FFLAGS=""                                                                                                               
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/home/Music/pentium4/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/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx X a52 aac aalib acl acpi akode alsa amarok amazon amr ao apache2 apm bash-completion berkdb bluetooth branding bzip2 cairo cardbus cdb cdda cddb cdr cdrom cli consolekit cracklib crypt css cups curl cxx dbus declarative device-mapper dga directfb divx dri dts dv dvb dvd dvdr dynamicplugin eap-sim embedded emboss encode exif fam fbcon ffmpeg firefox flac flash flatfile fortran gcj gd gdbm gdu ggi gif gimp gmedia gnutls gphoto2 gpm gtk iconv id3tag imagemagick ipod jack java joystick jpeg jpeg2k kde kpathsea ladspa latex lcms ldap libcaca libnotify libsamplerate libwww live mad madwifi matroska mmx mng modules mozilla mp3 mp3rtp mp3tunes mp4 mp4live mpeg mpeg2 mplayer mtp mudflap musepack mysql nas ncurses nls npp nptl nptlonly nsplugin ogg opengl openmp pam pam_ssh pango pcmcia pcntl pcre pdf php pmu png pnm policykit postgres ppds pppd qt3support qt4 radio rar readline realmedia sasl scanner screen sdl semantic-desktop session sndfile sound spell sql sse sse2 ssl startup-notification static-libs svg sysfs tao tcpd thumbnail tiff truetype udev unicode usb vorbis wifi win32codecs wma wmp wps x264 x86 xanim xcb xemacs xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias cgi cgid auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio loop-aes mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" 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" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2011-11-29 22:37:43 UTC
Did you start dbus?
Comment 2 turtle 2011-11-30 02:20:55 UTC
Hi thanks dbus is started.
 ps -C dbus-launch -o pid=
 3447

/etc/init.d/dbus status
 * status: started

This is the worst and most interesting problem I have had yet in 8 years of using Gentoo.
I now suspect it is due to pam_mount being installed even though I currently do not use it.

Anything you want me to do and I'll do it right away.
Thanks
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2011-12-01 00:28:34 UTC
I guess you have glib-networking installed see bug #365479. Try one of the suggested workarounds in the comments of the mentioned bug or try to upgrade to KDE 4.7.3 (note KDE 4.7.3 is in stabilisation, will hit stable tree soon).
Comment 4 turtle 2011-12-03 01:58:18 UTC
(In reply to comment #3)
> I guess you have glib-networking installed see bug #365479. Try one of the
> suggested workarounds in the comments of the mentioned bug or try to upgrade to
> KDE 4.7.3 (note KDE 4.7.3 is in stabilisation, will hit stable tree soon).


My issue is this set up is too fragile; any number of things (user mis configurations, bugs in updates, weird combinations of DE of software, python issues etc) will cause applications to not find session bus or cause garbled or incomplete data in the session. Problems in this new fangled dbus *kit stuff should not render a system frozen. This is a bug about redundancy and robustness.

For example I am doing a emerge -e system right now that has brought in a python update which broke wicd.
If I try to start wicd-cli I get:
wicd-cli
Traceback (most recent call last):
  File "/usr/share/wicd/cli/wicd-cli.py", line 19, in <module>
    import dbus
ImportError: No module named dbus
 
But my system does not soft lock.


If login-session-id = cant be null openrc should kill anything that will soft lock cause of that and throw a legable error message on the console. Openrc should kill processes depending on session bus *kit stuff in this case.

OR

Gentoo should provide a way to manually set
login-session-id

Regarding glib-networking and that other bug;
I had done a emerge -C glib-networking and no change.
To my surprise it kept getting pulled back in by revdep-rebuild.
There is no blocker in glib-networking and that bug 365479 is resolved. The commenter's on that bug cant reproduce the problem.
I need KDE apps for work so I uninstalled xfce and recompiled the gimp with -webkit and that keeps it out of my system.

And I still experience softlock.

This bug 387147 is close to my first problem here is my forums post for more description:http://forums.gentoo.org/viewtopic-t-901458-highlight-.html
I also have the problem right after logging in to KDE or Xfce not when calling xfce4-session-logout.

But I digress it is not about me, I just feel like the whole JustWorks(tm) thing is too fragile for Gentoo.
Comment 5 turtle 2011-12-13 20:04:49 UTC
Please close this bug as a duplicate of bug 387147 and reclassify as testing has determined this is not related to KDE.
last comment on robustness aside the bug is upstream:
http://sourceforge.net/tracker/?func=detail&aid=3407320&group_id=41452&atid=430593

Original problem of "logging into KDE or xfce causes soft lock of system due to no memory."
Top shows nothing in particular eating the memory.

dbus kit stuff using pam might be related or it was just a compound problem after an update.

emerge -av =pam_mount-2.10

and masking < pam_mount-2.10 will fix the problem.
Comment 6 Johannes Huber (RETIRED) gentoo-dev 2011-12-13 21:15:34 UTC

*** This bug has been marked as a duplicate of bug 387147 ***