qt5base-lts/tests/auto/corelib/io
Joerg Bornemann 6f75c189e1 Fix crash in QProcess::waitForFinished on Windows
Suppose the user connects QProcess::readyReadStandardOutput with a
slot that calls QCoreApplication::processEvents.
Assume the event loop did not handle events between QProcess::start
and QProcess::waitForFinished. The process writes to stdout and exits.
QProcessPrivate::waitForFinished calls drainOutputPipes which calls
QWindowsPipeWriter::waitForReadyRead. This in turn will trigger
_q_processDied via the readyRead signal and processEvents.
_q_processDied will delete the pid object and set pid to null.
After drainOutputPipes returns, _q_processDied is called again but it
must not be called if pid is already destroyed.

Prevent calling _q_processDied if pid is null.

Task-number: QTBUG-48697
Change-Id: Iee047938ee1529057a1a43d71f4e882750903c7e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-02-29 17:52:58 +00:00
..
largefile winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qabstractfileengine winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qbuffer Make warnings of QIODevice more verbose. 2015-05-23 08:59:20 +00:00
qdatastream winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qdataurl Update copyright headers 2015-02-11 06:49:51 +00:00
qdebug Merge remote-tracking branch 'origin/5.5' into dev 2015-08-06 10:54:01 +02:00
qdir winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qdiriterator winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qfile Blacklist failing tst_QFile tests (OS X) 2016-01-06 09:38:55 +00:00
qfileinfo winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qfileselector winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qfilesystementry Update copyright headers 2015-02-11 06:49:51 +00:00
qfilesystemwatcher tst_qfilesystemwatcher: Blacklist flaky tests on Windows. 2015-11-17 14:27:23 +00:00
qiodevice winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qipaddress Update strtoll and strtoull from upstream FreeBSD 2015-03-26 06:11:14 +00:00
qlockfile Tests: Always verify whether QTemporaryDir/File creation succeeded. 2015-09-28 15:05:43 +00:00
qloggingcategory QLoggingCategory: fix default severity in Q_LOGGING_CATEGORY macro 2015-08-03 14:40:19 +00:00
qloggingregistry winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qnodebug QDateTime: drop quotes in QDebug output 2015-02-21 16:58:39 +00:00
qprocess Fix crash in QProcess::waitForFinished on Windows 2016-02-29 17:52:58 +00:00
qprocess-noapplication Update copyright headers 2015-02-11 06:49:51 +00:00
qprocessenvironment QProcessEnvironment: fix op== 2015-07-07 05:22:33 +00:00
qresourceengine fix distclean targets 2015-04-23 19:16:57 +00:00
qsavefile Tests: Always verify whether QTemporaryDir/File creation succeeded. 2015-09-28 15:05:43 +00:00
qsettings Extend blacklisting of tst_qsettings to OSX 10.11 2015-12-15 09:45:51 +00:00
qstandardpaths Autotest: Enable make check on rhel 7.1 2016-02-11 05:47:38 +00:00
qstorageinfo Tests: Always verify whether QTemporaryDir/File creation succeeded. 2015-09-28 15:05:43 +00:00
qtemporarydir winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qtemporaryfile winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qtextstream Revert "tests: fixed compilation of tst_qtextstream" 2015-12-15 09:21:14 +00:00
qurl winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qurlinternal Update copyright headers 2015-02-11 06:49:51 +00:00
qurlquery Add qHash(QUrlQuery) 2015-04-20 07:41:56 +00:00
qwinoverlappedionotifier Update copyright headers 2015-02-11 06:49:51 +00:00
io.pro winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00