qt6-bb10/tests/auto
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
..
android Fix typo in test results report for android 2015-07-28 21:16:19 +00:00
bic/data
cmake CMake: Don't attempt gui-tests if Qt is built with -no-gui 2016-01-18 13:00:03 +00:00
compilerwarnings/data
concurrent Tests: Replace Q[TRY]_VERIFY(v == true|false) by QVERIFY(v)|QVERIFY(!v). 2015-07-27 12:09:19 +00:00
corelib Fix crash in QProcess::waitForFinished on Windows 2016-02-29 17:52:58 +00:00
dbus Autotest: rename the test class so it's different in this test 2016-01-30 03:20:54 +00:00
gui tst_qguimetatype::flags(): port to QTypeInfoQuery 2016-02-26 09:12:23 +00:00
guiapplauncher
installed_cmake
network Autotest: remove the check that broadcast = ip | ~netmask 2016-01-21 05:19:13 +00:00
opengl Autotest: Enable make check on rhel 7.1 2016-02-11 05:47:38 +00:00
other Autotest: Enable make check on rhel 7.1 2016-02-11 05:47:38 +00:00
printsupport QMacPrintEngine: Really set the printer resolution 2016-02-25 18:42:47 +00:00
shared
sql QSqlDriver: use table prefix in WHERE clauses 2016-02-17 23:13:58 +00:00
testlib Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
tools add enablers for printing project errors in cumulative mode 2015-12-21 16:39:31 +00:00
widgets tst_QDialog: Instantiate test dialog on the stack. 2016-02-29 15:04:40 +00:00
xml Fix QDomNamedNodeMap::item crash with negative index 2015-10-29 08:05:45 +00:00
auto.pro Silence warnings about missing dbus-send command not found 2015-09-22 21:19:04 +00:00
network-settings.h
qtest-config.h
test.pl