Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23230

Qt Creator crashes when using alignof inside the editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.11.0-beta2
    • C/C++/Obj-C++ Support
    • None
    • Linux/X11

    Description

      Qt Creator crashes reproducibly for me when typing the following into the editor (editing a .cpp file):

      void foo() { if (alignof

      It crashes reliably at the last letter of the above line. The last message on the command line indicated the clang backend crashes and tears down creator as well:

      ConnectionServer error: "QLocalSocket: Remote closed" "/tmp/QtCreator-kdXgtA/ClangBackEnd-13572"
      Segmentation fault (core dumped) ~/Qt/Tools/Preview/Qt\ Creator\ 4.11.0-beta2/bin/qtcreator

      So this sounds like two problems, the crash in the clangbackend and that creator can't handle it.

      I'm running Ubuntu 18.04 btw.

      Attachments

        Issue Links

          Activity

            People

              kosjar Nikolai Kosjar
              laknoll Lars Knoll
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: