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

QThread::terminate() leaks resources when called from currentThread()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.17, 6.2.12, 6.5.6, 6.6.3, 6.7.2, 6.8.0 Beta1
    • Core: Threads
    • None
    • Windows

    Description

      The unix implementation of terminate() supports self-cancellation (albeit with QTBUG-127008), and the Windows implementation at least doesn't reject the call.

      But on Windows TerminateThread(self) does not return anymore, meaning the following finish() call in QThread::terminate() never gets executed.

      Can we fix the cleanup to happen before running the thread into the ground with TerminateThread()?

      References:

      Attachments

        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:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes