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

Segfault when setting project.qbsSearchPaths on the command line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.4.2
    • 1.4.0
    • General
    • None
    • 666df460147a09edc1efd84be56df7a1f2f06faf

    Description

      Try `qbs project.qbsSearchPaths:qbs`

      * thread #6: tid = 0x5cf2fc, 0x00000001030164fc libqbscore.1.5.0.dylib`QSharedPointer<qbs::Internal::FileContext>::data(this=0x0000000000000028) const + 12 at qsharedpointer_impl.h:297, name = 'QThread', stop reason = EXC_BAD_ACCESS (code=1, address=0x28)
        * frame #0: 0x00000001030164fc libqbscore.1.5.0.dylib`QSharedPointer<qbs::Internal::FileContext>::data(this=0x0000000000000028) const + 12 at qsharedpointer_impl.h:297
          frame #1: 0x0000000103015835 libqbscore.1.5.0.dylib`QSharedPointer<qbs::Internal::FileContext>::operator->(this=0x0000000000000028) const + 21 at qsharedpointer_impl.h:302
          frame #2: 0x000000010305fb79 libqbscore.1.5.0.dylib`qbs::Internal::ModuleLoader::readExtraSearchPaths(this=0x00007f9e21f0d9c0, item=0x00007f9e25002e00, wasSet=0x0000000000000000) + 537 at moduleloader.cpp:1342
          frame #3: 0x000000010305cb3e libqbscore.1.5.0.dylib`qbs::Internal::ModuleLoader::handleProject(this=0x00007f9e21f0d9c0, loadResult=0x00000001051864d0, item=0x00007f9e25002e00, buildDirectory=0x00000001051864a0, referencedFilePaths=0x0000000105186370) + 462 at moduleloader.cpp:242
          frame #4: 0x000000010305c369 libqbscore.1.5.0.dylib`qbs::Internal::ModuleLoader::load(this=0x00007f9e21f0d9c0, parameters=0x00007f9e21f03138) + 2041 at moduleloader.cpp:139
          frame #5: 0x000000010305ac64 libqbscore.1.5.0.dylib`qbs::Internal::Loader::loadProject(this=0x0000000105186780, parameters=0x00007f9e21f03138) + 1044 at loader.cpp:111
      

      Due to `prop` being null in ModuleLoader::readExtraSearchPaths. If prop is null, I suppose we should resolve the path against the working directory.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes