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

[Reg 6.3->6.4] QtFuture::whenAll() crashes with ready future

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 6.4.1
    • 6.4.0
    • Core: QtConcurrent
    • None
    • Linux Mint 21
    • Linux/X11
    • ee349ffba0d68faf45e3e386511660f3c3590789
    • Foundation PM Staging

    Description

      The following piece of code causes a crash, and valgrind reports invalid read in QFutureInterfaceBase::isChainCanceled().
       

      	vector<QFuture<int>> futures {
      		QtFuture::makeReadyFuture<int>(0).then([](int i) { return i;})
      	};
      
      	QtFuture::whenAll(futures.begin(), futures.end()).then([](const QList<QFuture<int>>& fl) {
      	});
      

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            tomba Tomi Valkeinen
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes