Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187297 - net-wireless/kdebluetooth-1.0_beta3 crashes with dbus error
Summary: net-wireless/kdebluetooth-1.0_beta3 crashes with dbus error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-31 22:13 UTC by Thomas Heinz
Modified: 2007-08-03 13:50 UTC (History)
2 users (show)

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 Thomas Heinz 2007-07-31 22:13:40 UTC
Running kbluetooth yields the following error:

process 6428: arguments to dbus_connection_add_filter() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 4954.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
ERROR: Communication problem with kdebluetooth, it probably crashed.
KCrash: Application 'kbluetooth' crashing...

stracing kbluetooth shows that /var/run/dbus/system_bus_socket cannot be connected to:
[...]
[pid  6251] socket(PF_FILE, SOCK_STREAM, 0) = 10
[pid  6251] connect(10, {sa_family=AF_FILE, path="/var/run/dbus/system_bus_socket"}, 33) = -1 ECONNREFUSED (Connection refused)
[pid  6251] open("/usr/share/locale/de_DE@euro/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  6251] open("/usr/share/locale/de@euro/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  6251] open("/usr/share/locale/de_DE/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  6251] open("/usr/share/locale/de/LC_MESSAGES/libc.mo", O_RDONLY) = 11
[pid  6251] fstat64(11, {st_mode=S_IFREG|0644, st_size=123187, ...}) = 0
[pid  6251] mmap2(NULL, 123187, PROT_READ, MAP_PRIVATE, 11, 0) = 0xb6163000
[pid  6251] close(11)                   = 0
[pid  6251] close(10)                   = 0
[pid  6251] write(2, "process 6251: ", 14process 6251: ) = 14
[pid  6251] write(2, "arguments to dbus_connection_add"..., 201arguments to dbus_connection_add_filter() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 4954.
This is normally a bug in some application using the D-Bus library.
) = 201
[pid  6251] write(2, "  D-Bus not built with -rdynamic"..., 64  D-Bus not built with -rdynamic so unable to print a backtrace
) = 64
[pid  6251] rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
[pid  6251] tgkill(6251, 6251, SIGABRT) = 0
[...]

I'm using sys-apps/dbus-1.0.2-r2, net-wireless/bluez-libs-3.12 and
net-wireless/bluez-utils-3.12.


Reproducible: Always

Steps to Reproduce:




Portage 2.1.2.9 (default-linux/x86/2006.1/desktop, gcc-3.4.6-hardened, glibc-2.5-r4, 2.6.21-gentoo-r4 i686)
=================================================================
System uname: 2.6.21-gentoo-r4 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 30 Jul 2007 18:33:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=k8 -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -march=k8 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org/"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib accessibility acl acpi aim alsa apache2 apm arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bluetooth bzip2 cairo calendar caps cdb cdparanoia cdr cli cracklib crypt cscope cups curl curlwrappers dbm dbus dga dio directfb doc dri dv dvb dvd dvdr dvdread eds emacs emboss encode esd ethereal examples exif fam fastcgi fbcon ffmpeg fftw firefox flac flash flatfile foomaticdb fortran freetds ftp gd gdbm geoip gif ginac glut gmp gnome gnutls gphoto2 gpm gps gstreamer gtk gtk2 guile hal hardenedphp howl icc iconv icq ieee1394 imagemagick imap imlib innodb iodbc ipv6 isdnlog jabber jack java javascript joystick jpeg kde kdeenablefinal kerberos krb4 ladcca lcms ldap leim lesstif libcaca libg++ libgda libwww lirc lm_sensors mad maildir matroska mcal mcve memlimit mhash midi mikmod milter mime ming mmap mmx mng mono motif mozilla mp3 mpeg mpi msession msn mudflap mule mysql mysqli nas ncurses netcdf nls nocd nptl nptlonly nsplugin offensive ofx ogg openal opengl openmp osc oscar oss pam pcntl pcre pda pdf perl pfpro php plotutils png portaudio posix ppds pppd python qt qt3 qt4 quicktime radius readline recode reflection ruby samba sasl scanner sdl session sharedext sharedmem shorten simplexml skey slang slp smartcard sndfile snmp soap sockets socks5 sox speex spell spl sqlite sse sse2 ssl svg svga tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb v4l vcd vhosts videos vorbis wddx win32codecs wmf wxwindows x86 xface xine xml xml2 xmlrpc xorg xpm xprint xsl xv xvid yahoo yaz zeo zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Thomas Heinz 2007-08-01 18:03:53 UTC
It's solved. I had to start `dbus-daemon --system` (/etc/init.d/dbus start). Would be nice if this would have been documented somewhere in gentoo's bluetooth guide (http://www.gentoo.org/doc/en/bluetooth-guide.xml). I'd appreciate it if you could suggest the maintainer of the document to make an addition. Thanks.
Comment 2 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-08-03 05:30:10 UTC
Jakub, please advise.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-03 07:25:18 UTC
(In reply to comment #2)
> Jakub, please advise.

Hmmm? :) I don't think the description in comment #1 is correct. Looks like dbus was running already - but you need to reload the configuration or restart if after installing stuff that installs its own dbus configuration files/services etc. (see the ECONNREFUSED error). 

If you think that dbus should pick up the config changes on-the-fly via inotify or whatever, then you need to bug gentopia folks or preferably dbus upstream, not KDE. ;)
Comment 4 Thomas Heinz 2007-08-03 13:50:52 UTC
/etc/X11/xinit/xinitrc.d/30-dbus is executed when I start X. Hence, the following processes run without starting dbus via /etc/init.d/dbus start:

/usr/bin/dbus-launch --sh-syntax --exit-with-session
/usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session

Only when I start /etc/init.d/dbus start the error does not occur on my system.