All of lore.kernel.org
 help / color / mirror / Atom feed
* bluetoothd aborted
@ 2015-12-25 20:46 Fabian Bergmark
  2016-01-04 14:21 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Bergmark @ 2015-12-25 20:46 UTC (permalink / raw)
  To: linux-bluetooth

I (rarely) get segfaults or aborts while running bluetoothd with the
-nEd command line arguments. I'm running commit 1b9e48f4c2b98e

If I can provide more useful information let me know. Here are the last lines:

bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready
bluetoothd[3623]: src/gatt-client.c:create_services() Exporting
objects for GATT services: 80:E4:DA:70:08:9E
bluetoothd[3623]: src/adapter.c:new_conn_param() hci0
80:E4:DA:70:08:9E (1) min 0x0012 max 0x0024 latency 0x0004 timeout
0x0064
bluetoothd[3623]: src/adapter.c:store_conn_param()
bluetoothd[3623]: src/device.c:gatt_debug() Registered handler for
"Service Changed": 3
bluetoothd[3623]: src/adapter.c:dev_disconnected() Device
80:E4:DA:70:08:9E disconnected, reason 1
bluetoothd[3623]: src/adapter.c:adapter_remove_connection()
bluetoothd[3623]: plugins/policy.c:disconnect_cb() reason 1
bluetoothd[3623]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr
80:E4:DA:70:08:9E type 1 status 0xe
bluetoothd[3623]: src/device.c:device_bonding_complete() bonding (nil)
status 0x0e
bluetoothd[3623]: src/device.c:device_bonding_failed() status 14
bluetoothd[3623]: src/adapter.c:resume_discovery()
bluetoothd[3623]: src/device.c:att_disconnected_cb()
bluetoothd[3623]: src/device.c:att_disconnected_cb() Connection timed out (110)
bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_disconnected()
Device disconnected. Cleaning up.
bluetoothd[3623]: attrib/gattrib.c:g_attrib_unref() 0x1454f30: g_attrib_unref=0
bluetoothd[3623]: src/adapter.c:connected_callback() hci0 device
80:E4:DA:70:08:9E connected eir_len 31
bluetoothd[3623]: src/gatt-client.c:notify_client_unref() owner :1.2735
bluetoothd[3623]: src/gatt-client.c:notify_client_free() owner :1.2735
bluetoothd[3623]: src/gatt-database.c:connect_cb() New incoming LE ATT
connection
bluetoothd[3623]: attrib/gattrib.c:g_attrib_ref() 0x1454f30: g_attrib_ref=1
bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_connected() Device
connected.
bluetoothd[3623]: src/gatt-client.c:register_notify() Re-register
subscribed notification client
bluetoothd: src/shared/gatt-client.c:2962:
bt_gatt_client_unregister_notify: Assertion
`notify_data->chrc->notify_count > 0' failed.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bluetoothd aborted
  2015-12-25 20:46 bluetoothd aborted Fabian Bergmark
@ 2016-01-04 14:21 ` Luiz Augusto von Dentz
  2016-01-05 19:40   ` Fabian Bergmark
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2016-01-04 14:21 UTC (permalink / raw)
  To: Fabian Bergmark; +Cc: linux-bluetooth

Hi Fabian,

On Fri, Dec 25, 2015 at 6:46 PM, Fabian Bergmark
<fabian.bergmark@gmail.com> wrote:
> I (rarely) get segfaults or aborts while running bluetoothd with the
> -nEd command line arguments. I'm running commit 1b9e48f4c2b98e

Looks like you are not using 5.37 yet, although it seems it does
includes all the fixes done in GATT.

> If I can provide more useful information let me know. Here are the last lines:
>
> bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready
> bluetoothd[3623]: src/gatt-client.c:create_services() Exporting
> objects for GATT services: 80:E4:DA:70:08:9E
> bluetoothd[3623]: src/adapter.c:new_conn_param() hci0
> 80:E4:DA:70:08:9E (1) min 0x0012 max 0x0024 latency 0x0004 timeout
> 0x0064
> bluetoothd[3623]: src/adapter.c:store_conn_param()
> bluetoothd[3623]: src/device.c:gatt_debug() Registered handler for
> "Service Changed": 3
> bluetoothd[3623]: src/adapter.c:dev_disconnected() Device
> 80:E4:DA:70:08:9E disconnected, reason 1
> bluetoothd[3623]: src/adapter.c:adapter_remove_connection()
> bluetoothd[3623]: plugins/policy.c:disconnect_cb() reason 1
> bluetoothd[3623]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr
> 80:E4:DA:70:08:9E type 1 status 0xe
> bluetoothd[3623]: src/device.c:device_bonding_complete() bonding (nil)
> status 0x0e
> bluetoothd[3623]: src/device.c:device_bonding_failed() status 14
> bluetoothd[3623]: src/adapter.c:resume_discovery()
> bluetoothd[3623]: src/device.c:att_disconnected_cb()
> bluetoothd[3623]: src/device.c:att_disconnected_cb() Connection timed out (110)
> bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_disconnected()
> Device disconnected. Cleaning up.
> bluetoothd[3623]: attrib/gattrib.c:g_attrib_unref() 0x1454f30: g_attrib_unref=0
> bluetoothd[3623]: src/adapter.c:connected_callback() hci0 device
> 80:E4:DA:70:08:9E connected eir_len 31
> bluetoothd[3623]: src/gatt-client.c:notify_client_unref() owner :1.2735
> bluetoothd[3623]: src/gatt-client.c:notify_client_free() owner :1.2735
> bluetoothd[3623]: src/gatt-database.c:connect_cb() New incoming LE ATT
> connection
> bluetoothd[3623]: attrib/gattrib.c:g_attrib_ref() 0x1454f30: g_attrib_ref=1
> bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_connected() Device
> connected.
> bluetoothd[3623]: src/gatt-client.c:register_notify() Re-register
> subscribed notification client
> bluetoothd: src/shared/gatt-client.c:2962:
> bt_gatt_client_unregister_notify: Assertion
> `notify_data->chrc->notify_count > 0' failed.

Looks like something is not quite right, does the notification gets
enabled properly while connected? Btw, is this device available on the
market?


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bluetoothd aborted
  2016-01-04 14:21 ` Luiz Augusto von Dentz
@ 2016-01-05 19:40   ` Fabian Bergmark
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Bergmark @ 2016-01-05 19:40 UTC (permalink / raw)
  To: Luiz Augusto von Dentz, linux-bluetooth

The product is available on the market, but we haven't released SDKs
for linux yet, only iOS and Android. (https://flic.io)

This bug happens when I cause the device to connect and disconnect
repeatedly by keeping it on the brink of it's range. I guess that the
device often disconnects before notification can be started. Tell me
if I can provide more details.

2016-01-04 6:21 GMT-08:00 Luiz Augusto von Dentz <luiz.dentz@gmail.com>:
> Hi Fabian,
>
> On Fri, Dec 25, 2015 at 6:46 PM, Fabian Bergmark
> <fabian.bergmark@gmail.com> wrote:
>> I (rarely) get segfaults or aborts while running bluetoothd with the
>> -nEd command line arguments. I'm running commit 1b9e48f4c2b98e
>
> Looks like you are not using 5.37 yet, although it seems it does
> includes all the fixes done in GATT.
>
>> If I can provide more useful information let me know. Here are the last lines:
>>
>> bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready
>> bluetoothd[3623]: src/gatt-client.c:create_services() Exporting
>> objects for GATT services: 80:E4:DA:70:08:9E
>> bluetoothd[3623]: src/adapter.c:new_conn_param() hci0
>> 80:E4:DA:70:08:9E (1) min 0x0012 max 0x0024 latency 0x0004 timeout
>> 0x0064
>> bluetoothd[3623]: src/adapter.c:store_conn_param()
>> bluetoothd[3623]: src/device.c:gatt_debug() Registered handler for
>> "Service Changed": 3
>> bluetoothd[3623]: src/adapter.c:dev_disconnected() Device
>> 80:E4:DA:70:08:9E disconnected, reason 1
>> bluetoothd[3623]: src/adapter.c:adapter_remove_connection()
>> bluetoothd[3623]: plugins/policy.c:disconnect_cb() reason 1
>> bluetoothd[3623]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr
>> 80:E4:DA:70:08:9E type 1 status 0xe
>> bluetoothd[3623]: src/device.c:device_bonding_complete() bonding (nil)
>> status 0x0e
>> bluetoothd[3623]: src/device.c:device_bonding_failed() status 14
>> bluetoothd[3623]: src/adapter.c:resume_discovery()
>> bluetoothd[3623]: src/device.c:att_disconnected_cb()
>> bluetoothd[3623]: src/device.c:att_disconnected_cb() Connection timed out (110)
>> bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_disconnected()
>> Device disconnected. Cleaning up.
>> bluetoothd[3623]: attrib/gattrib.c:g_attrib_unref() 0x1454f30: g_attrib_unref=0
>> bluetoothd[3623]: src/adapter.c:connected_callback() hci0 device
>> 80:E4:DA:70:08:9E connected eir_len 31
>> bluetoothd[3623]: src/gatt-client.c:notify_client_unref() owner :1.2735
>> bluetoothd[3623]: src/gatt-client.c:notify_client_free() owner :1.2735
>> bluetoothd[3623]: src/gatt-database.c:connect_cb() New incoming LE ATT
>> connection
>> bluetoothd[3623]: attrib/gattrib.c:g_attrib_ref() 0x1454f30: g_attrib_ref=1
>> bluetoothd[3623]: src/gatt-client.c:btd_gatt_client_connected() Device
>> connected.
>> bluetoothd[3623]: src/gatt-client.c:register_notify() Re-register
>> subscribed notification client
>> bluetoothd: src/shared/gatt-client.c:2962:
>> bt_gatt_client_unregister_notify: Assertion
>> `notify_data->chrc->notify_count > 0' failed.
>
> Looks like something is not quite right, does the notification gets
> enabled properly while connected? Btw, is this device available on the
> market?
>
>
> --
> Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-05 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-25 20:46 bluetoothd aborted Fabian Bergmark
2016-01-04 14:21 ` Luiz Augusto von Dentz
2016-01-05 19:40   ` Fabian Bergmark

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.