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

QThread created with Q_GLOBAL_STATIC hangs on process exit on Symbian

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.7.1
    • Core: Threads
    • None
    • f9a3f15376d0c0cddc4ab023d2421859847df56b

    Description

      If you create QThread with Q_GLOBAL_STATIC that waits for the thread to finish in QThread destructor, the main thread ends up waiting forever as the kernel has already killed the Symbian thread by the time Q_GLOBAL_STATIC is being destructed. This seem to be related to how Symbian threads work or how Qt handles threading on Symbian, problem does not reproduce on Linux or Windows. See example project as an attachment with respective traces when running the example on Linux (works, process and all threads exit) and on Symbian (the main thread is left hanging in the OS, waiting for the already deleted thread to finish).

      Attachments

        1. hangingthreadissue.pro
          0.0 kB
        2. hangingthreadissue_linuxtrace.log
          0.8 kB
        3. main.cpp
          2 kB
        4. hangingthreadissue_symbiantrace.log
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0348803 Miikka Heikkinen
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes