Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-640

Crash on rebuild

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.3.0
    • 1.2.1
    • None
    • Qt Creator 3.1.2, on both Windows 7 x64 and Ubuntu 14.04 x64

    Description

      I have a project that constantly keeps crashing when editing certain files and pressing build again.

      As I can't provide the project I did some initial debugging to identify the potential cause. So far I have:

      • The affected rule is a multiplex rule which creates one output per input and sets the outputArtifacts property
      • In frame 7: m_transformer->outputs contains one entry per specified file, however only the one containing changes is initialized the others look like memory was reused without proper initialization.
      • Backtrace:

      0 QGenericAtomicOps<QAtomicOpsBySize<4> >::load<long> qgenericatomic.h 96 0xd2bb8b6
      1 QBasicAtomicInteger<int>::load qbasicatomic.h 142 0xd2baf90
      2 QtPrivate::RefCount::ref qrefcount.h 57 0xd2bb3f1
      3 QHash<qbs::Internal::FileTag,QHashDummyValue>::QHash<qbs::Internal::FileTag,QHashDummyValue> qhash.h 300 0xd3267ee
      4 QSet<qbs::Internal::FileTag>::QSet<qbs::Internal::FileTag> qset.h 68 0xd325693
      5 qbs::Internal::FileTags::FileTags qbscored1 0xd358973
      6 QForeachContainer<qbs::Internal::FileTags>::QForeachContainer<qbs::Internal::FileTags> qglobal.h 869 0xd3584a2
      7 qForeachContainerNew<qbs::Internal::FileTags> qglobal.h 879 0xd357ab7
      8 qbs::Internal::Transformer::translateInOutputs transformer.cpp 76 0xd3981a2
      9 qbs::Internal::Transformer::setupOutputs transformer.cpp 126 0xd398ac2
      10 qbs::Internal::RulesApplicator::doApply rulesapplicator.cpp 253 0xd38cc96
      11 qbs::Internal::RulesApplicator::applyRule rulesapplicator.cpp 93 0xd389d46
      12 qbs::Internal::RulesApplicator::applyRuleInEvaluationContext rulesapplicator.cpp 72 0xd389829
      13 qbs::Internal::RuleNode::apply rulenode.cpp 124 0xd3888a8
      14 qbs::Internal::Executor::executeRuleNode executor.cpp 432 0xd33e82d
      15 qbs::Internal::Executor::visit executor.cpp 896 0xd343f16
      16 qbs::Internal::RuleNode::accept rulenode.cpp 56 0xd3870d7
      17 qbs::Internal::Executor::scheduleJobs executor.cpp 293 0xd33cdc8
      18 qbs::Internal::Executor::doBuild executor.cpp 221 0xd33c5ec
      19 qbs::Internal::Executor::build executor.cpp 130 0xd33c17e
      20 qbs::Internal::Executor::qt_static_metacall moc_executor.cpp 103 0xd47d1a7
      21 QMetaObject::activate qobject.cpp 3569 0x66de5f90
      22 QMetaObject::activate qobject.cpp 3444 0x66de59c1
      23 QThread::started moc_qthread.cpp 152 0x66ea0a19
      24 QThreadPrivate::start qthread_win.cpp 350 0x66affc7e
      25 _beginthreadex MSVCR100D 0xfb8a273
      26 _beginthreadex MSVCR100D 0xfb8a204
      27 BaseThreadInitThunk kernel32 0x7708338a
      28 __RtlUserThreadStart ntdll 0x77a2bf32
      29 _RtlUserThreadStart ntdll 0x77a2bf05

      Attachments

        Issue Links

          For Gerrit Dashboard: QBS-640
          # Subject Branch Project Status CR V

          Activity

            People

              jbornema Joerg Bornemann
              jmatokic Johannes Matokic
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes