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

Process on Windows reports QProcess::CrashExit if the process exits normally with exit code < 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.1.0
    • 5.0.0
    • Core: I/O
    • None
    • qtquick1 / Qt 5 stable 3c1479f8a43c13b2f9f93e63ae2247907546c0ae qtbase 7ec521a373b03782b4ef364cb92427283187c78e

      Below code leads to various false-positive crash reports throughout Qt Creator and various auto-tests (for example qtquick1/qmlvisual launching qmlviewer).

      void QProcessPrivate::findExitCode()
      {
      ....
      //### for now we assume a crash if exit code is less than -1 or the magic number
      crashed = (exitCode == 0xf291 || (int)exitCode < 0);

      This is apparently so since various Windows exceptions cause negative exit codes. Is this fixable?

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

            jbornema Joerg Bornemann
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes