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

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

XMLWordPrintable

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

      #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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes