Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47325

qmake crashes with ASSERT: "fileName.isEmpty() || isAbsolutePath(fileName)", ioutils.cpp, line 53

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.11.1
    • 5.5.0
    • Build tools: qmake
    • None
    • Mac OS 10.10.3
    • 7c87ffff9aa62883bf61efe1bf27704d479eace5

    Description

      I created a simple test project (include as qt-test.zip).

      When I run qmake, I get one of 2 errors:

      [my-mac:~] build% "/Users/build/Development/Qt-5.5/5.5/clang_64/bin/qmake" /Users/build/tmp/qt-test/qt-test.pro -r -spec macx-clang CONFIG+=debug CONFIG+=x86_64
      Cannot read /Users/build/Development/Qt-5.5/5.5/clang_64/mkspecs/macx-clang/
      Error processing project file: /Users/build/tmp/qt-test/qt-test.pro
      [my-mac:~] build% "/Users/build/Development/Qt-5.5/5.5/clang_64/bin/qmake" /Users/build/tmp/qt-test/qt-test.pro -r -spec macx-clang CONFIG+=debug CONFIG+=x86_64
      ASSERT: "fileName.isEmpty() || isAbsolutePath(fileName)" in file /work/build/qt5_workdir/w/s/qtbase/qmake/library/ioutils.cpp, line 53
      Abort
      

      I started qmake in lldb, and get the following backtrace from the second crash:

      (lldb) bt
      * thread #1: tid = 0x61176, 0x00007fff886f4286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
        * frame #0: 0x00007fff886f4286 libsystem_kernel.dylib`__pthread_kill + 10
          frame #1: 0x00007fff90de542f libsystem_pthread.dylib`pthread_kill + 90
          frame #2: 0x00007fff8d2c1b53 libsystem_c.dylib`abort + 129
          frame #3: 0x00000001002e1108 qmake`qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) + 24
          frame #4: 0x00000001002e160d qmake`QMessageLogger::fatal(char const*, ...) const + 461
          frame #5: 0x000000010021964a qmake`qt_assert(char const*, char const*, int) + 90
          frame #6: 0x00000001000177d9 qmake`QMakeInternal::IoUtils::fileType(QString const&) + 73
          frame #7: 0x000000010001d0e5 qmake`QMakeInternal::IoUtils::exists(QString const&) + 21
          frame #8: 0x000000010003ea80 qmake`QMakeEvaluator::updateFeaturePaths() + 5536
          frame #9: 0x0000000100038ff1 qmake`QMakeEvaluator::evaluateFeatureFile(QString const&, bool) + 273
          frame #10: 0x0000000100038902 qmake`QMakeEvaluator::loadSpecInternal() + 98
          frame #11: 0x000000010003ad08 qmake`QMakeEvaluator::loadSpec() + 4120
          frame #12: 0x000000010003ca60 qmake`QMakeEvaluator::visitProFile(ProFile*, QMakeHandler::EvalFileType, QFlags<QMakeEvaluator::LoadFlag>) + 960
          frame #13: 0x0000000100039a1b qmake`QMakeEvaluator::evaluateFile(QString const&, QMakeHandler::EvalFileType, QFlags<QMakeEvaluator::LoadFlag>) + 235
          frame #14: 0x0000000100003c47 qmake`QMakeProject::read(QString const&, QFlags<QMakeEvaluator::LoadFlag>) + 519
          frame #15: 0x0000000100016ab0 qmake`runQMake(int, char**) + 4624
          frame #16: 0x00000001000170b2 qmake`main + 34
          frame #17: 0x0000000100003784 qmake`start + 52
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            paul-mccullagh Paul McCullagh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes