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

If I try to connect to a bluetooth device (e.g. with hidd) from an
amd64 machine, hcid eventually segfaults. strace is attached.

piper:/etc/bluetooth# strace -f -o /tmp/hcid.strace hcid
Mar 14 16:44:24 piper hcid[20544]: Bluetooth HCI daemon
Mar 14 16:44:24 piper hcid[20544]: Register path:/org/bluez fallback:1
Mar 14 16:44:24 piper hcid[20544]: HCI dev 0 registered
Mar 14 16:44:24 piper hcid[20544]: Register path:/org/bluez/hci0 fallback:0
Mar 14 16:44:24 piper hcid[20544]: HCI dev 0 already up
Mar 14 16:44:24 piper hcid[20544]: Device hci0 has been added
Mar 14 16:44:24 piper hcid[20544]: Starting security manager 0
Mar 14 16:44:24 piper hcid[20544]: Device hci0 has been activated
Mar 14 16:44:24 piper hcid[20544]: Bluetooth HCI daemon
Mar 14 16:44:24 piper hcid[20544]: Register path:/org/bluez fallback:1
Mar 14 16:44:24 piper hcid[20544]: HCI dev 0 registered
Mar 14 16:44:24 piper hcid[20544]: Register path:/org/bluez/hci0 fallback:0
Mar 14 16:44:24 piper hcid[20544]: HCI dev 0 already up
Mar 14 16:44:24 piper hcid[20544]: Device hci0 has been added
Mar 14 16:44:24 piper hcid[20544]: Starting security manager 0
Mar 14 16:44:24 piper hcid[20544]: Device hci0 has been activated
Mar 14 16:44:37 piper hcid[20544]: pin_code_request (sba=08:00:17:1D:35:D3, 
dba=00:18:13:1B:D4:0F)
Mar 14 16:44:37 piper hcid[20544]: call_passkey_agent(): no agent registered
Mar 14 16:44:37 piper hcid[20544]: pin_code_request (sba=08:00:17:1D:35:D3, 
dba=00:18:13:1B:D4:0F)
Mar 14 16:44:37 piper hcid[20544]: call_passkey_agent(): no agent registered
Mar 14 16:44:42 piper hcid[20544]: Got disconnected from the system message bus
Mar 14 16:44:42 piper hcid[20544]: Got disconnected from the system message bus
Mar 14 16:44:47 piper hcid[20544]: Register path:/org/bluez fallback:1
Mar 14 16:44:47 piper hcid[20544]: Register path:/org/bluez fallback:1
[segfault]

Note how the first attempt fails because hcid does not register with
dbus it seems, so only a /etc/init.d/dbus restart makes things work.
However, then, at the point when a passphrase would be required by
the user (which is where dbus comes in), the programme segfaults.
Reproducible at will.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages bluez-utils depends on:
ii  dbus                        1.0.2-1      simple interprocess messaging syst
ii  libbluetooth2               3.9-1        Library to use the BlueZ Linux Blu
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libdbus-1-3                 1.0.2-1      simple interprocess messaging syst
ii  libusb-0.1-4                2:0.1.12-6   userspace USB programming library
ii  lsb-base                    3.1-23.1     Linux Standard Base 3.1 init scrip
ii  makedev                     2.3.1-83     creates device files in /dev
ii  module-init-tools           3.3-pre4-2   tools for managing Linux kernel mo
ii  udev                        0.105-3      /dev/ and hotplug management daemo

Versions of packages bluez-utils recommends:
ii  bluez-gnome [bluez-passkey-gn 0.6-1      Bluetooth utilities for GNOME

-- no debconf information

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: hcid.strace.bz2
Description: Binary data

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to