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

QtCreator crashes with SIGFPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Incomplete
    • Affects Version/s: Qt Creator 5.0.1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      QtCreator 5.0.1-1
      Manjaro 5.10.68-1
    • Platform/s:
      Linux/X11

      Description

      I am running QtCreator 5.0.1-1 on Manjaro 5.10.68-1. When opening a big project and waiting a bit the QtCreator crashes with SIGFPE. I ran it in GDB and produced this backtrace:

      Thread 12 "Thread (pooled)" received signal SIGFPE, Arithmetic exception.
      [Switching to Thread 0x7fffb7fff640 (LWP 8621)]
      0x00007fffe96f9992 in ?? () from /usr/lib/qtcreator/plugins/../libCPlusPlus.so.5
      (gdb) bt
      #0  0x00007fffe96f9992 in  () at /usr/lib/qtcreator/plugins/../libCPlusPlus.so.5
      #1  0x00007fffe97004d5 in CPlusPlus::Preprocessor::evalExpression(CPlusPlus::Internal::PPToken*, CPlusPlus::Internal::Value&) () at /usr/lib/qtcreator/plugins/../libCPlusPlus.so.5
      #2  0x00007fffe9700a00 in CPlusPlus::Preprocessor::handleIfDirective(CPlusPlus::Internal::PPToken*) ()
          at /usr/lib/qtcreator/plugins/../libCPlusPlus.so.5
      #3  0x00007fffe9702114 in CPlusPlus::Preprocessor::handlePreprocessorDirective(CPlusPlus::Internal::PPToken*)
          () at /usr/lib/qtcreator/plugins/../libCPlusPlus.so.5
      #4  0x00007fffe96fd75c in CPlusPlus::Preprocessor::lex(CPlusPlus::Internal::PPToken*) ()
          at /usr/lib/qtcreator/plugins/../libCPlusPlus.so.5
      #5  0x00007fffe96fe34c in CPlusPlus::Preprocessor::preprocess(QString const&, QByteArray const&, QByteArray*, QByteArray*, bool, bool, bool, unsigned int, unsigned int, unsigned int) ()
          at /usr/lib/qtcreator/plugins/../libCPlusPlus.so.5
      #6  0x00007fffe96feb5d in CPlusPlus::Preprocessor::run(QString const&, QByteArray const&, bool, bool) ()
          at /usr/lib/qtcreator/plugins/../libCPlusPlus.so.5
      #7  0x00007fffe996a245 in  () at /usr/lib/qtcreator/plugins/libCppTools.so
      #8  0x00007fffe98a9c3e in  () at /usr/lib/qtcreator/plugins/libCppTools.so
      #9  0x00007fffe98a6b77 in  () at /usr/lib/qtcreator/plugins/libCppTools.so
      #10 0x00007ffff6886b42 in  () at /usr/lib/libQt5Core.so.5
      #11 0x00007ffff68833cb in  () at /usr/lib/libQt5Core.so.5
      #12 0x00007ffff5d36259 in start_thread () at /usr/lib/libpthread.so.0
      #13 0x00007ffff64b35e3 in clone () at /usr/lib/libc.so.6 

      It seems to have something to do with the tokenizing/lexing of preprocessor statements, so I guess the issue may be specific to the loaded project. If thats the case I have tried opening this project: https://github.com/SerenityOS/serenity 

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            herald Fabian Blatz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes