after this patch, the issue can not be  reproduced:
commit 24249e091ab3a935f6ea87b7f7355c689c045a80 (HEAD -> refs/heads/master)
Author: Luiz Augusto von Dentz <luiz.von.de...@intel.com>
Date:   Mon Apr 9 14:48:41 2018 +0300

    shared/queue: Handle NULL as direct match on queue_remove_if
    
    As with queue_find when function is set to NULL use direct_match as
    callback.

diff --git a/src/shared/queue.c b/src/shared/queue.c
index 5ddb8326d..60df11143 100644
--- a/src/shared/queue.c
+++ b/src/shared/queue.c
@@ -280,9 +280,12 @@ void *queue_remove_if(struct queue *queue, 
queue_match_func_t function,
 {
        struct queue_entry *entry, *prev = NULL;
 
-       if (!queue || !function)
+       if (!queue)
                return NULL;
 
+       if (!function)
+               function = direct_match;
+
        entry = queue->head;


** Tags added: oem-priority originate-from-1886187 timbuktu

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/1887910

Title:
  [bionic]blutoothd segfault when you cancel the keyboard pairing during
  the dialog for pairing code

Status in OEM Priority Project:
  In Progress
Status in bluez package in Ubuntu:
  New

Bug description:
  steps:
   1. pair bluetooth keyboard
   2. see the dialog asking user input the code for pairing.
   3. press "esc" to cancel it.
   4. blutoothd segfault shows in dmesg after a while.
   5. Bluetooth shows off on setting UI of right top corner.

  dmesg shows:
  [ 978.138593] bluetoothd[1569]: segfault at 0 ip 000055564abe0a06 sp 
00007ffe4bec6410 error 4 in bluetoothd[55564ab77000+f3000]

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1887910/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to