[Pkg-bluetooth-maintainers] Bug#448800: bluez-utils: pand fails to register service

Alain Kalker miki at dds.nl
Thu Nov 1 01:25:00 UTC 2007


Package: bluez-utils
Version: 3.13-1
Severity: normal


When executing "sudo /etc/init.d/bluetooth restart", pand fails to 
register a service with the SDP server. Stopping bluetooth 
and then restarting it after a reasonable pause does work.
Enabling debug output and examining /var/log/syslog shows that pand 
tries to register the service before hcid has had the chance to 
start the SDP server, making this a nice example of a race condition.

I don't know what the best fix for this would be. In my opinion, hcid 
should not daemonize before the SDP server is up. Adding a 'sleep 2' 
between stopping and restarting the daemons would be a quick fix, but 
reliability of this will depend too much on system load and performance.

--
Alain Kalker

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

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bluez-utils depends on:
ii  dbus                         1.1.1-3     simple interprocess messaging syst
ii  libbluetooth2                3.20-1      Library to use the BlueZ Linux Blu
ii  libc6                        2.6.1-6     GNU C Library: Shared libraries
ii  libdbus-1-3                  1.1.1-3     simple interprocess messaging syst
ii  libglib2.0-0                 2.14.2-1    The GLib library of C routines
ii  libusb-0.1-4                 2:0.1.12-7  userspace USB programming library
ii  lsb-base                     3.1-24      Linux Standard Base 3.1 init scrip
ii  makedev                      2.3.1-84    creates device files in /dev
ii  module-init-tools            3.3-pre11-4 tools for managing Linux kernel mo
ii  udev                         0.114-2     /dev/ and hotplug management daemo

Versions of packages bluez-utils recommends:
ii  bluez-gnome                   0.13-1     Bluetooth utilities for GNOME

-- no debconf information





More information about the Pkg-bluetooth-maintainers mailing list