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

"Build" ->"Copy Steps From Another Kit" produces segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 4.5.1
    • Qt Creator 4.5.0
    • None
    • 7df3bff07ad07913744f0dcf4bddf3905bb3d9ba

    Description

      How to reproduce:

      1. Start QtCreator
      2. Load my existing project that already has a standard kit for 5.9.1 with some manual changes to the build steps (see included .pro.user file)
      3. Right click "Build" under "Desktop Qt 5.10.0 GCC 64bit4" kit and select "Copy Steps From Another Kit...."
      4. Select "Desktop Qt 5.9.1 GCC 64bit3"

      Expected:

      1. Build steps would be copied

      Actual:

      1. QtCreator window simply disappears. 
      2. When I perform the same task while running QtCreator in gdb on commandline, I can see that it crashes with a segmentation fault, producing the backtrace as listed below

      Notes:

      1. It only happens for build steps, copying run steps works just fine
      2. It seems to happen for all kits I want to copy from, not just 5.9.1
      3. It is reproducible, I can do this operation and it will reliably crash every time
      4. It seem that the steps are actually copied and stored before the crash occurs

       

      gdb crash backtrace log:

       

      lennart@katana:~/Qt/Tools/QtCreator/bin$ gdb ./qtcreator
      GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
      Copyright (C) 2016 Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law. Type "show copying"
      and "show warranty" for details.
      This GDB was configured as "x86_64-linux-gnu".
      Type "show configuration" for configuration details.
      For bug reporting instructions, please see:
      <http://www.gnu.org/software/gdb/bugs/>.
      Find the GDB manual and other documentation resources online at:
      <http://www.gnu.org/software/gdb/documentation/>.
      For help, type "help".
      Type "apropos word" to search for commands related to "word"...
      Reading symbols from ./qtcreator...(no debugging symbols found)...done.
      (gdb) r
      Starting program: /home/lennart/Qt/Tools/QtCreator/bin/qtcreator 
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
      [New Thread 0x7fffec83a700 (LWP 19027)]
      [New Thread 0x7fffe121f700 (LWP 19028)]
      [New Thread 0x7fffe0a1e700 (LWP 19029)]
      [New Thread 0x7fffdbfff700 (LWP 19030)]
      [New Thread 0x7fffda300700 (LWP 19031)]
      [New Thread 0x7fffbc197700 (LWP 19033)]
      [New Thread 0x7fffbb996700 (LWP 19034)]
      [New Thread 0x7fffbb195700 (LWP 19035)]
      [New Thread 0x7fffb91c8700 (LWP 19036)]
      [New Thread 0x7fffabdff700 (LWP 19037)]
      [New Thread 0x7fffab5fe700 (LWP 19038)]
      [Thread 0x7fffab5fe700 (LWP 19038) exited]
      [Thread 0x7fffabdff700 (LWP 19037) exited]
      [New Thread 0x7fffabdff700 (LWP 19044)]
      [Thread 0x7fffabdff700 (LWP 19044) exited]
      No tool chain set up in kit "Desktop Qt 5.7.1 GCC 64bit2" for "C".
      No tool chain set up in kit "Desktop Qt 5.7.1 GCC 64bit2" for "C".
      [New Thread 0x7fffabdff700 (LWP 19164)]
      [New Thread 0x7fffab5fe700 (LWP 19177)]
      [New Thread 0x7fffa8adc700 (LWP 19178)]
      [New Thread 0x7fff97fff700 (LWP 19179)]
      [New Thread 0x7fff977fe700 (LWP 19180)]
      [New Thread 0x7fff96ffd700 (LWP 19181)]
      [New Thread 0x7fff967fc700 (LWP 19183)]
      [New Thread 0x7fff95ffb700 (LWP 19220)]
      [New Thread 0x7fff957fa700 (LWP 19460)]
      [New Thread 0x7fff94ff9700 (LWP 19632)]
      [New Thread 0x7fff77fff700 (LWP 19634)]
      [New Thread 0x7fff777fe700 (LWP 19642)]
      [New Thread 0x7fff76ffd700 (LWP 19643)]
      [New Thread 0x7fff767fc700 (LWP 19644)]
      [New Thread 0x7fff75ffb700 (LWP 19645)]
      [New Thread 0x7fff757fa700 (LWP 19646)]
      [New Thread 0x7fff74ff9700 (LWP 19647)]
      [New Thread 0x7fff5ffff700 (LWP 19648)]
      [New Thread 0x7fff5f7fe700 (LWP 19649)]
      [New Thread 0x7fff5effd700 (LWP 19650)]
      "The command \"/usr/bin/g++-4.6\" terminated with exit code 1."
      [New Thread 0x7fff5e7fc700 (LWP 19659)]
      [New Thread 0x7fff5dffb700 (LWP 19663)]
      [New Thread 0x7fff5d7fa700 (LWP 19666)]
      [New Thread 0x7fff5cff9700 (LWP 19673)]
      [New Thread 0x7fff3bfff700 (LWP 19676)]
      "The command \"/usr/bin/g++-4.6\" terminated with exit code 1."
      [Thread 0x7fff5effd700 (LWP 19650) exited]
      [New Thread 0x7fff5effd700 (LWP 19736)]
      [Thread 0x7fff5effd700 (LWP 19736) exited]
      [New Thread 0x7fff5effd700 (LWP 19737)]
      [New Thread 0x7fff3b7fe700 (LWP 19738)]
      [New Thread 0x7fff3affd700 (LWP 19739)]
      [New Thread 0x7fff3a7fc700 (LWP 19740)]
      [Thread 0x7fff3a7fc700 (LWP 19740) exited]
      [Thread 0x7fff5effd700 (LWP 19737) exited]
      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
      0x00007ffff5b518dc in QObjectPrivate::addConnection(int, QObjectPrivate::Connection*) ()
       from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      (gdb) bt
      #0 0x00007ffff5b518dc in QObjectPrivate::addConnection(int, QObjectPrivate::Connection*) ()
       from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #1 0x00007ffff5b51eba in QObjectPrivate::connectImpl(QObject const*, int, QObject const*, void**, QtPrivate::QSlotObjectBase*, Qt::ConnectionType, int const*, QMetaObject const*) ()
       from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #2 0x00007ffff5b522a5 in QObject::connectImpl(QObject const*, void**, QObject const*, void**, QtPrivate::QSlotObjectBase*, Qt::ConnectionType, int const*, QMetaObject const*) ()
       from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #3 0x00007fffc3191804 in ?? ()
       from /home/lennart/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmakeProjectManager.so
      #4 0x00007fffcdb25eee in ProjectExplorer::Internal::Subscription::subscribe(ProjectExplorer::ProjectConfiguration*) ()
       from /home/lennart/Qt/Tools/QtCreator/lib/qtcreator/plugins/libProjectExplorer.so
      #5 0x00007ffff5b4eef6 in QMetaObject::activate(QObject*, int, int, void**) ()
       from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #6 0x00007fffcdcb35c2 in ProjectExplorer::Project::addedProjectConfiguration(ProjectExplorer::ProjectConfiguration*) ()
       from /home/lennart/Qt/Tools/QtCreator/lib/qtcreator/plugins/libProjectExplore----Type <---Type <retur---Type <retur---Type ---Ty--------------T------T---T---Ty---Ty----------Type <retur-------Type <return> to continue, or q <return> to quit---
      r.so
      #7 0x00007ffff5b4eef6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #8 0x00007fffcdcb0552 in ProjectExplorer::Target::addedProjectConfiguration(ProjectExplorer::ProjectConfiguration*) ()
       from /home/lennart/Qt/Tools/QtCreator/lib/qtcreator/plugins/libProjectExplorer.so
      #9 0x00007fffcdb6d613 in ProjectExplorer::Target::addBuildConfiguration(ProjectExplorer::BuildConfiguration*) ()
       from /home/lennart/Qt/Tools/QtCreator/lib/qtcreator/plugins/libProjectExplorer.so
      #10 0x00007fffcdba76b9 in ProjectExplorer::Project::copySteps(ProjectExplorer::Target*, ProjectExplorer::Target*) ()
       from /home/lennart/Qt/Tools/QtCreator/lib/qtcreator/plugins/libProjectExplorer.so
      #11 0x00007ffff5b4eef6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #12 0x00007ffff6ec9492 in QAction::triggered(bool) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #13 0x00007ffff6ecb990 in QAction::activate(QAction::ActionEvent) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #14 0x00007ffff703e57a in ?? () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #15 0x00007ffff70455f6 in ?? () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #16 0x00007ffff7046510 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #17 0x00007ffff6f0bed8 in QWidget::event(QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #18 0x00007ffff704896b in QMenu::event(QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #19 0x00007ffff6ecf54c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #20 0x00007ffff6ed7273 in QApplication::notify(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #21 0x00007ffff5b239f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #22 0x00007ffff6ed5edf in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
       from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #23 0x00007ffff6f25af0 in ?? () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #24 0x00007ffff6f28003 in ?? () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #25 0x00007ffff6ecf54c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #26 0x00007ffff6ed6897 in QApplication::notify(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #27 0x00007ffff5b239f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #28 0x00007ffff66c1530 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Gui.so.5
      #29 0x00007ffff66c3315 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
       from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Gui.so.5
      #30 0x00007ffff669f15b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Gui.so.5
      #31 0x00007fffee24d9ab in ?? () from /home/lennart/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5
      #32 0x00007ffff5b2226a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #33 0x00007ffff704341d in QMenu::exec(QPoint const&, QAction*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #34 0x00007fffcdb24875 in ?? () from /home/lennart/Qt/Tools/QtCreator/lib/qtcreator/plugins/libProjectExplorer.so
      #35 0x00007ffff5b4eef6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #36 0x00007ffff6ef3175 in QWidget::customContextMenuRequested(QPoint const&) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #37 0x00007ffff6f0cccd in QWidget::event(QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #38 0x00007ffff6fae3ae in QFrame::event(QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #39 0x00007ffff710ae1c in QAbstractItemView::viewportEvent(QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #40 0x00007ffff716f6fc in QTreeView::viewportEvent(QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #41 0x00007ffff5b23792 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #42 0x00007ffff6ecf525 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #43 0x00007ffff6ed8092 in QApplication::notify(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #44 0x00007ffff5b239f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #45 0x00007ffff6f2583f in ?? () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #46 0x00007ffff6f28003 in ?? () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #47 0x00007ffff6ecf54c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #48 0x00007ffff6ed6897 in QApplication::notify(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #49 0x00007ffff5b239f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #50 0x00007ffff66c1530 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Gui.so.5
      #51 0x00007ffff66c3315 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
       from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Gui.so.5
      #52 0x00007ffff669f15b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Gui.so.5
      #53 0x00007fffee24d9ab in ?? () from /home/lennart/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5
      #54 0x00007ffff5b2226a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #55 0x00007ffff5b2ada4 in QCoreApplication::exec() () from /home/lennart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #56 0x000000000040a4ca in ?? ()
      #57 0x00007ffff47ca830 in __libc_start_main (main=0x407080, argc=1, argv=0x7fffffffd998, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd988)
       at ../csu/libc-start.c:291
      #58 0x000000000040a731 in ?? ()
      (gdb)
      

       

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            lennartrolland@gmail.com Lennart Rolland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes