Project

General

Profile

Bug #1864

[bluez-tools] Segmentation fault

ani - almost 6 years ago - . Updated about 5 years ago.

Status:
not-a-bug
Priority:
broken
Assignee:
-
% Done:

0%


Description

$ bt-device -l
**
ERROR:lib/helpers.c:319:intf_supported: assertion failed: (introspection_proxy != NULL)
Aborted (core dumped)

History

#1

Updated by bill-auger almost 6 years ago

  • Priority changed from bug to broken

confirmed - this package comes from [community]

same result running on my x86_64 hardware and also in x86_64 and i686 QEMU VMs, and running both systemd and openrc

$ sudo pacman -Ss bluez-tools 
community/bluez-tools 0.2.0-1 [installed]
    A set of tools to manage Bluetooth devices for Linux

$ bt-device -l
**
ERROR:lib/helpers.c:319:intf_supported: assertion failed: (introspection_proxy != NULL)
Aborted (core dumped)

no problem running in a chroot:

# bt-device -l
Couldn't connect to DBus system bus: Could not connect: No such file or directory

#2

Updated by bill-auger almost 6 years ago

  • Status changed from open to forwarded upstream
  • Description updated (diff)
#3

Updated by bill-auger almost 6 years ago

  • Status changed from forwarded upstream to open

i sent an email to the package maintainer on july 3 but i got no reply still and no bug report has been opened

#4

Updated by freemor almost 6 years ago

Finally was able to reproduce this error after many unsuccessful tries.

It turns out this error is really trying to say "the bluetoothd is not running"

The only times I could reproduce this error is when either I failed to start the bluetooth service

- or -

It failed to start silently after bringing a VM up to current with -Suy which included a kernel update. If one does not reboot after the kernel update but continues to debug (installing bluez, starting the service, trying bt-device) the bluetoothd fails silently causing bt-device -l to throw the error above.

Can people having this issue please check for the existance of a running Bluetooth daemon (bluetoothd) with ps auf | grep bluetooth

I will hold off on forwarding this upstream until I get some feedback as to wether bluetoothd is in a not running state for other people having this error as that changes the nature of the report a fair deal.

#5

Updated by bill-auger almost 6 years ago

like i said, this is 100% reproducible in every parabola systemd LiveISO system - anyone should be able to verify this

the bluetooth service is disabled by default - after enabling it and starting it, the daemon crashes immediately

# pacman -S bluez-tools
# systemctl status bluetooth.service 
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)

# journalctl -xe
Jul 08 15:07:09 parabola dbus-daemon[318]: [system] Reloaded configuration
Jul 08 15:07:09 parabola dbus-daemon[454]: [session uid=1000 pid=454] Reloaded configuration
Jul 08 15:07:09 parabola dbus-daemon[318]: [system] Reloaded configuration
Jul 08 15:07:09 parabola systemd[1]: Reloading.

# systemctl enable bluetooth.service 
Created symlink /etc/systemd/system/dbus-org.bluez.service → /usr/lib/systemd/system/bluetooth.service.
Created symlink /etc/systemd/system/bluetooth.target.wants/bluetooth.service → /usr/lib/systemd/system/bluetooth.service.

# systemctl status bluetooth.service 
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)

# journalctl -xe
Jul 08 15:08:27 parabola systemd[1]: Reloading.

# systemctl start bluetooth.service 
# systemctl status bluetooth.service 
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)

# journalctl -xe 
(nothing new)

# bt-device -l
**
ERROR:lib/helpers.c:319:intf_supported: assertion failed: (introspection_proxy != NULL)
Aborted (core dumped)

# journalctl -xe
Jul 08 15:11:17 parabola dbus-daemon[318]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.2859' (uid=0 pid=24235 comm="bt-device -l ")
Jul 08 15:11:42 parabola dbus-daemon[318]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
Jul 08 15:11:42 parabola systemd[1]: Started Process Core Dump (PID 24240/UID 0).
-- Subject: Unit systemd-coredump@3-24240-0.service has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-coredump@3-24240-0.service has finished starting up.
-- 
-- The start-up result is RESULT.
Jul 08 15:11:42 parabola systemd-coredump[24241]: Removed old coredump core.bt-device.0.f2ca7dc82afd40b9b22b61558a68ce72.22976.1531076556000000.lz4.
Jul 08 15:11:42 parabola systemd-coredump[24241]: Process 24235 (bt-device) of user 0 dumped core.

                                                  Stack trace of thread 24235:
                                                  #0  0x00007f274bf8686b raise (libc.so.6)
                                                  #1  0x00007f274bf7140e abort (libc.so.6)
                                                  #2  0x00007f274c973b76 g_assertion_message (libglib-2.0.so.0)
                                                  #3  0x00007f274c973bdc g_assertion_message_expr (libglib-2.0.so.0)
                                                  #4  0x0000000000405d5c n/a (bt-device)
                                                  #5  0x00000000004036de n/a (bt-device)
                                                  #6  0x00007f274bf7306b __libc_start_main (libc.so.6)
                                                  #7  0x000000000040458a n/a (bt-device)

                                                  Stack trace of thread 24236:
                                                  #0  0x00007f274c03dea9 __poll (libc.so.6)
                                                  #1  0x00007f274c94c523 n/a (libglib-2.0.so.0)
                                                  #2  0x00007f274c94c63e g_main_context_iteration (libglib-2.0.so.0)
                                                  #3  0x00007f274c94c692 n/a (libglib-2.0.so.0)
                                                  #4  0x00007f274c974a2a n/a (libglib-2.0.so.0)
                                                  #5  0x00007f274bac7075 start_thread (libpthread.so.0)
                                                  #6  0x00007f274c04853f __clone (libc.so.6)

                                                  Stack trace of thread 24237:
                                                  #0  0x00007f274c33d003 g_type_class_unref (libgobject-2.0.so.0)
                                                  #1  0x00007f274c340ee3 g_type_free_instance (libgobject-2.0.so.0)
                                                  #2  0x00007f274c63048b n/a (libgio-2.0.so.0)
                                                  #3  0x00007f274c632090 n/a (libgio-2.0.so.0)
                                                  #4  0x00007f274c5ec204 n/a (libgio-2.0.so.0)
                                                  #5  0x00007f274c5ec239 n/a (libgio-2.0.so.0)
                                                  #6  0x00007f274c94c1d6 g_main_context_dispatch (libglib-2.0.so.0)
                                                  #7  0x00007f274c94c5b1 n/a (libglib-2.0.so.0)
                                                  #8  0x00007f274c94c8e2 g_main_loop_run (libglib-2.0.so.0)
                                                  #9  0x00007f274c630348 n/a (libgio-2.0.so.0)
                                                  #10 0x00007f274c974a2a n/a (libglib-2.0.so.0)
                                                  #11 0x00007f274bac7075 start_thread (libpthread.so.0)
                                                  #12 0x00007f274c04853f __clone (libc.so.6)
-- Subject: Process 24235 (bt-device) dumped core
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: man:core(5)
-- 
-- Process 24235 (bt-device) crashed and dumped core.
-- 
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.
#6

Updated by freemor almost 6 years ago

I was testing from the latest parabola-openrc-lxde-dual-complete-2018.06.11.iso
It only failed if I did not manually start the bluetooth service (because it is not set to start by default)

root@parabolaiso ~ # pacman -Sy bluez-tools
:: Synchronizing package databases...
 libre                                             305.5 KiB   546K/s 00:01 [##########################################] 100%
 core                                              116.3 KiB  28.4M/s 00:00 [##########################################] 100%
 extra                                            1483.8 KiB  1469K/s 00:01 [##########################################] 100%
 community                                           4.2 MiB  2.58M/s 00:02 [##########################################] 100%
 pcr                                               550.9 KiB  2.45M/s 00:00 [##########################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (1) bluez-tools-0.2.0-1

Total Download Size:   0.13 MiB
Total Installed Size:  0.88 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 bluez-tools-0.2.0-1-x86_64                        130.9 KiB   235K/s 00:01 [##########################################] 100%
(1/1) checking keys in keyring                                              [##########################################] 100%
(1/1) checking package integrity                                            [##########################################] 100%
(1/1) loading package files                                                 [##########################################] 100%
(1/1) checking for file conflicts                                           [##########################################] 100%
(1/1) checking available disk space                                         [##########################################] 100%
:: Processing package changes...
(1/1) installing bluez-tools                                                [##########################################] 100%
root@parabolaiso ~ # rc-service bluetooth status
 * status: stopped
3 root@parabolaiso ~ # rc-service start bluetooth                                                                         :(
 * rc-service: service `start' does not exist
1 root@parabolaiso ~ # rc-service bluetooth start                                                                         :(
 * Starting bluetooth ...                                                                                              [ ok ]
root@parabolaiso ~ # bt-device -l
**
ERROR:lib/bluez/adapter.c:165:adapter_get_dbus_object_path: assertion failed: (ADAPTER_IS(self))
[1]    2485 abort      bt-device -l
134 root@parabolaiso ~ #                                                                                                  :(
134 root@parabolaiso ~ # rc-update                                                                                        :(
       NetworkManager |      default                           
          agetty.tty1 |      default                           
          agetty.tty2 |      default                           
          agetty.tty3 |      default                           
          agetty.tty4 |      default                           
          agetty.tty5 |      default                           
          agetty.tty6 |      default                           
            alsasound |      default                           
               binfmt | boot                                   
             bootmisc | boot                                   
                 dbus |      default                           
                devfs |                                 sysinit
                dmesg |                                 sysinit
              elogind |      default                           
                 fsck | boot                                   
              haveged |      default                           
             hostname | boot                                   
              hwclock | boot                                   
              keymaps | boot                                   
            killprocs |                        shutdown        
    kmod-static-nodes |                                 sysinit
                local |      default nonetwork                 
           localmount | boot                                   
             loopback | boot                                   
              modules | boot                                   
             mount-ro |                        shutdown        
                 mtab | boot                                   
             netmount |      default                           
          pacman-init |      default                           
               procfs | boot                                   
                 root | boot                                   
            savecache |                        shutdown        
                 swap | boot                                   
               sysctl | boot                                   
                sysfs |                                 sysinit
         termencoding | boot                                   
                 udev |                                 sysinit
         udev-trigger |                                 sysinit
              urandom | boot                                   

So the only readon I'm seeing for the current openrc live to fail is that the bluetooth service hasn't been added to a run level by default.

I'll download and boot up the systemd iso (qemu) see if I can reproduce yours above.

The

ERROR:lib/bluez/adapter.c:165:adapter_get_dbus_object_path: assertion failed: (ADAPTER_IS(self))

Is the same error I'd get on a system with functioning bluetooth if the usb BT dongle is note present. So I consider that a normal tho ungraceful result.

#7

Updated by bill-auger almost 6 years ago

ok i stand corrected - not every parabola ISO - but the systemd ISOs

#8

Updated by freemor almost 6 years ago

Serious weirdness:

systemctl start bluetooth

fails silently over and over...

but manually running /usr/lib/bluetoothd -d -n to see whats up works without a hitch

and afterwards systemctl start/stop/status bluetooth works as expected


[root@parabolaiso parabola]# systemctl status bluetooth.service
??? bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)
[root@parabolaiso parabola]# systemctl start bluetooth.service
[root@parabolaiso parabola]# systemctl status bluetooth.service
??? bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)
[root@parabolaiso parabola]# systemctl enable bluetooth.service
Created symlink /etc/systemd/system/dbus-org.bluez.service ??? /usr/lib/systemd/system/bluetooth.service.
Created symlink /etc/systemd/system/bluetooth.target.wants/bluetooth.service ??? /usr/lib/systemd/system/bluetooth.service.
[root@parabolaiso parabola]# systemctl start bluetooth.service
[root@parabolaiso parabola]# systemctl status bluetooth.service
??? bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)
[root@parabolaiso parabola]# /usr/lib/bluetooth/bluetoothd -d -n
bluetoothd[1102]: Bluetooth daemon 5.50
bluetoothd[1102]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
bluetoothd[1102]: src/main.c:parse_config() Key file does not have key ???DiscoverableTimeout??? in group ???General???
bluetoothd[1102]: src/main.c:parse_config() Key file does not have key ???PairableTimeout??? in group ???General???
bluetoothd[1102]: src/main.c:parse_config() Key file does not have key ???Privacy??? in group ???General???
bluetoothd[1102]: src/main.c:parse_config() Key file does not have key ???Name??? in group ???General???
bluetoothd[1102]: src/main.c:parse_config() Key file does not have key ???Class??? in group ???General???
bluetoothd[1102]: src/main.c:parse_config() Key file does not have key ???DeviceID??? in group ???General???
bluetoothd[1102]: src/main.c:parse_config() Key file does not have key ???ReverseServiceDiscovery??? in group ???General???
bluetoothd[1102]: src/main.c:parse_config() Key file does not have key ???MinEncKeySize??? in group ???GATT???
bluetoothd[1102]: src/adapter.c:adapter_init() sending read version command
bluetoothd[1102]: Starting SDP server
bluetoothd[1102]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0532
bluetoothd[1102]: src/plugin.c:plugin_init() Loading builtin plugins
bluetoothd[1102]: src/plugin.c:add_plugin() Loading hostname plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading wiimote plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading autopair plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading policy plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading a2dp plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading avrcp plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading network plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading input plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading hog plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading gap plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading scanparam plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading deviceinfo plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading midi plugin
bluetoothd[1102]: src/plugin.c:add_plugin() Loading battery plugin
bluetoothd[1102]: src/plugin.c:plugin_init() Loading plugins /usr/lib/bluetooth/plugins
bluetoothd[1102]: profiles/input/suspend-none.c:suspend_init() 
bluetoothd[1102]: profiles/network/manager.c:read_config() Config options: Security=true
bluetoothd[1102]: src/main.c:main() Entering main loop
bluetoothd[1102]: Bluetooth management interface 1.14 initialized
bluetoothd[1102]: src/adapter.c:read_version_complete() sending read supported commands command
bluetoothd[1102]: src/adapter.c:read_version_complete() sending read index list command
bluetoothd[1102]: src/adapter.c:read_commands_complete() Number of commands: 65
bluetoothd[1102]: src/adapter.c:read_commands_complete() Number of events: 35
bluetoothd[1102]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
bluetoothd[1102]: src/adapter.c:read_index_list_complete() Number of controllers: 0
bluetoothd[1102]: plugins/hostname.c:property_changed() static hostname: parabolaiso
bluetoothd[1102]: plugins/hostname.c:property_changed() pretty hostname: 
bluetoothd[1102]: plugins/hostname.c:property_changed() chassis: vm
^Cbluetoothd[1102]: Terminating
bluetoothd[1102]: src/adapter.c:adapter_shutdown() 
bluetoothd[1102]: src/plugin.c:plugin_cleanup() Cleanup plugins
bluetoothd[1102]: profiles/input/suspend-none.c:suspend_exit() 
bluetoothd[1102]: Stopping SDP server
bluetoothd[1102]: Exit
[root@parabolaiso parabola]# systemctl status bluetooth.service
??? bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)
[root@parabolaiso parabola]# systemctl start bluetooth.service
[root@parabolaiso parabola]# systemctl status bluetooth.service
??? bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-07-08 20:40:04 UTC; 1s ago
     Docs: man:bluetoothd(8)
 Main PID: 1116 (bluetoothd)
   Status: "Running" 
    Tasks: 1 (limit: 2360)
   Memory: 752.0K
   CGroup: /system.slice/bluetooth.service
           ??????1116 /usr/lib/bluetooth/bluetoothd

Jul 08 20:40:04 parabolaiso systemd[1]: Starting Bluetooth service...
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Bluetooth daemon 5.50
Jul 08 20:40:04 parabolaiso systemd[1]: Started Bluetooth service.
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Starting SDP server
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Bluetooth management interface 1.14 initialized
[root@parabolaiso parabola]# systemctl status bluetooth.service
??? bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-07-08 20:40:04 UTC; 7min ago
     Docs: man:bluetoothd(8)
 Main PID: 1116 (bluetoothd)
   Status: "Running" 
    Tasks: 1 (limit: 2360)
   Memory: 752.0K
   CGroup: /system.slice/bluetooth.service
           ??????1116 /usr/lib/bluetooth/bluetoothd

Jul 08 20:40:04 parabolaiso systemd[1]: Starting Bluetooth service...
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Bluetooth daemon 5.50
Jul 08 20:40:04 parabolaiso systemd[1]: Started Bluetooth service.
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Starting SDP server
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Bluetooth management interface 1.14 initialized
[root@parabolaiso parabola]# systemctl stop bluetooth.service
[root@parabolaiso parabola]# systemctl status bluetooth.service
??? bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)

Jul 08 20:40:04 parabolaiso systemd[1]: Starting Bluetooth service...
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Bluetooth daemon 5.50
Jul 08 20:40:04 parabolaiso systemd[1]: Started Bluetooth service.
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Starting SDP server
Jul 08 20:40:04 parabolaiso bluetoothd[1116]: Bluetooth management interface 1.14 initialized
Jul 08 20:47:31 parabolaiso bluetoothd[1116]: Terminating
Jul 08 20:47:31 parabolaiso bluetoothd[1116]: Stopping SDP server
Jul 08 20:47:31 parabolaiso systemd[1]: Stopping Bluetooth service...
Jul 08 20:47:31 parabolaiso bluetoothd[1116]: Exit
Jul 08 20:47:31 parabolaiso systemd[1]: Stopped Bluetooth service.
[root@parabolaiso parabola]# systemctl start bluetooth.service
[root@parabolaiso parabola]# systemctl status bluetooth.service
??? bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-07-08 20:47:53 UTC; 1s ago
     Docs: man:bluetoothd(8)
 Main PID: 1162 (bluetoothd)
   Status: "Running" 
    Tasks: 1 (limit: 2360)
   Memory: 740.0K
   CGroup: /system.slice/bluetooth.service
           ??????1162 /usr/lib/bluetooth/bluetoothd

Jul 08 20:47:53 parabolaiso systemd[1]: Starting Bluetooth service...
Jul 08 20:47:53 parabolaiso bluetoothd[1162]: Bluetooth daemon 5.50
Jul 08 20:47:53 parabolaiso systemd[1]: Started Bluetooth service.
Jul 08 20:47:53 parabolaiso bluetoothd[1162]: Starting SDP server
Jul 08 20:47:54 parabolaiso bluetoothd[1162]: Bluetooth management interface 1.14 initialized
[root@parabolaiso parabola]# 

#9

Updated by ani about 5 years ago

I tried the original bug report steps and this works now for me without errors.

#10

Updated by bill-auger about 5 years ago

  • Status changed from open to not-a-bug

yay - thats a rolling distro for ya

Also available in: Atom PDF