agl-service-bluetooth-pbap crash upon disabling contacts bluetooth profile on phone

Description

Steps to reproduce:

  1. Open Phone app

  2. Pair a phone from Settings->Bluetooth menu in GUI

  3. Disable Contacts bluetooth profile on phone for the AGL pairing

These steps should produce similar to the following log is agl-service-bluetooth-pbap journal:

-- Logs begin at Mon 2020-06-29 03:06:41 UTC, end at Mon 2020-10-19 16:52:45 UTC. -- Oct 19 16:49:58 m3ulcb systemd[1]: Starting Binding for Bluetooth Phonebook Access Profile... Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: ------BEGIN OF CONFIG----- Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- { Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "name": "afbd-agl-service-bluetooth-pbap", Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "rootdir": "/var/local/lib/afm/applications/agl-service-bluetooth-pbap", Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "workdir": "/home/1001/app-data/agl-service-bluetooth-pbap", Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "monitoring": true, Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "port": 30004, Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "interface": [ Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "tcp:localuser--4:8080" Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- ], Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "roothttp": ".", Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "ws-client": [ Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "unix:/run/user/1001/apis/ws/Bluetooth-Manager", Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "unix:/run/user/1001/apis/ws/persistence" Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- ], Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "binding": [ Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "/var/local/lib/afm/applications/agl-service-bluetooth-pbap/lib/afb-bluetooth-pbap-binding.so" Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- ], Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "ws-server": [ Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "sd:bluetooth-pbap" Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- ], Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "apitimeout": 20, Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "cache-eol": 100000, Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "cntxtimeout": 32000000, Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "session-max": 200, Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "uploaddir": ".", Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "rootbase": "/opa", Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "rootapi": "/api", Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "ldpaths": [ Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "/usr/lib/afb" Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- ], Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "alias": [ Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- "/monitoring:/usr/lib/afb/monitoring" Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- ] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: -- } Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: ------END OF CONFIG----- Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: running with pid 4035 [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/main-afb-daemon.c:978,main] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: API monitor added [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:510,afb_apiset_add] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: Can't acces socket path /run/platform/supervisor: No such file or directory [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-supervision.c:165,try_connect_supervisor] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: binding [/var/local/lib/afm/applications/agl-service-bluetooth-pbap/lib/afb-bluetooth-pbap-binding.so] looks like an AFB binding V3 [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-api-so-v3.c:84,afb_api_so_v3_add] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: API bluetooth-pbap added [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:510,afb_apiset_add] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: Scanning dir=[/usr/lib/afb] for bindings [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-api-so.c:193,adddirs] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: Scanning dir=[/usr/lib/afb/monitoring] for bindings [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-api-so.c:193,adddirs] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: API Bluetooth-Manager added [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:510,afb_apiset_add] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: API persistence added [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:510,afb_apiset_add] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: API Bluetooth-Manager starting... [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:808,start_api] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: API Bluetooth-Manager started [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:827,start_api] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: API bluetooth-pbap starting... [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:808,start_api] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: [API bluetooth-pbap] PBAP binding init [/usr/src/debug/agl-service-bluetooth-pbap/1.0+gitAUTOINC+512c2dc6df-r0/git/binding/bluetooth-pbap-binding.c:774,init] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: API bluetooth-pbap started [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:827,start_api] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: API monitor starting... [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:808,start_api] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: API monitor started [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:827,start_api] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: API persistence starting... [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:808,start_api] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: API persistence started [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-apiset.c:827,start_api] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: INFO: Alias for url=/monitoring to path=/usr/lib/afb/monitoring [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/main-afb-daemon.c:299,init_alias] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: Serving rootdir=/var/local/lib/afm/applications/agl-service-bluetooth-pbap uploaddir=. [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/main-afb-daemon.c:401,start_http_server] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: Listening interface *:30004 [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-hsrv.c:557,hsrv_itf_connect] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: Browser URL= http://localhost:30004 [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/main-afb-daemon.c:416,start_http_server] Oct 19 16:49:58 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: Listening interface localuser--4:8080 [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/afb-hsrv.c:557,hsrv_itf_connect] Oct 19 16:49:58 m3ulcb systemd[1]: Started Binding for Bluetooth Phonebook Access Profile. Oct 19 16:51:24 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: NOTICE: [API bluetooth-pbap] PBAP device connected: dev_48_01_C5_84_43_45 [/usr/src/debug/agl-service-bluetooth-pbap/1.0+gitAUTOINC+512c2dc6df-r0/git/binding/bluetooth-pbap-binding.c:708,is_pbap_dev_and_init] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: ERROR: ALERT! signal 11 received: Segmentation fault [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/sig-monitor.c:362,on_signal_error] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: ERROR: BACKTRACE due to signal Segmentation fault/11: Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [1/11] /var/local/lib/afm/applications/agl-service-bluetooth-pbap/lib/afb-bluetooth-pbap-binding.so(+0x4bbc) [0xffff849eabbc] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [2/11] /var/local/lib/afm/applications/agl-service-bluetooth-pbap/lib/afb-bluetooth-pbap-binding.so(+0x61b4) [0xffff849ec1b4] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [3/11] /var/local/lib/afm/applications/agl-service-bluetooth-pbap/lib/afb-bluetooth-pbap-binding.so(+0x6578) [0xffff849ec578] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [4/11] afbd-agl-service-bluetooth-pbap(+0x35154) [0xaaaae1c33154] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [5/11] afbd-agl-service-bluetooth-pbap(+0x3873c) [0xaaaae1c3673c] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [6/11] afbd-agl-service-bluetooth-pbap(+0x36274) [0xaaaae1c34274] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [7/11] afbd-agl-service-bluetooth-pbap(+0x364c0) [0xaaaae1c344c0] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [8/11] afbd-agl-service-bluetooth-pbap(jobs_start+0x18c) [0xaaaae1c350dc] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [9/11] afbd-agl-service-bluetooth-pbap(main+0x1d8) [0xaaaae1c11898] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [10/11] /lib/libc.so.6(__libc_start_main+0xe8) [0xffff84f56090] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [11/11] afbd-agl-service-bluetooth-pbap(+0x13b50) [0xaaaae1c11b50] Oct 19 16:52:28 m3ulcb afbd-agl-service-bluetooth-pbap[4035]: [/usr/src/debug/af-binder/master+gitAUTOINC+1b6249810b-r0/git/src/sig-monitor.c:103,dumpstack]

Environment

None

Activity

Show:

Walt Miner 
June 1, 2023 at 6:45 PM

AF deprecated. No longer an issue. 

Raquel Medina 
December 7, 2020 at 11:43 AM

 would you agree this issue is fixed and can be closed?

Thank you.

Raquel Medina 
December 7, 2020 at 11:42 AM

This issue was fixed by gerrit  25401: fix contacts data caching mechanism (associated to https://lf-automotivelinux.atlassian.net/browse/SPEC-3619#icft=SPEC-3619)

Won't Fix

Details

Assignee

Reporter

Contract ID

Components

Affects versions

Priority

Created October 19, 2020 at 5:01 PM
Updated June 1, 2023 at 6:45 PM
Resolved June 1, 2023 at 6:45 PM

Flag notifications