Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298861 - net-wireless/bluez-4.39-r2: bluetoothd crashes when trying to pair
Summary: net-wireless/bluez-4.39-r2: bluetoothd crashes when trying to pair
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 13:51 UTC by paolo muratore-ginanneschi
Modified: 2010-02-09 10:35 UTC (History)
5 users (show)

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


Attachments
dmesg from boot to bluetooth failure (dmesg.txt,30.22 KB, text/plain)
2010-01-21 14:20 UTC, paolo muratore-ginanneschi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paolo muratore-ginanneschi 2009-12-29 13:51:22 UTC
Whenerver trying to pair the laptop (latitude E4300 with broadcom device BCM 2046) with a mobile-phone the bluetooth-applet crashes after I digit on the
phone the pin-code sent by bluetooth-wizard.

Expected behavior:
the devices pair up.

The error message reported by dmesg is:

bluetoothd[2113] general protection ip:7fdfafef8c8a sp:7fff0fcdddf8 error:0 in bluetoothd[7fdfafedf000+33000]

/var/log/messages reports:

Dec 29 14:10:18 gigio bluetoothd[2113]: link_key_request (sba=address, dba=address)
Dec 29 14:10:18 gigio bluetoothd[2113]: pin_code_request (sba=address, dba=address)
Dec 29 14:10:29 gigio bluetoothd[2113]: link_key_notify (sba=address, dba=address, type=0)
Dec 29 14:10:50 gigio kernel: bluetoothd[2113] general protection ip:7fdfafef8c8a sp:7fff0fcdddf8 error:0 in bluetoothd[7fdfafedf000+33000]
Dec 29 14:10:50 gigio bluetoothd[2113]: : error updating services: Host is down

Restarting bluetooth gives

Dec 29 14:24:46 gigio bluetoothd[5376]: Bluetooth daemon 4.39
Dec 29 14:24:46 gigio bluetoothd[5376]: Starting SDP server
Dec 29 14:24:46 gigio bluetoothd[5376]: Can't create GN bridge
Dec 29 14:24:46 gigio bluetoothd[5376]: Starting experimental netlink support
Dec 29 14:24:46 gigio bluetoothd[5376]: Failed to find Bluetooth netlink family
Dec 29 14:24:46 gigio bluetoothd[5376]: HCI dev 0 registered
Dec 29 14:24:46 gigio bluetoothd[5376]: HCI dev 0 up
Dec 29 14:24:46 gigio bluetoothd[5376]: Starting security manager 0
Dec 29 14:24:46 gigio bluetoothd[5376]: Adapter /org/bluez/5376/hci0 has been enabled 

I have installed:
glib-2.20.5-r1
gtk+-2.16.6
libnotify-0.4.5
gconf-2.26.2-r1
dbus-glib-0.76
libunique-1.0.8
bluez-4.39-r2
obexd-0.18
gnome-bluetooth-2.28.3
obexftp-0.23-r1
pambase-20090620.1-r1
pam-1.1.0
Comment 1 paolo muratore-ginanneschi 2009-12-29 13:52:30 UTC
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9400_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 29 Dec 2009 00:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="  ftp://trumpetti.atm.tut.fi/gentoo/  http://trumpetti.atm.tut.fi/gentoo/  ftp://ftp.linux.ee/pub/gentoo/  ftp://ftp.ing.umu.se/linux/gentoo/  http://ftp.ing.umu.se/linux/gentoo/  ftp://ftp.ds.karen.hj.se/gentoo/  http://ftp.ds.karen.hj.se/gentoo/  ftp://mirror.mdfnet.se/gentoo/  http://mirror.mdfnet.se/mirror/gentoo/  ftp://de-mirror.org/distro/gentoo/  http://de-mirror.org/distro/gentoo/  ftp://ftp.unina.it/pub/linux/distributions/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
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.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt cups cxx dbus dell dri dts dvd dvdr eds emacs emboss encode evo exif fam ffmpeg firefox flac fortran gcj gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 java jpeg jpeg2k laptop ldap libnotify lm_sensors mad mikmod mjpeg mmap mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pmu png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcl tcpd tetex thunar tiff tk truetype unicode usb vorbis wmf x264 xine xinerama xinetd xml xorg xprint xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel usb-audio" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Gustavo F. Padovan 2010-01-20 04:35:37 UTC
please post a complete dmesg here.
Comment 3 paolo muratore-ginanneschi 2010-01-21 14:20:15 UTC
Created attachment 217080 [details]
dmesg from boot to bluetooth failure

the message reported by dmesg when bluetooth fais and its applet crashes is

 pulseaudio[4418]: segfault at ffffffff0063dbe8 ip 00007f30828aff59 sp 00007fffaa442220 error 4 in libc-2.10.1.so[7f3082836000+16d000]
Comment 4 Gustavo F. Padovan 2010-01-21 15:54:51 UTC
(In reply to comment #3)
> Created an attachment (id=217080) [details]
> dmesg from boot to bluetooth failure
> 
> the message reported by dmesg when bluetooth fais and its applet crashes is
> 
>  pulseaudio[4418]: segfault at ffffffff0063dbe8 ip 00007f30828aff59 sp
> 00007fffaa442220 error 4 in libc-2.10.1.so[7f3082836000+16d000]
> 

There is nothing important there. Install bluez with USE test-programs and try to pair with your mobile device doing:

$ simple-agent hci0 00:1A:3E:9A:83:DD

(you can get the bluetooth address running 'hcitool scan'. Be sure that your cell phone is on the discoverable mode)

then tell me what happens.
Comment 5 paolo muratore-ginanneschi 2010-01-21 16:09:10 UTC
This is what happens:

:~|5> simple-agent hci0 **:**:**:**:**:**
RequestPinCode (/org/bluez/12719/hci0/dev_**_**_**_**_**_**)
Enter PIN Code: 
Release
Creating device failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

If I instead use the applet dmesg reports:
 usb 3-1.2: usbfs: process 12553 (hid2hci) did not claim interface 0 before use

Thanks

Comment 6 Pacho Ramos gentoo-dev 2010-02-01 20:23:28 UTC
Do you get the same with bluez-4.60 ?
Comment 7 paolo muratore-ginanneschi 2010-02-08 16:29:23 UTC
(In reply to comment #6)
> Do you get the same with bluez-4.60 ?
> 
Just tested: Bluetooth seems to work correctly with
net-wireless/bluez-4.60
app-mobilephone/obex-data-server-0.4.5
gnome-bluetooth-2.28.3
net-wireless/gnome-bluetooth-2.28.3
sys-fs/obexfs-0.11
(and not with app-mobilephone/obexd!)


Comment 8 Pacho Ramos gentoo-dev 2010-02-08 20:23:07 UTC
(In reply to comment #7)
> (and not with app-mobilephone/obexd!)
> 

Could you elaborate a bit more about this last point? Is it the same bug or a different one? Thanks
Comment 9 paolo muratore-ginanneschi 2010-02-09 10:27:07 UTC
It is most likely a different one. With bluez-4.60 pairing to device is successful both if I use obexd (which I had installed when I opened the bug)
or if I use obex-data-server (with which I replaced obexed after a first trial with bluez-4.60). If I use obexd an error occur when I start browsing the device.
Only with obex-data-server I observed up to now a correct behavior. I mentioned
the above only to account for the change of configuration in my last posting.
 
Comment 10 Pacho Ramos gentoo-dev 2010-02-09 10:35:12 UTC
OK, then, this one is fixed. About obexd problem, I think that I have seen a similar problem (maybe I saw it myself, but I don't remember and can't test just now :-( ) 

Maybe you should send a new bug repot for it :-/