Bug 391382 - Trojita with watchFolders=all or watchFolders=subscribed crash
Summary: Trojita with watchFolders=all or watchFolders=subscribed crash
Status: RESOLVED WORKSFORME
Alias: None
Product: trojita
Classification: Applications
Component: Other (show other bugs)
Version: git
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Trojita default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-04 15:42 UTC by Pali Rohár
Modified: 2021-01-03 04:34 UTC (History)
1 user (show)

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 Pali Rohár 2018-03-04 15:42:44 UTC
When Notifications is set either to Subscribed Mailboxes (watchFolders=subscribed ) or All Mailboxes (watchFolders=all), then Trojita crash at every startup. Option INBOX only is working fine without crash.

Here is backtrace output from gdb:

#0  0x00007ffff3047930 in __dynamic_cast () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00005555556fa16f in Imap::Mailbox::Model::askForChildrenOfMailbox (this=0x555555d30c00, index=..., cacheMode=Imap::Mailbox::LOAD_CACHED_IS_OK) at trojita/src/Imap/Model/Model.cpp:753
#2  0x000055555575fb27 in Imap::Mailbox::Model::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at trojita/build/Imap_automoc.dir/moc_Model_GWT5ZYT4XQA7JO.cpp:324
#3  0x00007ffff35e7499 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3e9db8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007ffff3ea5341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007ffff35ba9e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ffff35bd16d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ffff360ec43 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ffff0b3e7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff0b3ea60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff0b3eb0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff360f04f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007ffff35b89ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff35c113c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00005555555c55e8 in main (argc=<optimized out>, argv=<optimized out>) at trojita/src/Gui/main.cpp:218

And here output from valgrind:

==9394== Invalid read of size 8
==9394==    at 0x996292D: __dynamic_cast (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==9394==    by 0x2AE16E: Imap::Mailbox::Model::askForChildrenOfMailbox(QModelIndex const&, Imap::Mailbox::CacheLoadingMode) (Model.cpp:753)
==9394==    by 0x313B26: Imap::Mailbox::Model::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_Model_GWT5ZYT4XQA7JO.cpp:324)
==9394==    by 0x96B1498: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x89C3B8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x89CB340: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x96849DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x968716C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x96D8C42: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0xBE537F6: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53A5F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53B0B: g_main_context_iteration (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==  Address 0x217e65a0 is 0 bytes inside a block of size 128 free'd
==9394==    at 0x4C2D2DB: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9394==    by 0x2AC99D: qDeleteAll<QTypedArrayData<Imap::Mailbox::TreeItem*>::const_iterator> (qalgorithms.h:323)
==9394==    by 0x2AC99D: qDeleteAll<QVector<Imap::Mailbox::TreeItem*> > (qalgorithms.h:331)
==9394==    by 0x2AC99D: Imap::Mailbox::Model::replaceChildMailboxes(Imap::Mailbox::TreeItemMailbox*, QVector<Imap::Mailbox::TreeItem*> const&) (Model.cpp:481)
==9394==    by 0x2B0BDF: Imap::Mailbox::Model::finalizeList(Imap::Parser*, Imap::Mailbox::TreeItemMailbox*) (Model.cpp:385)
==9394==    by 0x2FA743: Imap::Mailbox::ListChildMailboxesTask::handleStateHelper(Imap::Responses::State const*) (ListChildMailboxesTask.cpp:96)
==9394==    by 0x2B5073: Imap::Mailbox::Model::responseReceived(QMap<Imap::Parser*, Imap::Mailbox::ParserState>::iterator) (Model.cpp:221)
==9394==    by 0x2B566D: Imap::Mailbox::Model::responseReceived(Imap::Parser*) (Model.cpp:163)
==9394==    by 0x96B1498: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x89C3B8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x89CB340: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x96849DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x968716C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x96D8C42: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==  Block was alloc'd at
==9394==    at 0x4C2C21F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9394==    by 0x29A107: Imap::Mailbox::TreeItemMailbox::fromMetadata(Imap::Mailbox::TreeItem*, Imap::Mailbox::MailboxMetadata const&) (MailboxTree.cpp:134)
==9394==    by 0x2ADF79: Imap::Mailbox::Model::askForChildrenOfMailbox(Imap::Mailbox::TreeItemMailbox*, bool) (Model.cpp:778)
==9394==    by 0x313B26: Imap::Mailbox::Model::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_Model_GWT5ZYT4XQA7JO.cpp:324)
==9394==    by 0x96B1498: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x89C3B8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x89CB340: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x96849DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x968716C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x96D8C42: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0xBE537F6: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53A5F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394== 
==9394== Invalid read of size 8
==9394==    at 0x9962960: __dynamic_cast (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==9394==    by 0x2AE16E: Imap::Mailbox::Model::askForChildrenOfMailbox(QModelIndex const&, Imap::Mailbox::CacheLoadingMode) (Model.cpp:753)
==9394==    by 0x313B26: Imap::Mailbox::Model::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_Model_GWT5ZYT4XQA7JO.cpp:324)
==9394==    by 0x96B1498: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x89C3B8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x89CB340: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x96849DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x968716C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x96D8C42: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0xBE537F6: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53A5F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53B0B: g_main_context_iteration (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==  Address 0x217e65a0 is 0 bytes inside a block of size 128 free'd
==9394==    at 0x4C2D2DB: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9394==    by 0x2AC99D: qDeleteAll<QTypedArrayData<Imap::Mailbox::TreeItem*>::const_iterator> (qalgorithms.h:323)
==9394==    by 0x2AC99D: qDeleteAll<QVector<Imap::Mailbox::TreeItem*> > (qalgorithms.h:331)
==9394==    by 0x2AC99D: Imap::Mailbox::Model::replaceChildMailboxes(Imap::Mailbox::TreeItemMailbox*, QVector<Imap::Mailbox::TreeItem*> const&) (Model.cpp:481)
==9394==    by 0x2B0BDF: Imap::Mailbox::Model::finalizeList(Imap::Parser*, Imap::Mailbox::TreeItemMailbox*) (Model.cpp:385)
==9394==    by 0x2FA743: Imap::Mailbox::ListChildMailboxesTask::handleStateHelper(Imap::Responses::State const*) (ListChildMailboxesTask.cpp:96)
==9394==    by 0x2B5073: Imap::Mailbox::Model::responseReceived(QMap<Imap::Parser*, Imap::Mailbox::ParserState>::iterator) (Model.cpp:221)
==9394==    by 0x2B566D: Imap::Mailbox::Model::responseReceived(Imap::Parser*) (Model.cpp:163)
==9394==    by 0x96B1498: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x89C3B8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x89CB340: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x96849DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x968716C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x96D8C42: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==  Block was alloc'd at
==9394==    at 0x4C2C21F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9394==    by 0x29A107: Imap::Mailbox::TreeItemMailbox::fromMetadata(Imap::Mailbox::TreeItem*, Imap::Mailbox::MailboxMetadata const&) (MailboxTree.cpp:134)
==9394==    by 0x2ADF79: Imap::Mailbox::Model::askForChildrenOfMailbox(Imap::Mailbox::TreeItemMailbox*, bool) (Model.cpp:778)
==9394==    by 0x313B26: Imap::Mailbox::Model::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_Model_GWT5ZYT4XQA7JO.cpp:324)
==9394==    by 0x96B1498: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x89C3B8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x89CB340: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x96849DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x968716C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x96D8C42: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0xBE537F6: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53A5F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394== 
==9394== Invalid read of size 8
==9394==    at 0x2ADDE0: QString (qstring.h:900)
==9394==    by 0x2ADDE0: mailbox (MailboxTree.h:176)
==9394==    by 0x2ADDE0: Imap::Mailbox::Model::askForChildrenOfMailbox(Imap::Mailbox::TreeItemMailbox*, bool) (Model.cpp:773)
==9394==    by 0x313B26: Imap::Mailbox::Model::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_Model_GWT5ZYT4XQA7JO.cpp:324)
==9394==    by 0x96B1498: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x89C3B8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x89CB340: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x96849DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x968716C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x96D8C42: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0xBE537F6: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53A5F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53B0B: g_main_context_iteration (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0x96D904E: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
==9394== 
==9394== 
==9394== Process terminating with default action of signal 11 (SIGSEGV)
==9394==  Access not within mapped region at address 0x18
==9394==    at 0x2ADDE0: QString (qstring.h:900)
==9394==    by 0x2ADDE0: mailbox (MailboxTree.h:176)
==9394==    by 0x2ADDE0: Imap::Mailbox::Model::askForChildrenOfMailbox(Imap::Mailbox::TreeItemMailbox*, bool) (Model.cpp:773)
==9394==    by 0x313B26: Imap::Mailbox::Model::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_Model_GWT5ZYT4XQA7JO.cpp:324)
==9394==    by 0x96B1498: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x89C3B8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x89CB340: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==9394==    by 0x96849DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x968716C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0x96D8C42: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==9394==    by 0xBE537F6: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53A5F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0xBE53B0B: g_main_context_iteration (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==9394==    by 0x96D904E: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
Comment 1 Jan Kundrát 2018-03-05 12:25:35 UTC
Strange -- I cannot reproduce that. Can you please:

- ensure that you have debugging symbols and that Q_ASSERT are not being compiled out,
- tell me what your cache settings are,
- tell me the connection method you use,
- specify your version of Qt?
Comment 2 Pali Rohár 2018-03-06 17:55:06 UTC
(In reply to Jan Kundrát from comment #1)
> Strange -- I cannot reproduce that. Can you please:
> 
> - ensure that you have debugging symbols and that Q_ASSERT are not being
> compiled out,

Now I recompiled with -DCMAKE_BUILD_TYPE=Debug, it is enough?

> - tell me what your cache settings are,

Remember messages for 30 days

> - tell me the connection method you use,

Local process, dovecot/imap over ssh.

> - specify your version of Qt?

5.7.1 from Debian Stable.


After recompilation with -DCMAKE_BUILD_TYPE=Debug I see in gdb:

ASSERT: "mailbox" in file trojita/src/Imap/Model/Model.cpp, line 757

Thread 1 "trojita" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: Adresár alebo súbor neexistuje.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff27333fa 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  0x000055555570e0af in Imap::Mailbox::Model::askForChildrenOfMailbox (this=0x555555d64c90, index=..., cacheMode=Imap::Mailbox::LOAD_CACHED_IS_OK) at trojita/src/Imap/Model/Model.cpp:757
#5  0x000055555577a707 in Imap::Mailbox::Model::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>)
    at trojita/build/Imap_automoc.dir/moc_Model_GWT5ZYT4XQA7JO.cpp:324
#6  0x00007ffff35e6499 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ffff3e9cb8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007ffff3ea4341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007ffff35b99e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffff35bc16d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ffff360dc43 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff0b3d7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff0b3da60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff0b3db0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff360e04f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007ffff35b79ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007ffff35c013c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00005555555c5ce5 in main (argc=<optimized out>, argv=<optimized out>) at trojita/src/Gui/main.cpp:218
Comment 3 Jan Kundrát 2018-03-11 23:37:53 UTC
It looks like there's a race between the time the mailboxes get re-created in response to LIST, and the time CALL_LATER takes effect. I however don't understand how it's possible that I cannot reproduce this.
Comment 4 Pali Rohár 2018-03-11 23:43:25 UTC
It is strange that I can reproduce it just against one server, local process via ssh. All other configurations IMAP via TCP, or local process via ssh to other servers do not hit.
Comment 5 Justin Zobel 2020-12-04 03:24:34 UTC
Thank you for the report, Pali.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 6 Bug Janitor Service 2020-12-19 04:35:15 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 7 Bug Janitor Service 2021-01-03 04:34: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!