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

clangd causes almost 100% memory/disk usage with invalid source code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 9.0.2
    • C/C++/Obj-C++ Support
    • None
    • Windows

    Description

      #include <utility>
      
      int main()
      {
          std::make_index_sequence<-1>{};
          return 0;
      }
      

      clangd occupies almost 100% memory and disk usage with above code which causes no more job can be done.

      Above code is invalid of course, but it's not rare that such template instantiation occurs accidently during template metaprogramming.

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            xylosper Byoung-young Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: