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

Details

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

    Description

      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?

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes