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

Segmentation Fault while autocompleter analyse input

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.13.0
    • Qt Creator 4.12.4
    • C/C++/Obj-C++ Support
    • None
    • Archlinux - kernel 5.7.6
      Desktop environement: i3 + Custom tweak
    • Linux/X11
    • b19c5969d8a94d57dc9dfc2906e548dac24d0adc (qt-creator/qt-creator/4.13)

    Description

      How to reproduce:

      1. Create new empty Qt Quick project
      2. Go to main.cpp and add a named namespace "namespace foo {}"
      3. Add the Q_NAMESPACE macro in the namespace
      4. Go into main() function
      5. Start typing qmlRegisterUncreatableMetaType...
      6. Your cursor is now here: qmlRegisterUncreatableMetaObject(foo::staticMetaObject, "com.example.foo", 1, <HERE>)
      7. Type '0' and wait
      8. QtCreator crash with SIGSEGV

       

      I added a minimal sample project as attachment, the coredump info and console output.

      Qt libraries do not include debugging info, sorry. If really needed, I can find some time to rebuild it in Debug mode and send the coredump.

      Since the problem only appear with this specific function and the console output suggest problem with the clang background process, I bet on something wrong between Qt header file and the clang background process. I don't known the right way to debug this background process but no coredump was found about it. Anyways, QtCreator should not crash.

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            xakz Sasha Chiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: