linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GattManager1 RegisterApplication Segmentation fault
@ 2019-08-16  9:32 Luca Capra
  0 siblings, 0 replies; only message in thread
From: Luca Capra @ 2019-08-16  9:32 UTC (permalink / raw)
  To: linux-bluetooth

Good morning

I am using bluez 5.50 DBus interface to expose a custom service. Seems
things goes well from logs, but I receive a Segmentation fault after
the registration is complete.

sudo bluetoothd -E -d -n -P hostname
...
bluetoothd[22951]: src/gatt-database.c:manager_register_app()
Registering application: :1.2272:/org/bluez/hci0/app0
bluetoothd[22951]: src/gatt-database.c:proxy_added_cb() Object
received: /org/bluez/hci0/app0/service_000003e8, iface:
org.bluez.GattService1
bluetoothd[22951]: src/gatt-database.c:include_services() path
/org/bluez/hci0/app0
bluetoothd[22951]: include service not found
bluetoothd[22951]: src/gatt-database.c:include_services() path
/org/bluez/hci0/app0
bluetoothd[22951]: include service not found
bluetoothd[22951]: src/gatt-database.c:gatt_db_service_added() GATT
Service added to local database
bluetoothd[22951]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[22951]: src/sdpd-service.c:add_record_to_server() Adding
record with handle 0x1001b
bluetoothd[22951]: src/sdpd-service.c:add_record_to_server() Record
pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[22951]: src/sdpd-service.c:add_record_to_server() Record
pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[22951]: src/sdpd-service.c:add_record_to_server() Record
pattern UUID 000003e8-0001-1000-8000-00805f9
bluetoothd[22951]: src/sdpd-service.c:add_record_to_server() Record
pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[22951]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[22951]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[22951]: src/gatt-database.c:client_ready_cb() GATT
application registered: :1.2272:/org/bluez/hci0/app0
Segmentation fault


As a side note, I am setting GattService1 `Includes` to the same
service UUID because bluetoothd would otherwise report an error
parsing the field if let empty or omitted.

bluetoothd[25818]: src/gatt-database.c:manager_register_app()
Registering application: :1.2291:/org/bluez/hci0/app0
bluetoothd[25818]: src/gatt-database.c:proxy_added_cb() Object
received: /org/bluez/hci0/app0/service_000003e8, iface:
org.bluez.GattService1
bluetoothd[25818]: Failed to read "Includes" property of service
bluetoothd[25818]: Failed to add service
bluetoothd[25818]: Failed to create GATT service entry in local database


Do you have a suggestion ?

Thank you
Kind regards

Luca

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-16  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-16  9:32 GattManager1 RegisterApplication Segmentation fault Luca Capra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).