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

Deep included hierarchy causes a crash

    XMLWordPrintable

Details

    • Linux/X11
    • bd2ca236e (10.0)

    Description

      Attached project crashes due to stack overflow, if (I am guessing) main.cpp is opened.

      0x00007ffff6356ae3 in QByteArray::replace(QByteArrayView, QByteArrayView) () from /home/user/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      (gdb) bt
      #0  0x00007ffff6356ae3 in QByteArray::replace(QByteArrayView, QByteArrayView)
          () at /home/user/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #1  0x00007fff92eebb90 in  ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/libCppEditor.so
      #2  0x00007fff92eee2e9 in  ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/libCppEditor.so
      #3  0x00007fff92ba2dce in CPlusPlus::Preprocessor::handleIncludeDirective(CPlusPlus::Internal::PPToken*, bool) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      #4  0x00007fff92ba409f in CPlusPlus::Preprocessor::handlePreprocessorDirective(CPlusPlus::Internal::PPToken*) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      #5  0x00007fff92b9f78b in CPlusPlus::Preprocessor::lex(CPlusPlus::Internal::PPToken*) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      #6  0x00007fff92ba06ac in CPlusPlus::Preprocessor::preprocess(QString const&, QByteArray const&, QByteArray*, QByteArray*, bool, bool, bool, unsigned int, unsigned int, unsigned int) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      #7  0x00007fff92ba0f41 in CPlusPlus::Preprocessor::run(QString const&, QByteArray const&, bool, bool) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      #8  0x00007fff92eee50d in  ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/libCppEditor.so
      #9  0x00007fff92ba2dce in CPlusPlus::Preprocessor::handleIncludeDirective(CPlusPlus::Internal::PPToken*, bool) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      #10 0x00007fff92ba409f in CPlusPlus::Preprocessor::handlePreprocessorDirective(CPlusPlus::Internal::PPToken*) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      #11 0x00007fff92b9f78b in CPlusPlus::Preprocessor::lex(CPlusPlus::Internal::PPToken*) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      #12 0x00007fff92ba06ac in CPlusPlus::Preprocessor::preprocess(QString const&, QByteArray const&, QByteArray*, QByteArray*, bool, bool, bool, unsigned int, unsigned int, unsigned int) ()
          at /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libCPlusPlus.so.9
      

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: