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

[5.9 regression] QSemaphore::tryAcquire(int n, int timeout) buggy when timeout < 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.9.2
    • Fix Version/s: 5.9.3
    • Component/s: Core: Threads
    • Labels:
      None
    • Commits:
      4870282117b43242d9c2cd6fbde8175b2a907b08

      Description

      Since https://github.com/qt/qtbase/commit/eaee1209f0ead5be786e81db8aee604ccfea85b0#diff-30e4174ed07523635a22648c06274e0e , QSemaphore::tryAcquire(int n, int timeout) will call return tryAcquire when timeout < 0 . But tryAcquire will immediately return false if no resource is availble, whereas it should wait for ever as documented (and implemented in previous version)

       

      This is causing crashing bugs to the QGIS project: https://lists.osgeo.org/pipermail/qgis-developer/2017-November/050456.html

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            rouault Even Rouault
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes