Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-48

Segmentation fault when running the installer binary (Linux x86_64)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.2
    • General
    • None
    • Ubuntu (Linux x86_64)

      Created a custom installer successfully, but when running the installer binary, segmentation fault occurs when clicking "Next"
      after selecting installation directory.

      Compiled the installer framework from "refactor" branch.
      The package structure was as follows:

      com.my_company.sdk
      /meta/package.xml
      com.my_company.sdk.subcomponent
      /meta/package.xml
      /data/some_binary_file.7z
      com.my_company.sdk.subcomponent.sub_subcomponent
      /meta/package.xml
      /data/some_binary_file_2.7z

      and created the installer using the following command:

      binarycreator -t ./installerbase -v -p ./packages -c ./config ./my_installer --offline-only com.my_company.sdk

      The crash occurs on this line:

      qinstallergui.cpp, function "ComponentSelectionPage::isComplete"

      if( (*it)->isSelected() == d->m_installer->isInstaller() )
      

      By using debug prints, I found that "(*it)" triggers the segmentation fault in this case.

      But, if I change the package structure as follows:

      com.my_company.sdk.subcomponent
      /meta/package.xml
      /data/some_binary_file.7z
      com.my_company.sdk.subcomponent.sub_subcomponent
      /meta/package.xml
      /data/some_binary_file_2.7z

      and created the installer using the following command:

      binarycreator -t ./installerbase -v -p ./packages -c ./config ./my_installer --offline-only com.my_company.sdk.subcomponent

      -> no crash anymore when running the installer binary?

      Is the "empty" top level package causing this problem? i.e. in the first case the com.my_company.sdk did not have "/data" folder.

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

            heimrich Karsten Heimrich
            iknd Iikka Eklund
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes