← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1575630] [NEW] Crash when trying to follow symbol (F2) which is a multiply-implemented virtual method

 

Public bug reported:

Ubuntu 16.04 (recently upgraded from 15.10), using Cinnamon desktop

Since the upgrade, when using F2 in a C++ project to jump to the implementation of a method,
if the method is virtual & several implementations are possible (access through a base pointer),
when I double click in the pop-up list of methods I get the following crash (backtrace from gdb):

$ gdb qtcreator
GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11
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...Reading symbols from /usr/lib/debug/.build-id/b4/16f4ebeb9e4866e12e8e74be0b9216533e8573.debug...done.
done.
(gdb) run
Starting program: /usr/bin/qtcreator 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffec94a700 (LWP 13352)]
[New Thread 0x7fffde167700 (LWP 13353)]
[New Thread 0x7fffdd966700 (LWP 13354)]
[New Thread 0x7fffdd165700 (LWP 13355)]
[Thread 0x7fffdd165700 (LWP 13355) exited]
[New Thread 0x7fffdd165700 (LWP 13362)]
[New Thread 0x7fffbd925700 (LWP 13364)]
[New Thread 0x7fffb7fff700 (LWP 13389)]
[New Thread 0x7fffb77fe700 (LWP 13447)]
[New Thread 0x7fffb5014700 (LWP 13448)]
[Thread 0x7fffb5014700 (LWP 13448) exited]

Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
0x00007ffff6dc3a6a in QtSharedPointer::ExternalRefCountData::getAndRef(QObject const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
(gdb) bt
#0  0x00007ffff6dc3a6a in QtSharedPointer::ExternalRefCountData::getAndRef(QObject const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007ffff73238e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#2  0x00007ffff7325b3b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#3  0x00007ffff72c605c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007ffff72cb516 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007ffff6f1b62b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5cc1888 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5
#7  0x00007ffff5cc31e5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5
#8  0x00007ffff5ca6f38 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5
#9  0x00007ffff018af10 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#10 0x00007ffff53ac127 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff53ac380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff53ac42c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff6f71a7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff6f18dea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ffff6f20e8c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x0000000000408c19 in main (argc=1, argv=<optimized out>) at /build/qtcreator-jrmbIB/qtcreator-3.5.1+dfsg/src/app/main.cpp:526

** Affects: qtcreator (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator in Ubuntu.
https://bugs.launchpad.net/bugs/1575630

Title:
  Crash when trying to follow symbol (F2) which is a multiply-
  implemented virtual method

Status in qtcreator package in Ubuntu:
  New

Bug description:
  Ubuntu 16.04 (recently upgraded from 15.10), using Cinnamon desktop

  Since the upgrade, when using F2 in a C++ project to jump to the implementation of a method,
  if the method is virtual & several implementations are possible (access through a base pointer),
  when I double click in the pop-up list of methods I get the following crash (backtrace from gdb):

  $ gdb qtcreator
  GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11
  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...Reading symbols from /usr/lib/debug/.build-id/b4/16f4ebeb9e4866e12e8e74be0b9216533e8573.debug...done.
  done.
  (gdb) run
  Starting program: /usr/bin/qtcreator 
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  [New Thread 0x7fffec94a700 (LWP 13352)]
  [New Thread 0x7fffde167700 (LWP 13353)]
  [New Thread 0x7fffdd966700 (LWP 13354)]
  [New Thread 0x7fffdd165700 (LWP 13355)]
  [Thread 0x7fffdd165700 (LWP 13355) exited]
  [New Thread 0x7fffdd165700 (LWP 13362)]
  [New Thread 0x7fffbd925700 (LWP 13364)]
  [New Thread 0x7fffb7fff700 (LWP 13389)]
  [New Thread 0x7fffb77fe700 (LWP 13447)]
  [New Thread 0x7fffb5014700 (LWP 13448)]
  [Thread 0x7fffb5014700 (LWP 13448) exited]

  Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
  0x00007ffff6dc3a6a in QtSharedPointer::ExternalRefCountData::getAndRef(QObject const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  (gdb) bt
  #0  0x00007ffff6dc3a6a in QtSharedPointer::ExternalRefCountData::getAndRef(QObject const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #1  0x00007ffff73238e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
  #2  0x00007ffff7325b3b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
  #3  0x00007ffff72c605c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
  #4  0x00007ffff72cb516 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
  #5  0x00007ffff6f1b62b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #6  0x00007ffff5cc1888 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
     from /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5
  #7  0x00007ffff5cc31e5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
     from /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5
  #8  0x00007ffff5ca6f38 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
     from /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5
  #9  0x00007ffff018af10 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
  #10 0x00007ffff53ac127 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #11 0x00007ffff53ac380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #12 0x00007ffff53ac42c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #13 0x00007ffff6f71a7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #14 0x00007ffff6f18dea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #15 0x00007ffff6f20e8c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #16 0x0000000000408c19 in main (argc=1, argv=<optimized out>) at /build/qtcreator-jrmbIB/qtcreator-3.5.1+dfsg/src/app/main.cpp:526

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1575630/+subscriptions