Bug 396332

Summary: Segfault when moving a thread when new messages arrive into the same thread
Product: [Applications] trojita Reporter: Jan Kundrát <jkt>
Component: CoreAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jan Kundrát 2018-07-09 07:45:17 UTC
I started dragging a thread and one standalone unthreaded message; I was going to move them to another mailbox. Another message arrived in the meanwhile. That message was going to become a part of that existing thread that I was dragging. Here's a backtrace. There was no assert crash, just a segfault:

(gdb) bt
#0  0x00007feb49c2f30d in QSortFilterProxyModel::parent (this=0x27a3790, child=...) at /var/tmp/portage/dev-qt/qtcore-5.11.9999/work/qtcore-5.11.9999/src/corelib/itemmodels/qsortfilterproxymodel.cpp:1999
#1  0x00000000004c6273 in Gui::MsgListView::startDrag(QFlags<Qt::DropAction>) ()
#2  0x00007feb4ab4f24c in QAbstractItemView::mouseMoveEvent(QMouseEvent*) () at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/itemviews/qabstractitemview.cpp:1836
#3  0x00007feb4abb8233 in QTreeView::mouseMoveEvent (this=0x26a5b00, event=0x7ffc030a5a80) at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/itemviews/qtreeview.cpp:1989
#4  0x00007feb4a93ec48 in QWidget::event (this=this@entry=0x26a5b00, event=event@entry=0x7ffc030a5a80) at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qwidget.cpp:8916
#5  0x00007feb4a9e0b3e in QFrame::event (this=0x26a5b00, e=0x7ffc030a5a80) at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/widgets/qframe.cpp:550
#6  0x00007feb4ab4fb9b in QAbstractItemView::viewportEvent (this=this@entry=0x26a5b00, event=event@entry=0x7ffc030a5a80)
    at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/itemviews/qabstractitemview.cpp:1748
#7  0x00007feb4abb798b in QTreeView::viewportEvent (this=0x26a5b00, event=0x7ffc030a5a80) at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/itemviews/qtreeview.cpp:1326
#8  0x00007feb49c5375e in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /var/tmp/portage/dev-qt/qtcore-5.11.9999/work/qtcore-5.11.9999/src/corelib/kernel/qcoreapplication.cpp:1174
#9  0x00007feb4a900f41 in QApplicationPrivate::notify_helper (this=this@entry=0x258ff50, receiver=receiver@entry=0x26a61e0, e=e@entry=0x7ffc030a5a80)
    at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qapplication.cpp:3721
#10 0x00007feb4a9086e7 in QApplication::notify(QObject*, QEvent*) () at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qapplication.cpp:3201
#11 0x00007feb49c53911 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /var/tmp/portage/dev-qt/qtcore-5.11.9999/work/qtcore-5.11.9999/src/corelib/kernel/qcoreapplication.cpp:1048
#12 0x00007feb4a907a20 in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../../qtwidgets-5.11.9999/src/corelib/kernel/qcoreapplication.h:234
#13 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x26a61e0, event=event@entry=0x7ffc030a5a80, alienWidget=alienWidget@entry=0x26a61e0, nativeWidget=0x7ffc030a62a0, 
    buttonDown=buttonDown@entry=0x7feb4aff2390 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qapplication.cpp:2693
#14 0x00007feb4a9592f8 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qwidgetwindow.cpp:659
#15 0x00007feb4a95bc50 in QWidgetWindow::event (this=0x27726f0, event=0x7ffc030a5e60) at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qwidgetwindow.cpp:281
#16 0x00007feb4a900f51 in QApplicationPrivate::notify_helper (this=this@entry=0x258ff50, receiver=receiver@entry=0x27726f0, e=e@entry=0x7ffc030a5e60)
    at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qapplication.cpp:3725
#17 0x00007feb4a9084a0 in QApplication::notify(QObject*, QEvent*) () at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qapplication.cpp:3484
#18 0x00007feb49c53911 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /var/tmp/portage/dev-qt/qtcore-5.11.9999/work/qtcore-5.11.9999/src/corelib/kernel/qcoreapplication.cpp:1048
#19 0x00007feb4a1dca44 in QCoreApplication::sendSpontaneousEvent (event=0x7ffc030a5e60, receiver=0x27726f0) at ../../include/QtCore/../../../qtgui-5.11.9999/src/corelib/kernel/qcoreapplication.h:237
#20 QGuiApplicationPrivate::processMouseEvent (e=0x99ab860) at /var/tmp/portage/dev-qt/qtgui-5.11.9999/work/qtgui-5.11.9999/src/gui/kernel/qguiapplication.cpp:2070
#21 0x00007feb4a1dea15 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x99ab860) at /var/tmp/portage/dev-qt/qtgui-5.11.9999/work/qtgui-5.11.9999/src/gui/kernel/qguiapplication.cpp:1805
#22 0x00007feb4a1b919a in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /var/tmp/portage/dev-qt/qtgui-5.11.9999/work/qtgui-5.11.9999/src/gui/kernel/qwindowsysteminterface.cpp:1028
#23 0x00007feb3d7ae7ec in QPAEventDispatcherGlib::processEvents (this=0x25e5410, flags=...) at /var/tmp/portage/dev-qt/qtgui-5.11.9999/work/qtgui-5.11.9999/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:70
#24 0x00007feb49c52903 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at ../../include/QtCore/../../../qtcore-5.11.9999/src/corelib/global/qflags.h:71
#25 0x00007feb49c5a66f in QCoreApplication::exec() () at /var/tmp/portage/dev-qt/qtcore-5.11.9999/work/qtcore-5.11.9999/src/corelib/kernel/qcoreapplication.cpp:1336
#26 0x0000000000454fd8 in main ()
Comment 1 Justin Zobel 2022-11-26 00:13:38 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-12-11 05:07:59 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-12-26 05:21:54 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!