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

Under certain conditions QObject::connect can deadlock.

    XMLWordPrintable

Details

    • d49f7168aba2770cc39d463adeeffc4e9635f4dc

    Description

      Steps to reproduce:

      • Launch the attached example application
      • Let it run for a while until it will print out "Deadlock detected"

      Application workflow:
      1) Worker thread is started.
      2) Work is done, emit is called with argument Foo. Foo will connect signals when it is copy-constructed.
      3) In the emit call, Foo is copy-constructed and connect is called.
      4) Deadlock, emit call never returns.

      Attachments

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

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            kileppal Kimmo Leppälä
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes