Qt Signal Slot Segmentation Fault

  1. Program received signal SIGSEGV, Segmentation fault.
  2. 0x00007f124c9d14e8in QTextFormatCollection::format()
  3. (gdb) bt
  4. #00x00007f124c9d14e8in QTextFormatCollection::format()
  5. #10x00007f124ca115abin QTextCursor::charFormat ()
  6. #20x00007f124ca13914in QTextCursor::insertText ()
  7. #30x000000000041cce5in TConsole::printMessageOnDisplay ()
  8. #40x00000000004180d2in mudlet::printMessageOnDisplay ()
  9. #60x0000000000424cfbin cTelnet::connectIt ()
  10. #70x00000000004174c3in mudlet::slot_connection_dlg_finnished ()
  11. #90x00007f124c036134in QMetaObject::activate () from /usr/lib/libQtCore.so.4
  12. #100x00000000004bd9d0in dlgConnectionProfiles::signal_establish_connection ()
  13. #110x0000000000437c2bin dlgConnectionProfiles::slot_connection_dlg_finnished
  14. #120x00000000004bda58in dlgConnectionProfiles::qt_metacall ()
  15. #130x00007f124c036134in QMetaObject::activate () from /usr/lib/libQtCore.so.4
  16. #140x00007f124cbf68ddin QDialog::qt_metacall () from /usr/lib/libQtGui.so.4
  17. #150x00000000004bda05in dlgConnectionProfiles::qt_metacall ()
  18. #160x00007f124c036134in QMetaObject::activate () from /usr/lib/libQtCore.so.4
  19. #170x00007f124cd63787in QAbstractButton::clicked ()
  20. ---Type <return> to continue, or q <return> to quit---
Definition

Qt Signal Slot Segmentation Faults

Qt signal slot example

Qt Signal Slot Segmentation Fault Map

I make a qt application for Embedded Custom Board and when i run the Application it gives segmentation fault. The application give segmentation fault due to following line. Mosq-subscribe(mosq-getMID, topic.data, 1); where mosq is define and declare as follow. Signal 11 (segmentation fault) means that the program accessed an unassigned memory location. It is usually a bug in the code. For example allocating a buffer larger than available memory, not checking to see if the pointer to the buffer is non-NULL and then writing to the (non-existent) buffer. Qt Creator Segmentation fault. GitHub Gist: instantly share code, notes, and snippets.