bluez-tools icon indicating copy to clipboard operation
bluez-tools copied to clipboard

Segfault when trying to get info about the device with bt-device

Open realszopen opened this issue 6 years ago • 7 comments

When I'm trying to get info about devices I get the following:

(bt-device:26340): GLib-GIO-CRITICAL **: 14:25:58.566: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed Class: 0x0

(bt-device:26340): GLib-GIO-CRITICAL **: 14:25:58.566: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed Paired: 0

(bt-device:26340): GLib-GIO-CRITICAL **: 14:25:58.566: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed Trusted: 0 [rw]

(bt-device:26340): GLib-GIO-CRITICAL **: 14:25:58.566: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed Blocked: 0 [rw]

(bt-device:26340): GLib-GIO-CRITICAL **: 14:25:58.566: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed Connected: 0 UUIDs: [ (bt-device:26340): GLib-GIO-CRITICAL **: 14:25:58.566: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed Segmentation fault (core dumped)

It happens on openSUSE Tumbleweed.

realszopen avatar Feb 03 '20 13:02 realszopen

I'm seeing the same problem on Rasbian Buster.

Package: bluez-tools
Version: 2.0~20170911.0.7cb788c-2
Priority: optional
Section: utils
Maintainer: Debian Bluetooth Maintainers <[email protected]>
Installed-Size: 800 kB
Depends: libc6 (>= 2.7), libglib2.0-0 (>= 2.37.3), libreadline7 (>= 6.0)
Recommends: bluez-obexd
Homepage: https://github.com/khvzak/bluez-tools

presslab-us avatar Feb 12 '20 12:02 presslab-us

I'm also seeing this on Ubuntu 18.04. It only appears to happen on some Bluetooth devices. As I have a pair of headphones that I can get the device info about the command does not SegFault

rickyphewitt avatar May 09 '20 12:05 rickyphewitt

I started observing this error in the last couple of weeks for my Sony WH-1000XM2 Wireless Bluetooth headphones. Strangely, there has not been any update to the headphones not bluez-tools that I'm aware of.

bt-device -i ${DEVICE_MAC}
[<DEVICE_MAC>]
  Name: LE_WH-1000XM2
  Alias: LE_WH-1000XM2 [rw]
  Address: <DEVICE_MAC>
  Icon: (null)

(bt-device:3603): GLib-GIO-CRITICAL **: 11:42:01.352: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Class: 0x0

(bt-device:3603): GLib-GIO-CRITICAL **: 11:42:01.352: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Paired: 0

(bt-device:3603): GLib-GIO-CRITICAL **: 11:42:01.352: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Trusted: 0 [rw]

(bt-device:3603): GLib-GIO-CRITICAL **: 11:42:01.352: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Blocked: 0 [rw]

(bt-device:3603): GLib-GIO-CRITICAL **: 11:42:01.352: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Connected: 0
  UUIDs: [
(bt-device:3603): GLib-GIO-CRITICAL **: 11:42:01.352: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
Segmentation fault (core dumped)

radeklat avatar Aug 07 '20 10:08 radeklat

Same error message on Ubuntu 20.04. Some devices do return the information and some other devices make bt-device crash.

jesusha123 avatar Jan 03 '21 00:01 jesusha123

Debian 11 (sid) having the same issue using Broadcom 20702 adapter

ghost avatar Apr 22 '21 12:04 ghost

The problem is that there is a NULL pointer dereference. I'll submit a pull request soon.

jscott0 avatar Nov 11 '22 01:11 jscott0

I just ran into this with Debian 12.5 (bookworm) though the line numbers are different:

(bt-device:2451): GLib-GIO-CRITICAL **: 15:19:18.416: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Paired: 0

(bt-device:2451): GLib-GIO-CRITICAL **: 15:19:18.417: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Trusted: 0 [rw]

(bt-device:2451): GLib-GIO-CRITICAL **: 15:19:18.417: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Blocked: 0 [rw]

(bt-device:2451): GLib-GIO-CRITICAL **: 15:19:18.417: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
  Connected: 0
  UUIDs: [
(bt-device:2451): GLib-GIO-CRITICAL **: 15:19:18.417: g_dbus_proxy_call_sync_internal: assertion 'error == NULL || *error == NULL' failed
Segmentation fault

fgsch avatar Apr 25 '24 14:04 fgsch