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

Crash in ~QDynamicMetaObjectData()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.12.5
    • Core: Other
    • None
    • macOS

    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)
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jasonapk Jason Hihn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes