Bug 17443 - "Open" toolbar widget causes segfault
Summary: "Open" toolbar widget causes segfault
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Nicolas Lécureuil
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 17523
  Show dependency treegraph
 
Reported: 2016-01-04 18:10 CET by Frank Griffin
Modified: 2016-01-24 13:05 CET (History)
1 user (show)

See Also:
Source RPM: kate
CVE:
Status comment:


Attachments

Description Frank Griffin 2016-01-04 18:10:46 CET
Happens 80-90% of the time.  Have a few files open in tabs, and click on "Open" while one of the files has the focus.  The backtrace from gdb is:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe92a5c58 in QXcbWindow::setParent(QPlatformWindow const*) ()
   from /lib64/libQt5XcbQpa.so.5
(gdb) bt
#0  0x00007fffe92a5c58 in QXcbWindow::setParent(QPlatformWindow const*) ()
    at /lib64/libQt5XcbQpa.so.5
#1  0x00007ffff48437ab in QWindow::setParent(QWindow*) ()
    at /lib64/libQt5Gui.so.5
#2  0x00007ffff4e88221 in QWidgetPrivate::setParent_sys(QWidget*, QFlags<Qt::WindowType>) () at /lib64/libQt5Widgets.so.5
#3  0x00007ffff4e930f5 in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () at /lib64/libQt5Widgets.so.5
#4  0x00007ffff4e9410c in QWidget::setParent(QWidget*) ()
    at /lib64/libQt5Widgets.so.5
#5  0x00007ffff4f702dc in QDialogButtonBox::addButton(QAbstractButton*, QDialogButtonBox::ButtonRole) () at /lib64/libQt5Widgets.so.5
#6  0x00007fffe613b799 in KDEPlatformFileDialog::KDEPlatformFileDialog() ()
    at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#7  0x00007fffe613bb72 in KDEPlatformFileDialogHelper::KDEPlatformFileDialogHelper() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#8  0x00007fffe61314da in KdePlatformTheme::createPlatformDialogHelper(QPlatformTheme::DialogType) const ()
    at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#9  0x00007ffff5035478 in QDialogPrivate::platformHelper() const ()
    at /lib64/libQt5Widgets.so.5
#10 0x00007ffff5047468 in QFileDialogPrivate::init(QUrl const&, QString const&, QString const&) () at /lib64/libQt5Widgets.so.5
#11 0x00007ffff50476e6 in QFileDialog::QFileDialog(QFileDialogArgs const&) ()
    at /lib64/libQt5Widgets.so.5
#12 0x00007ffff5047beb in QFileDialog::getOpenFileUrls(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) () at /lib64/libQt5Widgets.so.5
#13 0x0000000000460cbf in KateViewManager::slotDocumentOpen() ()
#14 0x00000000004872c5 in  ()
#15 0x00007ffff3e4c2e0 in QMetaObject::activate(QObject*, int, int, void**) ()
    at /lib64/libQt5Core.so.5
#16 0x00007ffff4e488d2 in QAction::triggered(bool) ()
    at /lib64/libQt5Widgets.so.5
#17 0x00007ffff4e4aab0 in QAction::activate(QAction::ActionEvent) ()
    at /lib64/libQt5Widgets.so.5
#18 0x00007ffff4f45b80 in QAbstractButtonPrivate::click() ()
    at /lib64/libQt5Widgets.so.5
#19 0x00007ffff4f45c8c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
    at /lib64/libQt5Widgets.so.5
#20 0x00007ffff500344a in QToolButton::mouseReleaseEvent(QMouseEvent*) ()
    at /lib64/libQt5Widgets.so.5
#21 0x00007ffff4e922a8 in QWidget::event(QEvent*) ()
    at /lib64/libQt5Widgets.so.5
#22 0x00007ffff5003519 in QToolButton::event(QEvent*) ()
    at /lib64/libQt5Widgets.so.5
#23 0x00007ffff4e50e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#24 0x00007ffff4e56841 in QApplication::notify(QObject*, QEvent*) ()
    at /lib64/libQt5Widgets.so.5
#25 0x00007ffff3e21348 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#26 0x00007ffff4e55295 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
    at /lib64/libQt5Widgets.so.5
#27 0x00007ffff4eab411 in QWidgetWindow::handleMouseEvent(QMouseEvent*) ()
    at /lib64/libQt5Widgets.so.5
#28 0x00007ffff4ead78b in QWidgetWindow::event(QEvent*) ()
    at /lib64/libQt5Widgets.so.5
#29 0x00007ffff4e50e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#30 0x00007ffff4e55cb6 in QApplication::notify(QObject*, QEvent*) ()
    at /lib64/libQt5Widgets.so.5
#31 0x00007ffff3e21348 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#32 0x00007ffff483b450 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#33 0x00007ffff483cea5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib64/libQt5Gui.so.5
#34 0x00007ffff481b93b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#35 0x00007fffe92bfd80 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#36 0x00007ffff0783267 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#37 0x00007ffff0783498 in g_main_context_iterate.isra ()
    at /lib64/libglib-2.0.so.0
mInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#33 0x00007ffff483cea5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib64/libQt5Gui.so.5
#34 0x00007ffff481b93b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#35 0x00007fffe92bfd80 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#36 0x00007ffff0783267 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#37 0x00007ffff0783498 in g_main_context_iterate.isra ()
    at /lib64/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#38 0x00007ffff078353c in g_main_context_iteration ()
    at /lib64/libglib-2.0.so.0
#39 0x00007ffff3e735e6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#40 0x00007ffff3e1f03a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#41 0x00007ffff3e27541 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#42 0x000000000043c48c in main ()


Reproducible: 

Steps to Reproduce:
Comment 1 Marja Van Waes 2016-01-04 19:01:40 CET
assigning to maintainer

CC: (none) => marja11
Assignee: bugsquad => mageia

Comment 2 Frank Griffin 2016-01-07 00:51:12 CET
Addendum:

If you attempt the same action via File -> Open rather than the Open toolbar widget, the problem does not occur.
Rémi Verschelde 2016-01-23 10:38:28 CET

Blocks: (none) => 17523

Comment 3 Nicolas Lécureuil 2016-01-23 12:47:33 CET
Please install debuginfo packages and paste a new backtrace.
Comment 4 Frank Griffin 2016-01-23 14:07:22 CET
There's no kate-debuginfo package:

[root@ftglap ~]# debuginfo-install kate-15.12.1-1.mga6.x86_64
No package named kate-debuginfo
Something went wrong, make sure your Debug media are configured properly
[root@ftglap ~]# 

There is a libkate-debuginfo which I installed, but I still get:

Reading symbols from kate...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/kate 
Missing separate debuginfos, use: dnf debuginfo-install kate-15.12.1-1.mga6.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe69dd700 (LWP 17521)]
[New Thread 0x7fffde963700 (LWP 17522)]

and I get the same backtrace, i. e. function names but no line numbers.
Comment 5 Nicolas Lécureuil 2016-01-24 12:20:18 CET
fixed in new qtbase5

( see : https://codereview.qt-project.org/#/c/145033/ )
Comment 6 Nicolas Lécureuil 2016-01-24 13:05:20 CET
No crash here anymore ( i reproduced before ).

Please reopen if any pb.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.