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

Crash in QThreadPool::clear()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.2, 6.0.0 Alpha
    • 5.15.1
    • Core: Threads
    • None
    • Linux/X11
    • fe36d47b371b71ad5fec30d4b5d7bf0baa0205ea (qt/qtbase/dev) a5e6c50ef45e9b75867e1730c510f5739b00f176 (qt/qtbase/5.15)

    Description

      There is a crash in QThreadPool::clear()  when auto-deleting QRunnables are being used. 

      Attachment a very simple example project which does this in a loop:

      1. Calls QThreadPool::clear()
      2. Starts a bunch of runnables (~500) in QThreadPool. QRunnable::autoDelete() = true
      3. goto 1

      After a few iterations it crashes on QThreadPool::clear(). This happens consistently

      I think the culprit is this commit. I've tried reverting it and the crash disappears.

       

       

      Attachments

        For Gerrit Dashboard: QTBUG-87092
        # Subject Branch Project Status CR V

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            easymodo Eugene G.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes