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

QSystemSemaphore returns QSystemSemaphore::OutOfResources after 32768th acquisition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 4.4.1, 4.6.1, 4.6.2, 5.2.1
    • Fix Version/s: Some future release
    • Component/s: Core: Threads
    • Labels:
      None
    • Environment:
      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            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