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

QProcess:start hangs after omp parallel for

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.2
    • Core: Threads
    • None
    • XCode 12.5.1, macOS 11.6.1, mac Mini (M1, 2020), clang 9.0
      but also:
      XCode 14.1 on macOS 13.0, Mac Studio (M1 Max, 2022), clang 15.0.6
    • macOS

    Description

      The following code hangs on "p.start(...".

      If the "#pragma omp..." is removed, it works fine.

            float A[3];
      
          #pragma omp parallel for
      
            for (int i=0; i<3; ++i)
          Unknown macro: {     A[i] = 0.0f;   }
      
            QProcess p;
      
            p.start("echo",
          Unknown macro: {"hello"}
      
          );
      
            p.waitForFinished(-1);
      
            std::cout << p.readAllStandardOutput().data();
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jorgen_ripa Jörgen Ripa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes