Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.11.0
-
None
-
-
b78342f553ee13944c19bfdf77cdf68b0de87e50
Description
Offending code in QAbstractSocketPrivate::bind
- The socket engine gets set-up
- emits stateChanged(...) signal
- user code calls close() on the socket, enters QAbstractSocket::disconnectFromHost()
- following call to void QAbstractSocketPrivate::resetSocketLayer() deletes and NULL's the socketEngine
- bind function moves on in the code and uses socketEngine
emit q->stateChanged(state); if (socketType == QAbstractSocket::UdpSocket) socketEngine->setReadNotificationEnabled(true);
Attachments
For Gerrit Dashboard: QTBUG-69063 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
233249,2 | QAbstractSocket - protect against the broken invariant | dev | qt/qtbase | Status: MERGED | +2 | 0 |