Package: bluez
Version: 5.49-1
Severity: grave
I'm trying to use Bluetooth through the GNOME UI, but bluetoothd keeps
crashing:
$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor
preset: enabled)
Active: failed (Result: signal) since Tue 2018-05-08 14:55:38 BST; 1min 23s
ago
Docs: man:bluetoothd(8)
Process: 13542 ExecStart=/usr/lib/bluetooth/bluetoothd (code=killed,
signal=SEGV)
Main PID: 13542 (code=killed, signal=SEGV)
Status: "Running"
$ sudo dmesg | grep bluetooth
[333848.278325] bluetoothd[13542]: segfault at 8 ip 000055983cd7e4d0 sp
00007ffca41fd988 error 4 in bluetoothd[55983cd0a000+10d000]
There seems to be a race condition involved, because if I run
bluetoothd under gdbserver, it usually doesn't crash until I toggle
Bluetooth on and off once or twice.
Anyway, I got the following backtrace:
Program received signal SIGSEGV, Segmentation fault.
btd_adv_manager_refresh (manager=0x0) at src/advertising.c:1176
1176 src/advertising.c: No such file or directory.
(gdb) bt
#0 btd_adv_manager_refresh (manager=0x0) at src/advertising.c:1176
#1 0x00005555555d4702 in settings_changed (settings=<optimized out>,
adapter=0x555555888390) at src/adapter.c:543
#2 new_settings_callback (index=<optimized out>, length=<optimized out>,
param=<optimized out>, user_data=0x555555888390) at src/adapter.c:573
#3 0x0000555555603fc8 in request_complete (mgmt=mgmt@entry=0x555555880e10,
status=<optimized out>, opcode=opcode@entry=7, index=index@entry=0,
length=length@entry=4, param=0x555555880e99) at src/shared/mgmt.c:261
#4 0x0000555555604aed in can_read_data (io=<optimized out>,
user_data=0x555555880e10) at src/shared/mgmt.c:353
#5 0x0000555555611203 in watch_callback (channel=<optimized out>,
cond=<optimized out>, user_data=<optimized out>)
at src/shared/io-glib.c:170
#6 0x00007ffff76c00f5 in g_main_context_dispatch ()
from target:/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7 0x00007ffff76c04c0 in ?? ()
from target:/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#8 0x00007ffff76c07d2 in g_main_loop_run ()
from target:/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x000055555557493b in main (argc=<optimized out>, argv=<optimized out>)
at src/main.c:770
Ben.
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500,
'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.16.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages bluez depends on:
ii dbus 1.12.8-2
ii kmod 25-1
ii libasound2 1.1.6-1
ii libc6 2.27-3
ii libdbus-1-3 1.12.8-2
ii libdw1 0.170-0.4
ii libglib2.0-0 2.56.1-2
ii libreadline7 7.0-5
ii libudev1 238-4
ii lsb-base 9.20170808
ii udev 238-4
bluez recommends no packages.
Versions of packages bluez suggests:
ii pulseaudio-module-bluetooth 11.1-5
-- no debconf information