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

Windows: crash in QProcessPrivate::findExitCode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.0
    • 5.1.1
    • Core: I/O
    • None
    • 7aa327648c2f2744e381582a98813a545b4f1cb1

    Description

      What happen is this:
      When QProcessPrivate::findExitCode is called (in qprocess_win.cpp), pid is 0, hence the immediate crash.
      Simply adding "if (pid)" solves the problem.

      Note: my code was not revealling this problem with Qt 4.8.5

      Note: I have entered the maybe related issue in the same time: QTBUG-33730

      Attachments

        1. main.cpp
          1 kB
        2. crashtrace.zip
          71 kB

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              jirauser26727 user-04d21 (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes