[Pkg-bluetooth-maintainers] Bug#497853: bluez-utils: hcid segfaults upon startup

Michael Wojciechowski wojci at wojci.dk
Thu Sep 4 20:32:16 UTC 2008


Package: bluez-utils
Version: 3.36-1
Severity: important


It looks like hcid segfaults when started by the bluetooth init script
- this also happens when started with "hcid -d -n". If I am using an
incompatible kernel version, the init script could print a nice
userfriendly warning.

root at netpc2:~# hcid -n -d
hcid[4843]: Bluetooth HCI daemon
hcid[4843]: Enabling debug information
hcid[4843]: Parsing /etc/bluetooth/main.conf failed: No such file or
directory hcid[4843]: Starting SDP server
hcid[4843]: Adding rec : 0xb8089168
hcid[4843]: with handle : 0x1
hcid[4843]: Adding rec : 0xb808b270
hcid[4843]: with handle : 0x0
hcid[4843]: Service classes 0x00
hcid[4843]: Loading plugins /usr/lib/bluetooth/plugins
hcid[4843]: /usr/lib/bluetooth/plugins/audio.so
hcid[4843]: Unix socket created: 11
hcid[4843]: audio.conf: Key file does not have key 'Master'
hcid[4843]: Couldn't find record for : 0x10000
hcid[4843]: Adding record with handle 0x10000
hcid[4843]: Adding rec : 0xb808d278
hcid[4843]: with handle : 0x10000
hcid[4843]: Service classes 0x00
hcid[4843]: audio.conf: Key file does not have key 'SCORouting'
hcid[4843]: audio.conf: Key file does not have key 'Disable'
hcid[4843]: audio.conf: Key file does not have group 'A2DP'
hcid[4843]: audio.conf: Key file does not have group 'A2DP'
hcid[4843]: audio.conf: Key file does not have group 'A2DP'
hcid[4843]: audio.conf: Key file does not have group 'A2DP'
hcid[4843]: audio.conf: Key file does not have key 'Master'
hcid[4843]: SEP 0xb808d870 registered: type:0 codec:0 seid:1
hcid[4843]: Couldn't find record for : 0x10001
hcid[4843]: Adding record with handle 0x10001
hcid[4843]: Adding rec : 0xb808d890
hcid[4843]: with handle : 0x10001
hcid[4843]: Service classes 0x08
hcid[4843]: audio.conf: Key file does not have key 'Master'
hcid[4843]: Couldn't find record for : 0x10002
hcid[4843]: Adding record with handle 0x10002
hcid[4843]: Adding rec : 0xb808d5b0
hcid[4843]: with handle : 0x10002
hcid[4843]: Service classes 0x08
hcid[4843]: Couldn't find record for : 0x10003
hcid[4843]: Adding record with handle 0x10003
hcid[4843]: Adding rec : 0xb808db28
hcid[4843]: with handle : 0x10003
hcid[4843]: Service classes 0x08
hcid[4843]: Registered manager path:/org/bluez/audio
hcid[4843]: name headset uuid 00001108-0000-1000-8000-00805F9B34FB
hcid[4843]: name headset uuid 0000111E-0000-1000-8000-00805F9B34FB
hcid[4843]: Registering service object: headset
(/org/bluez/service_headset) hcid[4843]: name sink uuid
0000110B-0000-1000-8000-00805F9B34FB hcid[4843]: Registering service
object: sink (/org/bluez/service_sink) hcid[4843]: name audio uuid
00001108-0000-1000-8000-00805F9B34FB hcid[4843]: name audio uuid
0000111E-0000-1000-8000-00805F9B34FB hcid[4843]: name audio uuid
00001112-0000-1000-8000-00805F9B34FB hcid[4843]: name audio uuid
0000111F-0000-1000-8000-00805F9B34FB hcid[4843]: name audio uuid
0000110D-0000-1000-8000-00805F9B34FB hcid[4843]: name audio uuid
0000110A-0000-1000-8000-00805F9B34FB hcid[4843]: name audio uuid
0000110B-0000-1000-8000-00805F9B34FB hcid[4843]: name audio uuid
0000110C-0000-1000-8000-00805F9B34FB hcid[4843]: name audio uuid
0000110E-0000-1000-8000-00805F9B34FB hcid[4843]: Registering service
object: audio (/org/bluez/service_audio) hcid[4843]: HCI dev 0
registered hcid[4843]: HCI dev 0 already up
hcid[4843]: Device hci0 has been added
hcid[4843]: Starting security manager 0
hcid[4843]: Device hci0 has been activated
hcid[4843]: return_link_keys (sba=00:0B:0D:20:7A:B0,
dba=00:00:00:00:00:00) hcid[4843]: return_link_keys
(sba=00:0B:0D:20:7A:B0, dba=00:00:00:00:00:00) hcid[4843]: child 4844
exited hcid[4843]: child 4845 exited
hcid[4843]: release_services
hcid[4843]: Unregistering service object: /org/bluez/service_headset
hcid[4843]: Unregistering service object: /org/bluez/service_sink
hcid[4843]: Unregistering service object: /org/bluez/service_audio
Segmentation fault

>From syslog:
Sep  4 22:00:44 netpc2 kernel: hcid[4724]: segfault at 8 ip b7f76c93 sp
bff90c50 error 4 in hcid[b7f54000+3e000]

The BT dongle I am using:
(from lsusb)
Bus 001 Device 003: ID 0f4d:1000 Microtune, Inc. Bluetooth Dongle

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26.3 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=C, LC_CTYPE=da_DK.ISO-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages bluez-utils depends on:
ii  dbus                         1.2.1-3     simple interprocess
messaging syst ii  libbluetooth2                3.36-1      Library to
use the BlueZ Linux Blu ii  libc6                        2.7-13      GNU
C Library: Shared libraries ii  libdbus-1-3                  1.2.1-3    
simple interprocess messaging syst ii  libglib2.0-0                
2.16.5-1    The GLib library of C routines ii  libusb-0.1-4             
   2:0.1.12-12 userspace USB programming library ii  lsb-base           
         3.2-20      Linux Standard Base 3.2 init scrip ii  makedev     
                2.3.1-88    creates device files in /dev ii 
module-init-tools            3.4-1       tools for managing Linux kernel
mo ii  udev                         0.125-5     /dev/ and hotplug
management daemo

Versions of packages bluez-utils recommends:
ii  bluez-audio                   3.36-1     Bluetooth audio support
ii  obex-data-server              0.3.4-1    D-Bus service for OBEX
client and 

Versions of packages bluez-utils suggests:
pn  bluez-firmware                <none>     (no description available)
ii  bluez-gnome                   0.27-1     Bluetooth utilities for
GNOME

-- no debconf information





More information about the Pkg-bluetooth-maintainers mailing list