Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.12.5
-
None
Description
I had a process try to write to a QTcpSocket that had disconnected. Sure, it's my fault for trying to write to a dead socket, (A timer fired to write to a disconnected socket) but I don't think QtCore should crash the process/?
the line of code:
if (socket) { socket->write(message+"\r\n"); }
OS Version: Mac OS X 10.14.6 (18G103)
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.qt-project.QtCore 0x000000010b61ba84 QDynamicMetaObjectData::~QDynamicMetaObjectData() + 4 1 org.qt-project.QtCore 0x000000010b54655e QIODevice::write(char const*, long long) + 238 2 server_cpp 0x000000010a3b8061 QIODevice::write(QByteArray const&) + 65 (qiodevice.h:137)