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

Malformed project file crashes Creator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 3.1.2, Qt Creator 4.1.0, Qt Creator 4.2.0-rc1, Qt Creator 4.7.0-beta2
    • Fix Version/s: None
    • Labels:
    • Environment:
      Ubuntu 16.04 LTS 64 bit

      Description

      Try to open the attached project in Creator. Creator will crash:

      1   __memcpy_sse2_unaligned                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             memcpy-sse2-unaligned.S 39   0x7ffff55c4e25 
      2   QString::replace                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    qstring.cpp             3492 0x7ffff626742a 
      3   replaceInList                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       qmakeevaluator.cpp      336  0x7fffe3869407 
      4   QMakeEvaluator::visitProVariable                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    qmakeevaluator.cpp      880  0x7fffe386c254 
      5   QMakeEvaluator::visitProBlock                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       qmakeevaluator.cpp      535  0x7fffe386a525 
      6   QMakeEvaluator::visitProBlock                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       qmakeevaluator.cpp      513  0x7fffe386a41d 
      7   QMakeEvaluator::visitProFile                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        qmakeevaluator.cpp      1432 0x7fffe387046c 
      8   ProFileEvaluator::accept                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            profileevaluator.cpp    195  0x7fffe3880295 
      9   QmakeProjectManager::QmakeProFileNode::evaluate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     qmakenodes.cpp          1842 0x7fffc91adc85 
      10  QmakeProjectManager::QmakeProFileNode::asyncEvaluate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                qmakenodes.cpp          2086 0x7fffc91b1905 
      11  Utils::Internal::MemberCallable<void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput)>::operator()(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput&&) const                                                                                                                                                                                                                                                                                                                                                           runextensions.h         222  0x7fffc91d5108 
      12  Utils::Internal::runAsyncQFutureInterfaceDispatch<QmakeProjectManager::Internal::EvalResult *, Utils::Internal::MemberCallable<void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput)>, QmakeProjectManager::Internal::EvalInput>(std::integral_constant<bool, true>, QFutureInterface<QmakeProjectManager::Internal::EvalResult *>, Utils::Internal::MemberCallable<void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput)>&&, QmakeProjectManager::Internal::EvalInput&&) runextensions.h         252  0x7fffc91d5047 
      13  Utils::Internal::runAsyncMemberDispatch<QmakeProjectManager::Internal::EvalResult *, Utils::Internal::MemberCallable<void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput)>, QmakeProjectManager::Internal::EvalInput, void>(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>, Utils::Internal::MemberCallable<void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput)>&&, QmakeProjectManager::Internal::EvalInput&&)                                         runextensions.h         270  0x7fffc91d4fc5 
      14  Utils::Internal::runAsyncImpl<QmakeProjectManager::Internal::EvalResult *, Utils::Internal::MemberCallable<void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput)>, QmakeProjectManager::Internal::EvalInput>(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>, Utils::Internal::MemberCallable<void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput)>&&, QmakeProjectManager::Internal::EvalInput&&)                                                         runextensions.h         300  0x7fffc91d4f0e 
      15  Utils::Internal::runAsyncMemberDispatch<QmakeProjectManager::Internal::EvalResult *, void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput), QmakeProjectManager::QmakeProFileNode *, QmakeProjectManager::Internal::EvalInput, void>(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>, void (QmakeProjectManager::QmakeProFileNode:: *&&)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput), QmakeProjectManager::QmakeProFileNode *&&, QmakeProjectManager::Internal::EvalInput&&)                       runextensions.h         282  0x7fffc91d4e12 
      16  Utils::Internal::runAsyncImpl<QmakeProjectManager::Internal::EvalResult *, void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput), QmakeProjectManager::QmakeProFileNode *, QmakeProjectManager::Internal::EvalInput>(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>, void (QmakeProjectManager::QmakeProFileNode:: *&&)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput), QmakeProjectManager::QmakeProFileNode *&&, QmakeProjectManager::Internal::EvalInput&&)                                       runextensions.h         300  0x7fffc91d4d37 
      17  Utils::Internal::AsyncJob<QmakeProjectManager::Internal::EvalResult *, void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput), QmakeProjectManager::QmakeProFileNode *, QmakeProjectManager::Internal::EvalInput&>::runHelper<0ul, 1ul, 2ul>                                                                                                                                                                                                                                                                                                                                    runextensions.h         377  0x7fffc91d4c35 
      18  Utils::Internal::AsyncJob<QmakeProjectManager::Internal::EvalResult *, void (QmakeProjectManager::QmakeProFileNode:: *)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *>&, QmakeProjectManager::Internal::EvalInput), QmakeProjectManager::QmakeProFileNode *, QmakeProjectManager::Internal::EvalInput&>::run                                                                                                                                                                                                                                                                                                                                                         runextensions.h         357  0x7fffc91d4947 
      19  QThreadPoolThread::run                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              qthreadpool.cpp         99   0x7ffff618c772 
      20  QThreadPrivate::start                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               qthread_unix.cpp        344  0x7ffff61933ce 
      ... <Mehr>                                                                   
      

      Creator might not be able to open this project file at all but it must not crash.

        Attachments

        1. backtrace3.txt
          110 kB
        2. p3.pro
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              buddenha Oswald Buddenhagen
              Reporter:
              rlohning Robert Löhning
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes