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

Crash on QObject::objectName access when using QThreadPool from non-owning thread

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.2.4, 6.3.0 Beta1
    • 6.3.0 Alpha
    • Core: Threads
    • None
    • Linux/Wayland, Linux/X11

      Observed in Qt Creator.

      The crash comes in from the Qt Creator async run feature and from AutoTest plugin.

      It comes from a pool->start() call, and is triggered when an expired job-thread is restarted, causing a QThread::start() from a non-owning thread.

      Also in QThreadPool, it is noticed QThreadPoolPrivate::startThread() is also doing similar access that could be racy or crashy.

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

            allan.jensen Allan Sandfeld Jensen
            allan.jensen Allan Sandfeld Jensen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes