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

Segmentation fault when stopping device discovery in deviceDiscovered on bluez

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        For Gerrit Dashboard: QTBUG-48481
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes