Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
realszopen opened this issue Feb 3, 2020 · 7 comments
Open

Comments

@realszopen
Copy link

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.

@presslab-us
Copy link

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

@rickyphewitt
Copy link

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

@radeklat
Copy link

radeklat commented Aug 7, 2020

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)

@jesusha123
Copy link

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

@ghost
Copy link

ghost commented Apr 22, 2021

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

@jscott0
Copy link

jscott0 commented Nov 11, 2022

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

@fgsch
Copy link

fgsch commented Apr 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants