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

while debugging, QSystemSemaphore::aquire() misbehaves

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.0
    • 4.7.0
    • Core: Threads
    • None
    • Nokia QtSDK with QtLibs 4.7.0 on
      Linux member-laptop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
    • 76a0c085c8fc6e5f2a46b186a4a1c83e3713bd76

      the attached simple code produces output:
      1
      as expected
      But when run under gdb debugger in QtCreator, the output becomes
      1
      2
      which means that acquire() doesnt block as documented.
      The workaround I found through trial-and-error is:
      in main() call semaphore.start() AFTER all other threads have been started.

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            aletum aletum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes