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

QThread seems to leak QThreadData in some situations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • dev
    • Core: Threads
    • None

    Description

      Both tst_QSharedPointer and tst_QMutex have timing problems. When you run them sequentially on an unloaded machine, they pass and are asan-clean. If you run them on a loaded machine, however, such as as part of ctest -j24 on a 8C+HT = 16C machine, or just start the same test several times; then you get a sporadic memory leak of one of the QThreadData's reported, without corresponding leaks of their parent QThreadPrivate or QThread objects.. Logs for tst_QMutex and tst_QSharedPointer attached.

      qthread.cpp:182 is

          if (!data)
              data = new QThreadData;  // L182
      

      Line numbers are as at 53b6c88a2529a5767b2f4c6ff91680b93dc5e357.

      Attachments

        1. tst_qthreadstorage.log
          19 kB
        2. tst_qsharedpointer.log
          206 kB
        3. tst_qmutex.log
          74 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes