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

Data race in QtAndroidPrivate::runOnAndroidThreadSync()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.7.1, 5.8.0, 5.9
    • Fix Version/s: None
    • Component/s: Extras: Android
    • Labels:
      None
    • Platform/s:
      Android

      Description

      If the tryAcquire fails in that function, the function returns with the runnable, taken by reference, still used by the lambda executing on the Android thread.

      I've fixed a similar bug in QtAndroidPrivate::requestPermissionsSync(), but that, too, might still race on the 'env' parameter.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              rampe Rami Potinkara
              Reporter:
              mmutz Marc Mutz
              PM Owner:
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes