Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150164 - dbus-daemon in session mode dies
Summary: dbus-daemon in session mode dies
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Project Gentopia
Depends on:
Reported: 2006-10-05 06:27 UTC by Zsolti
Modified: 2006-10-30 16:55 UTC (History)
0 users

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

emerge info (emergeinfo2.txt,3.18 KB, text/plain)
2006-10-05 08:25 UTC, Zsolti

Note You need to log in before you can comment on or make changes to this bug.
Description Zsolti 2006-10-05 06:27:07 UTC
while trying to get dbus to work with gnome-2.14 i realized that dbus-daemon in session mode launched with dbus-launch dies at least after a few minutes.
i'm starting gnomesession via qingy, but for xdm, gdm and others it seems to be the same. see this thread:
first problem is that /etc/X11/xinit/xinitrc.d wont get parsed or dbus-daemon isn't launched, but this should probably go in another report.
so i put "dbus-launch gnome-session" into $HOME/.gomerc.
now dbus-deamon is running at least a few minutes, but then unconditionaly dies.
i could not attach a backtrace or coredump since there is nothing in the logs.
(yes i switched on USE=debug)
this happens for version 0.62-r1 as well as 0.91.

this seems essential to me since many apps are relying on a working dbus in gnome-2.14 and more would in 2.16.

Gentoo Base System version 1.12.5
Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-suspend2 i686)
System uname: 2.6.18-suspend2 i686 Intel(R) Pentium(R) III Mobile CPU       866MHz
Last Sync: Wed, 04 Oct 2006 11:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -ffast-math -mfpmath=sse -fweb -ftracer"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -ffast-math -mfpmath=sse -fweb -ftracer"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
LINGUAS="de hu en"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
USE="X a52 aac acpi alsa amr apache2 audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cli crypt cups dbus directfb doc dri dv eds elibc_glibc emacs emboss encode ethereal evo fbcon ffmpeg firefox flac foomaticdb fortran fuse gdbm gif gnome gstreamer gtk gtk2 hal httpd imlib input_devices_keyboard input_devices_mouse input_devices_ps2mouse input_devices_sonypijogdial input_devices_synaptics insecure-drivers ipv6 isdnlog jack jpeg kernel_linux libg++ libwww linguas_de linguas_en linguas_hu live logrotate mad makecheck matroska mikmod mmx mono mozsvg mp3 mpeg mysql ncurses network nls nokia6600 nptl nptlonly ogg opengl oss pam pcmcia pcre pda pdf perl pic png ppds pppd python qt3 qt4 quicktime readline real reflection samba scenarios sdl session shout spell spl sse ssl stream svg tcpd theora timidity truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_radeon vlm vorbis x86 xml xorg xv xvid yv12 zlib"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-05 06:46:29 UTC
Reopen if you can reproduce it after recompiling with C[XX]FLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
Comment 2 Zsolti 2006-10-05 08:25:31 UTC
Created attachment 98846 [details]
emerge info
Comment 3 Zsolti 2006-10-05 08:29:24 UTC
still the same with -O2 -march=pentium3 -pipe -fomit-frame-pointer.

system dbus-daemon runs fine though.
maybe i have to rebuild everything with above cflags to be sure...
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-10-05 08:31:47 UTC
Run it from console and attach a backtrace, we really can't guess.
Comment 5 Zsolti 2006-10-05 10:13:21 UTC
sorry but it's running fine on console and also if gnome is started within a shell. mean if i login into a shell and start gnome-session via .xinitrc.
dbus-daemon --session is started prior when i login.

btw. i digged into /etc/X11/Sessions/Gnome. the scripts in /etc/X11/xinit/xinitrc.d seems to be parsed and executed but simply launching dbus-daemon with dbus-launch doesn't work out of user context.
the resulting command should be: dbus-launch gnome-session.
at least with qingy, does dbus work with gdm this way?
Comment 6 Steev Klimaszewski (RETIRED) gentoo-dev 2006-10-05 13:10:59 UTC
Qingy may not source those files, but last I checked, GDM does.
Comment 7 Zsolti 2006-10-05 13:35:17 UTC
(In reply to comment #6)
> Qingy may not source those files, but last I checked, GDM does.
hm, maybe my english isn't so good. what i want to say is, that i think while starting gnome+x+whatever with qingy via the gnomesession script the scripts in X11/xinit/xinitrc.d/ *are sourced indeed*, also the script 30-dbus, but it is useless since only firering up dbus with dbus-launch doesn't work.
theoretically someone has to do: dbus-launch gnome-session to pass the envs to gnome.
but if it works with gdm, i mean if the dbus session daemon is started and stays up then it's probably a qingy only problem.
im back to startx anyway...
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2006-10-30 16:55:18 UTC
So quingy does the wrong thing but you no longer have a way to test?

If you find any issues with dbus and have a way to test. Please reopen with new info.