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

Application hang on exit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.6.0
    • Core: Threads
    • None
    • Kubuntu 15.10, Qt 5.6 branch debug build, KDE git master

    Description

      This is an application hang during exit, involving destruction of Q_GLOBAL_STATICs, one of them being the QDBusConnectionManager. It can be triggered by the included trivial example. I have tested it on Linux with Breeze style. Oxygen also "works". GTK+ style does not reproduce the bug. Also included: backtrace of the example where it hangs, a helgrind log of the same example, and a patch that I've tried to fix the problem. With the commented out lines in the patch not commented out, the test application won't hang, but blocking queued signals won't be delivered to a thread that is just starting, which breaks other things.

      Attachments

        1. hangtest.tar.gz
          0.4 kB
        2. hangtest-backtrace.txt
          9 kB
        3. hangtest-experimental.patch
          2 kB
        4. hangtest-helgrind.txt
          145 kB

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              ahartmetz Andreas Hartmetz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes