Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48481

Segmentation fault when stopping device discovery in deviceDiscovered on bluez

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.0 RC
    • 5.5.0
    • None
    • Linux, Bluez 5.32
    • 59bc397f0ac0e0c333c415f25782f2a6614fc03a

      When a device discovery is started, the already known devices are immediately returned using deviceDiscovered signals. This happens in the start function before the discoverytimer is started. When stop() is called in the deviceDiscovered slot, the adapterBluez5 is deleted and the discoveryTimer is stopped (which might not even be started). After the known devices are reported in the start function, the discoveryTimer is started. This times out 20 seconds later. In the timeout slot, adapterBluez5 is used which is 0 causing a segmentation fault.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            ThiemoVanEngelen Thiemo van Engelen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes