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

Windows: crash in QProcessPrivate::findExitCode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 5.1.1
    • Fix Version/s: 6.0
    • Component/s: Core: I/O
    • Labels:
      None
    • Commits:
      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. crashtrace.zip
          71 kB
        2. main.cpp
          1 kB

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              philippe Philippe Goutier
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes