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

QSystemSemaphore returns QSystemSemaphore::OutOfResources after 32768th acquisition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • Some future release
    • 4.4.1, 4.6.1, 4.6.2, 5.2.1
    • Core: Threads
    • None
    • Linux, GCC 4.2

    Description

      When using QSystemSemaphore to solve producer-consumer communication between two processes. After 32767 acquire operations, the semaphore stops working. Try to acquire this semaphore 32768-th time returns false with error QSystemSemaphore::OutOfResources.

      Attached is an example that reproduces the problem.

      Create two instances of the application, one started with c and one with p (for producer and consumer).

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            janichol Andy Nichols
            Votes:
            7 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes