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

Data race in QtAndroidPrivate::runOnAndroidThreadSync()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.7.1, 5.8.0, 5.9
    • Extras: Android
    • None
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated: