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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.9.3
    • 5.9.2
    • Core: Threads
    • None
    • 4870282117b43242d9c2cd6fbde8175b2a907b08

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes