Bug 391710 - Trojita crash when searching: ASSERT: "it != ptrToInternal.constEnd()" in file src/Imap/Model/ThreadingMsgListModel.cpp, line 1476
Summary: Trojita crash when searching: ASSERT: "it != ptrToInternal.constEnd()" in fil...
Status: RESOLVED WORKSFORME
Alias: None
Product: trojita
Classification: Applications
Component: Other (show other bugs)
Version: git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Trojita default assignee
URL:
Keywords:
: 392182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-11 13:11 UTC by Pali Rohár
Modified: 2022-12-18 05:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
crash-log (698.14 KB, text/plain)
2018-03-24 14:39 UTC, Pali Rohár
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pali Rohár 2018-03-11 13:11:07 UTC
Trojita periodically crash when trying search in raw mode (":=HEADER "header" "value"). Following assert fails:

ASSERT: "it != ptrToInternal.constEnd()" in file trojita/src/Imap/Model/ThreadingMsgListModel.cpp, line 1476

Here is gdb stacktrace:

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff273342a in __GI_abort () at abort.c:89
#2  0x00007ffff33d0561 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffff33cba2e in qt_assert(char const*, char const*, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00005555557360d5 in Imap::Mailbox::ThreadingMsgListModel::applySort (this=this@entry=0x555555dbace0) at trojita/src/Imap/Model/ThreadingMsgListModel.cpp:1476
#5  0x0000555555736edf in Imap::Mailbox::ThreadingMsgListModel::searchSortPreferenceImplementation (this=this@entry=0x555555dbace0, searchConditions=..., criterium=Imap::Mailbox::ThreadingMsgListModel::SORT_NONE, 
    order=<optimized out>) at trojita/src/Imap/Model/ThreadingMsgListModel.cpp:1421
#6  0x0000555555737b48 in Imap::Mailbox::ThreadingMsgListModel::applyThreading (this=this@entry=0x555555dbace0, mapping=...) at trojita/src/Imap/Model/ThreadingMsgListModel.cpp:996
#7  0x0000555555738451 in Imap::Mailbox::ThreadingMsgListModel::wantThreading (this=this@entry=0x555555dbace0, skipSortSearch=skipSortSearch@entry=Imap::Mailbox::ThreadingMsgListModel::AUTO_SORT_SEARCH)
    at trojita/src/Imap/Model/ThreadingMsgListModel.cpp:590
#8  0x00005555557396b9 in Imap::Mailbox::ThreadingMsgListModel::slotSortingAvailable (this=0x555555dbace0, uids=...) at trojita/src/Imap/Model/ThreadingMsgListModel.cpp:834
#9  0x00007ffff35e595e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x0000555555776e22 in Imap::Mailbox::SortTask::sortingAvailable (this=this@entry=0x55555ac558e0, _t1=...) at trojita/build/Imap_automoc.dir/moc_SortTask_4YBJI63NCCXEIP.cpp:155
#11 0x000055555576f4f0 in Imap::Mailbox::SortTask::handleStateHelper (this=0x55555ac558e0, resp=0x555556cb8500) at trojita/src/Imap/Tasks/SortTask.cpp:135
#12 0x0000555555715daf in Imap::Mailbox::Model::responseReceived (this=this@entry=0x555555d9cbc0, it=..., it@entry=...) at trojita/src/Imap/Model/Model.cpp:221
#13 0x00005555557163de in Imap::Mailbox::Model::responseReceived (this=0x555555d9cbc0, parser=0x555555ff0ac0) at trojita/src/Imap/Model/Model.cpp:163
#14 0x00007ffff35e6499 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ffff3e9cb8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007ffff3ea4341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff35b99e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff35bc16d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007ffff360dc43 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007ffff0b3d7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff0b3da60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff0b3db0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff360e04f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007ffff35b79ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007ffff35c013c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00005555555c5ce5 in main (argc=<optimized out>, argv=<optimized out>) at trojita/src/Gui/main.cpp:218
Comment 1 Jan Kundrát 2018-03-11 23:14:58 UTC
This might have something to do with that latest change wihch enabled SORT and THREAD to co-exist, which is kind of a hack.

Can you please attach a complete IMAP log of this one?
Comment 2 Jan Kundrát 2018-03-22 14:45:38 UTC
*** Bug 392182 has been marked as a duplicate of this bug. ***
Comment 3 Pali Rohár 2018-03-24 14:39:25 UTC
Created attachment 111604 [details]
crash-log

In attachment is crash log, some of the mailboxes in imap log were replaced by string YYY.

Now trojita crashed with assert:

ASSERT: "replaceWith != threading.end()" in file trojita/src/Imap/Model/ThreadingMsgListModel.cpp, line 1142
Comment 4 Justin Zobel 2022-11-18 04:30:28 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 5 Bug Janitor Service 2022-12-03 05:17:38 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 6 Bug Janitor Service 2022-12-18 05:15:42 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!