Bug 392182 - ASSERT: "it != ptrToInternal.constEnd()" in file src/Imap/Model/ThreadingMsgListModel.cpp, line 1476
Summary: ASSERT: "it != ptrToInternal.constEnd()" in file src/Imap/Model/ThreadingMsgL...
Status: RESOLVED DUPLICATE of bug 391710
Alias: None
Product: trojita
Classification: Applications
Component: Core (show other bugs)
Version: git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Trojita default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-22 14:41 UTC by Jan Kundrát
Modified: 2018-03-22 14:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kundrát 2018-03-22 14:41:01 UTC
I got this while switching between mailboxes with threading and searching being active, or perhaps deactivating one of them, or perhaps changing the search criteria:

ASSERT: "it != ptrToInternal.constEnd()" in file src/Imap/Model/ThreadingMsgListModel.cpp, line 1476
Comment 1 Jan Kundrát 2018-03-22 14:44:26 UTC
This BT might be incorrect because I rebuilt between capturing the core dump and invoking `coredumpctl gdb`. But anyway, it looks plausible:

#0  0x00007fbf8581421b in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007fbf858158b1 in __GI_abort () at abort.c:89
#2  0x00007fbf8657099e in qt_message_fatal (context=..., message=<synthetic pointer>...)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/global/qlogging.cpp:1690
#3  QMessageLogger::fatal (this=this@entry=0x7ffe913ed2f0, msg=msg@entry=0x7fbf86835038 "ASSERT: \"%s\" in file %s, line %d")
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/global/qlogging.cpp:796
#4  0x00007fbf8656ac45 in qt_assert (assertion=<optimized out>, file=<optimized out>, line=<optimized out>)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/global/qglobal.cpp:3077
#5  0x00000000005ede33 in Imap::Mailbox::ThreadingMsgListModel::applySort() ()
#6  0x00000000005e7869 in Imap::Mailbox::ThreadingMsgListModel::searchSortPreferenceImplementation(QStringList const&, Imap::Mailbox::ThreadingMsgListModel::SortCriterium, Qt::SortOrder) ()
#7  0x00000000005e9074 in Imap::Mailbox::ThreadingMsgListModel::applyThreading(QVector<Imap::Responses::ThreadingNode> const&) ()
#8  0x00000000005e3732 in Imap::Mailbox::ThreadingMsgListModel::wantThreading(Imap::Mailbox::ThreadingMsgListModel::SkipSortSearch) ()
#9  0x000000000046f450 in Gui::MainWindow::slotThreadMsgList() ()
#10 0x00007fbf8679c505 in QtPrivate::QSlotObjectBase::call (a=0x7ffe913ed960, r=0x7ffe913efaa0, this=0x1787eb0)
    at ../../include/QtCore/../../../qtcore-5.9.9999/src/corelib/kernel/qobject_impl.h:101
#11 QMetaObject::activate (sender=sender@entry=0x16bb220, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffe913ed960)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qobject.cpp:3749
#12 0x00007fbf8679caa5 in QMetaObject::activate (sender=sender@entry=0x16bb220, m=m@entry=0x7fbf875de880 <QAction::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffe913ed960)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qobject.cpp:3628
#13 0x00007fbf870513cf in QAction::triggered (this=this@entry=0x16bb220, _t1=true) at .moc/moc_qaction.cpp:371
#14 0x00007fbf87054b3c in QAction::activate (this=this@entry=0x16bb220, event=event@entry=QAction::Trigger)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qaction.cpp:1163
#15 0x00007fbf87219fd2 in QMenuPrivate::activateCausedStack (this=this@entry=0x1681170, causedStack=..., action=action@entry=0x16bb220, 
    action_e=action_e@entry=QAction::Trigger, self=self@entry=true)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qmenu.cpp:1324
#16 0x00007fbf8722107a in QMenuPrivate::activateAction (this=this@entry=0x1681170, action=action@entry=0x16bb220, action_e=action_e@entry=QAction::Trigger, 
    self=self@entry=true) at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qmenu.cpp:1401
#17 0x00007fbf872221fa in QMenu::mouseReleaseEvent (this=<optimized out>, e=0x7ffe913ee050)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qmenu.cpp:2889
#18 0x00007fbf870a5a60 in QWidget::event (this=this@entry=0x16b9e20, event=event@entry=0x7ffe913ee050)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qwidget.cpp:9198
#19 0x00007fbf87224693 in QMenu::event (this=0x16b9e20, e=0x7ffe913ee050)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qmenu.cpp:3011
#20 0x00007fbf87059d54 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x16b9e20, e=0x7ffe913ee050)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:3722
#21 0x00007fbf87062e2f in QApplication::notify (this=<optimized out>, receiver=0x16b9e20, e=0x7ffe913ee050)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:3198
#22 0x00007fbf8676c078 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x16b9e20, event=event@entry=0x7ffe913ee050)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qcoreapplication.cpp:1018
#23 0x00007fbf870616ee in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>)
    at ../../include/QtCore/../../../qtwidgets-5.9.9999/src/corelib/kernel/qcoreapplication.h:233
#24 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x16b9e20, event=event@entry=0x7ffe913ee050, alienWidget=0x0, alienWidget@entry=0x16b9e20, 
    nativeWidget=0x16b9e20, buttonDown=buttonDown@entry=0x7fbf876113a0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:2704
#25 0x00007fbf870c616b in QWidgetWindow::handleMouseEvent (this=this@entry=0x1deb050, event=event@entry=0x7ffe913ee480)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qwidgetwindow.cpp:516
#26 0x00007fbf870c8cab in QWidgetWindow::event (this=0x1deb050, event=0x7ffe913ee480)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qwidgetwindow.cpp:243
#27 0x00007fbf87059d54 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x1deb050, e=0x7ffe913ee480)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:3722
#28 0x00007fbf870624a2 in QApplication::notify (this=0x7ffe913efa90, receiver=0x1deb050, e=0x7ffe913ee480)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:3481
#29 0x00007fbf8676c078 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x1deb050, event=event@entry=0x7ffe913ee480)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qcoreapplication.cpp:1018
#30 0x00007fbf86adb4d9 in QCoreApplication::sendSpontaneousEvent (event=0x7ffe913ee480, receiver=0x1deb050)
    at ../../include/QtCore/../../../qtgui-5.9.9999/src/corelib/kernel/qcoreapplication.h:236
#31 QGuiApplicationPrivate::processMouseEvent (e=0x21a4090) at /var/tmp/portage/dev-qt/qtgui-5.9.9999/work/qtgui-5.9.9999/src/gui/kernel/qguiapplication.cpp:1949
#32 0x00007fbf86add805 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x21a4090)
    at /var/tmp/portage/dev-qt/qtgui-5.9.9999/work/qtgui-5.9.9999/src/gui/kernel/qguiapplication.cpp:1733
#33 0x00007fbf86ab216c in QWindowSystemInterface::sendWindowSystemEvents (flags=...)
    at /var/tmp/portage/dev-qt/qtgui-5.9.9999/work/qtgui-5.9.9999/src/gui/kernel/qwindowsysteminterface.cpp:939
#34 0x00007fbf7b234632 in userEventSourceDispatch (source=<optimized out>)
    at /var/tmp/portage/dev-qt/qtgui-5.9.9999/work/qtgui-5.9.9999/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:77
#35 0x00007fbf80dc280c in g_main_dispatch (context=0x7fbf740016f0) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3154
#36 g_main_context_dispatch (context=context@entry=0x7fbf740016f0) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3769
#37 0x00007fbf80dc2b18 in g_main_context_iterate (context=context@entry=0x7fbf740016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3840
#38 0x00007fbf80dc2c21 in g_main_context_iteration (context=0x7fbf740016f0, may_block=1) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901
#39 0x00007fbf867c8e9d in QEventDispatcherGlib::processEvents (this=0x1592670, flags=...)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#40 0x00007fbf8676a1ba in QEventLoop::exec (this=this@entry=0x7ffe913ee890, flags=..., flags@entry=...)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qeventloop.cpp:212
#41 0x00007fbf8721e9d2 in QMenu::exec (this=<optimized out>, p=..., action=action@entry=0x0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qmenu.cpp:2623
#42 0x00007fbf87285802 in QToolButtonPrivate::popupTimerDone (this=0x17a6940)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qtoolbutton.cpp:795
#43 0x00007fbf8679c505 in QtPrivate::QSlotObjectBase::call (a=0x7ffe913eeaf0, r=0x172af20, this=0x1725640)
    at ../../include/QtCore/../../../qtcore-5.9.9999/src/corelib/kernel/qobject_impl.h:101
#44 QMetaObject::activate (sender=sender@entry=0x172af20, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffe913eeaf0)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qobject.cpp:3749
#45 0x00007fbf8679caa5 in QMetaObject::activate (sender=sender@entry=0x172af20, m=m@entry=0x7fbf875e4b60 <QAbstractButton::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffe913eeaf0)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qobject.cpp:3628
#46 0x00007fbf87178f4f in QAbstractButton::clicked (this=this@entry=0x172af20, _t1=false) at .moc/moc_qabstractbutton.cpp:309
#47 0x00007fbf8717927e in QAbstractButtonPrivate::emitClicked (this=this@entry=0x17a6940)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qabstractbutton.cpp:414
#48 0x00007fbf8717b19b in QAbstractButtonPrivate::click (this=this@entry=0x17a6940)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qabstractbutton.cpp:407
#49 0x00007fbf8717b39d in QAbstractButton::mouseReleaseEvent (this=0x172af20, e=0x7ffe913ef0a0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qabstractbutton.cpp:1010
#50 0x00007fbf87286b00 in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qtoolbutton.cpp:619
#51 0x00007fbf870a5a60 in QWidget::event (this=this@entry=0x172af20, event=0x7ffe913ef0a0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qwidget.cpp:9198
---Type <return> to continue, or q <return> to quit---
#52 0x00007fbf8717c897 in QAbstractButton::event (this=this@entry=0x172af20, e=e@entry=0x7ffe913ef0a0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qabstractbutton.cpp:968
#53 0x00007fbf87286c8d in QToolButton::event (this=0x172af20, event=0x7ffe913ef0a0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/widgets/qtoolbutton.cpp:982
#54 0x00007fbf87059d54 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x172af20, e=0x7ffe913ef0a0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:3722
#55 0x00007fbf87062e2f in QApplication::notify (this=<optimized out>, receiver=0x172af20, e=0x7ffe913ef0a0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:3198
#56 0x00007fbf8676c078 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x172af20, event=event@entry=0x7ffe913ef0a0)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qcoreapplication.cpp:1018
#57 0x00007fbf870616ee in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>)
    at ../../include/QtCore/../../../qtwidgets-5.9.9999/src/corelib/kernel/qcoreapplication.h:233
#58 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x172af20, event=event@entry=0x7ffe913ef0a0, alienWidget=alienWidget@entry=0x172af20, 
    nativeWidget=0x7ffe913efaa0, buttonDown=buttonDown@entry=0x7fbf876113a0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:2704
#59 0x00007fbf870c645d in QWidgetWindow::handleMouseEvent (this=this@entry=0x19797b0, event=event@entry=0x7ffe913ef4d0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qwidgetwindow.cpp:622
#60 0x00007fbf870c8cab in QWidgetWindow::event (this=0x19797b0, event=0x7ffe913ef4d0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qwidgetwindow.cpp:243
#61 0x00007fbf87059d54 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x19797b0, e=0x7ffe913ef4d0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:3722
#62 0x00007fbf870624a2 in QApplication::notify (this=0x7ffe913efa90, receiver=0x19797b0, e=0x7ffe913ef4d0)
    at /var/tmp/portage/dev-qt/qtwidgets-5.9.9999/work/qtwidgets-5.9.9999/src/widgets/kernel/qapplication.cpp:3481
#63 0x00007fbf8676c078 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x19797b0, event=event@entry=0x7ffe913ef4d0)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qcoreapplication.cpp:1018
#64 0x00007fbf86adb4d9 in QCoreApplication::sendSpontaneousEvent (event=0x7ffe913ef4d0, receiver=0x19797b0)
    at ../../include/QtCore/../../../qtgui-5.9.9999/src/corelib/kernel/qcoreapplication.h:236
#65 QGuiApplicationPrivate::processMouseEvent (e=0x1a82340) at /var/tmp/portage/dev-qt/qtgui-5.9.9999/work/qtgui-5.9.9999/src/gui/kernel/qguiapplication.cpp:1949
#66 0x00007fbf86add805 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x1a82340)
    at /var/tmp/portage/dev-qt/qtgui-5.9.9999/work/qtgui-5.9.9999/src/gui/kernel/qguiapplication.cpp:1733
#67 0x00007fbf86ab216c in QWindowSystemInterface::sendWindowSystemEvents (flags=...)
    at /var/tmp/portage/dev-qt/qtgui-5.9.9999/work/qtgui-5.9.9999/src/gui/kernel/qwindowsysteminterface.cpp:939
#68 0x00007fbf7b234632 in userEventSourceDispatch (source=<optimized out>)
    at /var/tmp/portage/dev-qt/qtgui-5.9.9999/work/qtgui-5.9.9999/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:77
#69 0x00007fbf80dc280c in g_main_dispatch (context=0x7fbf740016f0) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3154
#70 g_main_context_dispatch (context=context@entry=0x7fbf740016f0) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3769
#71 0x00007fbf80dc2b18 in g_main_context_iterate (context=context@entry=0x7fbf740016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3840
#72 0x00007fbf80dc2c21 in g_main_context_iteration (context=0x7fbf740016f0, may_block=1) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901
#73 0x00007fbf867c8e9d in QEventDispatcherGlib::processEvents (this=0x1592670, flags=...)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#74 0x00007fbf8676a1ba in QEventLoop::exec (this=this@entry=0x7ffe913ef8e0, flags=..., flags@entry=...)
    at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qeventloop.cpp:212
#75 0x00007fbf86773d48 in QCoreApplication::exec () at /var/tmp/portage/dev-qt/qtcore-5.9.9999/work/qtcore-5.9.9999/src/corelib/kernel/qcoreapplication.cpp:1291
#76 0x0000000000454e08 in main ()
Comment 2 Jan Kundrát 2018-03-22 14:45:38 UTC
Gah.

*** This bug has been marked as a duplicate of bug 391710 ***