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

Doxygen brief description generation triggered Qt Creator segfault

    XMLWordPrintable

Details

    • Linux/Wayland
    • 137d3367cf (qt-creator/qt-creator/7.0) 137d3367cf (qt-creator/qt-creator/master) 137d3367cf (qt-creator/qt-creator/qds-3.3)

    Description

      I'm hitting a segfault in Qt Creator 6.0.2 when triggering the Doxygen brief description generation ("/**" + <Enter>), unfortunately I don't have the debug symbols so this is the best gdb could come up with:

      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
      0x00007fffb98c141f in ?? () from /home/cmannett85/workspace/Qt/Tools/QtCreator/lib/qtcreator/plugins/libCppEditor.so
      

      Not very useful, I know. This is the snippet of code of that triggered it:

      /** <-- Bang!
      template <typename... Parents>
      [[nodiscard]] std::size_t pre_parse_phase(
            vector<parsing::token_type>& result,
            span<const char*>& args,
            [[maybe_unused]] const parsing::token_list& tokens,
            [[maybe_unused]] const Parents&... parents) const
      

      Although the real code is inside a namespaced class, I can still trigger it using the above when copied into the global namespace - so it doesn't appear to be context-driven and therefore should be reproducible by others.

      Attachments

        1. CMakeLists.txt
          0.0 kB
        2. main.cpp
          0.4 kB

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              camden camden
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes