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

Qt Creator crashes when using alignof inside the editor

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes