Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356877 - sys-apps/dbus causes some services be sleeping when opened
Summary: sys-apps/dbus causes some services be sleeping when opened
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 17:45 UTC by Fred Krogh
Modified: 2014-02-12 16:54 UTC (History)
2 users (show)

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


Attachments
.xsession-errors file as requested (.xsession-errors,6.36 KB, text/plain)
2011-03-01 15:02 UTC, Fred Krogh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fred Krogh 2011-02-28 17:45:24 UTC
I had problems with my system opening applications but the applications not being accessible as they were sleeping. It was a struggle to finally determine that
chmod o+x /usr/libexec/dbus-daemon-launch-helper
fixed the problem.  After a recent upgrade to dbus 1.4.6, the problem returned.  The above permission change fixed the problem again.

I have no idea if this is the proper fix, but if not, something else is messed up.

Reproducible: Always




emerge --info ====

Portage 2.1.9.41 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r1-x86_64-AMD_Opteron-tm-_Processor_242-with-gentoo-2.0.1
Timestamp of tree: Sun, 27 Feb 2011 22:00:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 1.3.7-r1, 2.1.11-r3
dev-lang/python:     2.5.4-r4, 2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.3.5, 4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/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 -pipe -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org http://ftp.ucsb.edu/pub/mirrors/linux/gentoo  http://cudlug.cudenver.edu/gentoo http://gentoo.binarycompass.org"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl administrator aiglx alsa amd64 apache2 auctex audiofile bash-completion bcmath berkdb blas bonobo bzip2 cairo calendar cdda cdparanoia cdr cdrom clamav clamd cli clisp clucene colordiff consolekit cracklib crypt ctype cups cxx dbus debugger deprecated device-mapper dga discouraged divx-linux dri dvb dvd dvdr dvdread emacs emul-linux86 esd extensions extras fastcgi fbcon ffmpeg flac fontconfig fortran ftp gd gdbm gdu glut gmail gnome gnome-keyring gnutls gphoto2 gpm graphite gstreamer gtk iconv icu imagemagick ipv6 java javascript jpeg kde kerberos kpathsea lame latex latin1 leim libclamav libnotify libwww lightning logrotate mad maildir mbox mcal mime mmx mmxext mng modules motif mouse mozcalendar mozilla mp3 mpeg mpeg2 mpi mudflap multilib mysql mysqli nat ncurses nls nocd nosendmail nptl nptlonly nsplugin nvidia objc offensive ogg openexr opengl openmp osc oscar pam pcre pdf perl png policykit pop pop3d portaudio posix ppds pppd preview-latex python qt3support qt4 query-browser readline regex replytolist rtc samba sasl secure-delete semantic-desktop session sharedmem sip smbclient sockets sound source sox spamassassin speex sqlite sse sse2 ssl standalone svg symlink sysfs tcltk tcpd tetex theora threads thunderbird tiff truetype udev unicode usb vhosts vorbis wav weather webkit wxwidgets wxwindows xcomposite xine xmail xorg xulrunner xvid" 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" 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 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 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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2011-02-28 18:42:31 UTC
As you may have suspected, it's not a correct solution.
That executable has sticky bit set, so you've opened a large security hole.

Most likely, it's either a permission problem on the services or perhaps a consolekit related issue. Maybe your user wasn't added to correct groups too.

Anyway, you're better off asking support questions on the forum.
Comment 2 Fred Krogh 2011-02-28 19:07:18 UTC
It's not as if I haven't tried the forums, see http://forums.gentoo.org/viewtopic-p-6511795.html#6511795.  I just posted your response there.  Thanks.  I just made a list of all the groups that my user is not in that root is in.  Since the list is short I give it here: root, bin, daemon, dialout.  Perhaps daemon needs to have my user in it? 
Comment 3 Rafał Mużyło 2011-02-28 19:36:22 UTC
See bug 296367 - the permissions are correct on that executable,
the problem is likely somewhere in your config.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-02-28 20:17:52 UTC
Sounds like if you forgot to restart both dbus, and consolekit and also logout (relogin) all users... after an dbus/consolekit upgrade.
Otherwise there would be dangling ConsoleKit session open.
Comment 5 Fred Krogh 2011-02-28 20:19:41 UTC
I have had this problem even after a reboot.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2011-02-28 20:23:52 UTC
What problem is that exactly?   Can you provide some logs, like from dbus and consolekit with debug output enabled?  All we know so far is that setting invalid chmod on dbus-daemon-launch-helper "works" for you...
Comment 7 Fred Krogh 2011-02-28 20:30:40 UTC
Sorry, I have posted all the problems at great length at http://forums.gentoo.org/viewtopic.php?p=6596079#6596079, but neglected to do so here.  The problem is that: the icon for gnome-terminal when clicked on opens the terminal in sleep mode. Firefox has the same problem. Emacs starts in sleep mode if I start it in a terminal window. All of these things used to work if I did su - "same user" in a terminal window.

I'd be happy to post information from log files, but I don't think there is anything relevant to post.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2011-02-28 20:36:59 UTC
"su -" would lose environment variables like $DBUS_SESSION_BUS_ADDRESS so that wouldn't work anyway...

$ echo $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-aWvLZmhmnu,guid=3e01009e545bfcf5a8720c52000b8f2d
$ su - ssuominen
$ echo $DBUS_SESSION_BUS_ADDRESS

$
Comment 9 Fred Krogh 2011-02-28 21:22:16 UTC
Despite the fact that it shouldn't work, if I couldn't get firefox or emacs to start in a form that would let be get some work done, using su - "same user" would get me a terminal window where I could get things started that were not sleeping.
Comment 10 Fred Krogh 2011-03-01 02:34:45 UTC
I should have mentioned earlier, that everything works fine until I click on the gnome "footprint" icon on the task bar.  At that point the mouse will move, but clicking does nothing for about a minute.  Then everything goes back to normal, except for the aforementioned problem.
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-03-01 07:08:39 UTC
Please attach your ~/.xsession-errors
Comment 12 Fred Krogh 2011-03-01 15:02:06 UTC
Created attachment 264271 [details]
.xsession-errors file as requested

Down to 10 lines from the bottom all works despite the error messages.  At that point I clicked on the gnome footprint icon on the tool bar.  From that point on lots of things open in a "sleep" mode.  Thanks for looking at this.
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-03-01 19:23:53 UTC
 org.gtk.Private.GduVolumeMonitor: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/libexec/gvfs-gdu-volume-monitor received signal 6

-> SIGBUS, please strip down your CFLAGS and rebuild gvfs and all of it's runtime dependencies (glib, dbus, ...)
Comment 14 Fred Krogh 2011-03-01 20:44:17 UTC
I'm not sure I did what you wanted, but I used CFLAGS="-O2 -march=native -pipe", and emerged the following

  dev-libs/glib sys-apps/dbus dev-libs/libxml2 net-misc/openssh
 sys-fs/udev app-arch/libarchive net-dns/avahi
 app-mobilephone/obex-data-server dev-libs/dbus-glib
 net-wireless/bluez sys-fs/fuse sys-apps/gnome-disk-utility
 gnome-base/gconf gnome-base/gnome-keyring media-libs/libgphoto2
 app-pda/libimobiledevice dev-libs/libcdio sys-apps/hal
 net-libs/libsoup-gnome net-fs/samba dev-util/intltool
 dev-util/pkgconfig dev-util/gtk-doc-am

avahi failed to emerge complaining about dbus-python.  I emerge that, and then avahi.  With all the above emerged + some things that were brought into the emerge, I rebooted.  The problem is unchanged, except that after clicking on the gnome footprint icon, I could still start firefox.  But the problem with gnome-terminal and emacs was still with me.
Comment 15 Doug Goldstein (RETIRED) gentoo-dev 2012-07-14 19:26:01 UTC
Freedesktop maintains this now
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2014-02-12 16:54:42 UTC
I'm closing this now after 2 years:

- Unspecific problem in a single users system.
- sys-apps/dbus-1.8.0, and other newer packages should be tried. Toolchain too.