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

coredump in libqbscore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.9.0
    • None

    Description

      description

      I was experimenting with qbs for a python project:

      import qbs.File
      import qbs.FileInfo
      
      Application {
          name: "Mr Bitbucket"
          files: "**/*.py"
          excludeFiles: "migrations/*"
          Group {
              fileTagsFilter: "application"
              qbs.install: true
              qbs.installDir: FileInfo.relativePath(project.sourceDirectory, product.sourceDirectory) // <==== Crashes
          }
          qbs.installPrefix: ""
          // qbs.installSourceBase: 'mr_bitbucket'
          FileTagger {
              patterns: ["*.sh", "*.py"]
              fileTags: "script"
          }
          Rule {
              inputs: "script"
              Artifact {
                  filePath: FileInfo.relativePath(project.sourceDirectory, input.filePath)
                  fileTags: "application"
              }
              prepare: {
                  var cmd = new JavaScriptCommand();
                  cmd.description = FileInfo.relativePath(project.sourceDirectory, input.filePath) + " -> " + FileInfo.relativePath(project.buildDirectory, output.filePath)
                  cmd.sourceCode = function() { File.copy(input.filePath, output.filePath); };
                  return cmd;
              }
          }
      }
      

      the qbs.installDir line causes QtC to crash (see below)

      I'm trying to install the source hierarchy "as-is" into a dest dir.

      qbs.installDir: "mymodule" only works when sources are flat, it doesn't work when sources are in sub-dirs (they get installed flat). qbs.installDir: qbs.installSourceBase doesn't work, i get:

      :-1: warning: Cannot install '/home/chgans/Projects/navico/CGD/build-mr-proper-Desktop-Debug/Debug/Mr-Bitbucket.6207b706/mr_proper/mr_bitbucket/server/__init_.py', because it doesn't start with the value of qbs.installSourceBase '/home/chgans/Projects/navico/CGD/mr-proper/mr_proper/mr_bitbucket/mr_bitbucket'.
      

      backtrace

       Core was generated by `/home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/qtcreator'.
       Program terminated with signal SIGSEGV, Segmentation fault.
       #0 0x00007f8440b28bcb in QMap<QString, QVariant>::operator==(QMap<QString, QVariant> const&) const ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       [Current thread is 1 (Thread 0x7f8428d6f700 (LWP 30607))]
       (gdb) bt
       #0 0x00007f8440b28bcb in QMap<QString, QVariant>::operator==(QMap<QString, QVariant> const&) const ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #1 0x00007f8440c15644 in qbs::Internal::operator==(qbs::Internal::ArtifactProperties const&, qbs::Internal::ArtifactProperties const&) ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #2 0x00007f8440c56b34 in bool qbs::Internal::listsAreEqual<std::vector<std::shared_ptr<qbs::Internal::ArtifactProperties>, std::allocator<std::shared_ptr<qbs::Internal::ArtifactProperties> > > >(std::vector<std::shared_ptr<qbs::Internal::ArtifactProperties>, std::allocator<std::shared_ptr<qbs::Internal::ArtifactProperties> > > const&, std::vector<std::shared_ptr<qbs::Internal::ArtifactProperties>, std::allocator<std::shared_ptr<qbs::Internal::ArtifactProperties> > > const&) ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #3 0x00007f8440b73b19 in qbs::Internal::BuildGraphLoader::checkForPropertyChanges(std::shared_ptr<qbs::Internal::ResolvedProduct> const&, std::shared_ptr<qbs::Internal::ResolvedProduct> const&) () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #4 0x00007f8440b73dcc in qbs::Internal::BuildGraphLoader::checkProductForChanges(std::shared_ptr<qbs::Internal::ResolvedProduct> const&, std::shared_ptr<qbs::Internal::ResolvedProduct> const&) () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #5 0x00007f8440b74dcb in qbs::Internal::BuildGraphLoader::checkAllProductsForChanges(std::vector<std::shared_ptr<qbs::Internal::ResolvedProduct>, std::allocator<std::shared_ptr<qbs::Internal::ResolvedProduct> > > const&, std::vector<std::shared_ptr<qbs::Internal::ResolvedProduct>, std::allocator<std::shared_ptr<qbs::Internal::ResolvedProduct> > >&) () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #6 0x00007f8440b76a5d in qbs::Internal::BuildGraphLoader::trackProjectChanges() ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #7 0x00007f8440b78fad in qbs::Internal::BuildGraphLoader::load(std::shared_ptr<qbs::Internal::TopLevelProject> const&, qbs::SetupProjectParameters const&, std::shared_ptr<qbs::Internal::RulesEvaluationContext> const&) () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #8 0x00007f8440b06809 in qbs::Internal::InternalSetupProjectJob::restoreProject(std::shared_ptr<qbs::Internal::RulesEvaluationContext> const&) ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #9 0x00007f8440b083b1 in qbs::Internal::InternalSetupProjectJob::execute() ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #10 0x00007f8440b08a45 in qbs::Internal::InternalSetupProjectJob::start() ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/lib/qtcreator/plugins/../libqbscore.so.1.13
       #11 0x00007f846f9278e1 in QObject::event(QEvent*) () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
       #12 0x00007f8470d586fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
       #13 0x00007f8470d5f7f0 in QApplication::notify(QObject*, QEvent*) () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
       #14 0x00007f846f8fae98 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
       #15 0x00007f846f8fd937 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
       #16 0x00007f846f952c93 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
       #17 0x00007f846b2b4387 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
       #18 0x00007f846b2b45c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
       #19 0x00007f846b2b464c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
       #20 0x00007f846f9522cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
       #21 0x00007f846f8f97fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
       ---Type <return> to continue, or q <return> to quit---
       from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
       #22 0x00007f846f72c87c in QThread::exec() () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
       #23 0x00007f846f72ddb3 in QThreadPrivate::start(void*) () from /home/chgans/Programs/QtCommercial/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
       #24 0x00007f846f1df6db in start_thread (arg=0x7f8428d6f700) at pthread_create.c:463
       #25 0x00007f846e5b988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       

      environment

      OS: KUbuntu-18.04, 64 bits
      Qt: Commercial, with latest update

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            christian_gagneraud_navico Christian Gagneraud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes