Bug 454322 - Crash on checking IMAP
Summary: Crash on checking IMAP
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-24 10:12 UTC by Allan Sandfeld
Modified: 2023-04-28 15:42 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 Allan Sandfeld 2022-05-24 10:12:30 UTC
Application: akonadi_imap_resource (5.20.2 (22.04.2))
 (Compiled from sources)
Qt Version: 5.15.10
Frameworks Version: 5.95.0
Operating System: Linux 5.17.0-1-amd64 x86_64
Windowing System: X11
Distribution: Debian GNU/Linux bookworm/sid
DrKonqi: 5.24.90 [KCrashBackend]

-- Information about the crash:
On work account not used for over a year, updated KDE, first check on one of the accounts crashed in an assert.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Allstar (akonadi_imap_resource), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#5  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#6  0x00007f2c59832546 in __GI_abort () at abort.c:79
#7  0x00007f2c59cba0b5 in QMessageLogger::fatal(char const*, ...) const () from /opt/qt-5.15/lib/libQt5Core.so.5
#8  0x00007f2c59cb952e in qt_assert(char const*, char const*, int) () from /opt/qt-5.15/lib/libQt5Core.so.5
#9  0x00007f2c5c010894 in KIMAP::ImapSet::add (this=0x7ffddb16ab20, values=...) at /src/kdesrc/kde/pim/kimap/src/imapset.cpp:240
#10 0x00007f2c5c0105a4 in KIMAP::ImapSet::ImapSet (this=0x7ffddb16ab20, value=-1) at /src/kdesrc/kde/pim/kimap/src/imapset.cpp:194
#11 0x000055dbd65159dd in RetrieveItemTask::triggerFetchJob (this=0x7f2c4402c370) at /src/kdesrc/kde/pim/kdepim-runtime/resources/imap/retrieveitemtask.cpp:63
#12 0x000055dbd6515949 in RetrieveItemTask::onSelectDone (this=0x7f2c4402c370, job=0x55dbd791bd00) at /src/kdesrc/kde/pim/kdepim-runtime/resources/imap/retrieveitemtask.cpp:54
#13 0x000055dbd6516b50 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KJob*>, void, void (RetrieveItemTask::*)(KJob*)>::call (f=(void (RetrieveItemTask::*)(RetrieveItemTask * const, KJob *)) 0x55dbd65158d8 <RetrieveItemTask::onSelectDone(KJob*)>, o=0x7f2c4402c370, arg=0x7ffddb16ad70) at /opt/qt-5.15/include/QtCore/qobjectdefs_impl.h:152
#14 0x000055dbd6516a8c in QtPrivate::FunctionPointer<void (RetrieveItemTask::*)(KJob*)>::call<QtPrivate::List<KJob*>, void> (f=(void (RetrieveItemTask::*)(RetrieveItemTask * const, KJob *)) 0x55dbd65158d8 <RetrieveItemTask::onSelectDone(KJob*)>, o=0x7f2c4402c370, arg=0x7ffddb16ad70) at /opt/qt-5.15/include/QtCore/qobjectdefs_impl.h:185
#15 0x000055dbd65168a9 in QtPrivate::QSlotObject<void (RetrieveItemTask::*)(KJob*), QtPrivate::List<KJob*>, void>::impl (which=1, this_=0x55dbd7bbb5e0, r=0x7f2c4402c370, a=0x7ffddb16ad70, ret=0x0) at /opt/qt-5.15/include/QtCore/qobjectdefs_impl.h:418
#16 0x00007f2c59f01293 in QtPrivate::QSlotObjectBase::call (a=0x7ffddb16ad70, r=0x7f2c4402c370, this=0x55dbd7bbb5e0) at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:398
#17 doActivate<false> (sender=0x55dbd791bd00, signal_index=6, argv=0x7ffddb16ad70) at /src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3923
#18 0x00007f2c5b609f63 in KJob::result (this=0x55dbd791bd00, _t1=0x55dbd791bd00, _t2=...) at /src/kdesrc/build/frameworks/kcoreaddons/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633
#19 0x00007f2c5b6076c5 in KJob::finishJob (this=0x55dbd791bd00, emitResult=true) at /src/kdesrc/frameworks/kcoreaddons/src/lib/jobs/kjob.cpp:98
#20 0x00007f2c5b608275 in KJob::emitResult (this=0x55dbd791bd00) at /src/kdesrc/frameworks/kcoreaddons/src/lib/jobs/kjob.cpp:337
#21 0x00007f2c5c01999c in KIMAP::Job::handleErrorReplies (this=0x55dbd791bd00, response=...) at /src/kdesrc/kde/pim/kimap/src/job.cpp:72
#22 0x00007f2c5c02f8b8 in KIMAP::SelectJob::handleResponse (this=0x55dbd791bd00, response=...) at /src/kdesrc/kde/pim/kimap/src/selectjob.cpp:222
#23 0x00007f2c5c032801 in KIMAP::SessionPrivate::responseReceived (this=0x55dbd7b06b40, response=...) at /src/kdesrc/kde/pim/kimap/src/session.cpp:288
#24 0x00007f2c5c0375c1 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KIMAP::Response const&>, void, void (KIMAP::SessionPrivate::*)(KIMAP::Response const&)>::call (f=(void (KIMAP::SessionPrivate::*)(KIMAP::SessionPrivate * const, const KIMAP::Response &)) 0x7f2c5c031f60 <KIMAP::SessionPrivate::responseReceived(KIMAP::Response const&)>, o=0x55dbd7b06b40, arg=0x7f2c28042a38) at /opt/qt-5.15/include/QtCore/qobjectdefs_impl.h:152
#25 0x00007f2c5c036fb6 in QtPrivate::FunctionPointer<void (KIMAP::SessionPrivate::*)(KIMAP::Response const&)>::call<QtPrivate::List<KIMAP::Response const&>, void> (f=(void (KIMAP::SessionPrivate::*)(KIMAP::SessionPrivate * const, const KIMAP::Response &)) 0x7f2c5c031f60 <KIMAP::SessionPrivate::responseReceived(KIMAP::Response const&)>, o=0x55dbd7b06b40, arg=0x7f2c28042a38) at /opt/qt-5.15/include/QtCore/qobjectdefs_impl.h:185
#26 0x00007f2c5c0364ed in QtPrivate::QSlotObject<void (KIMAP::SessionPrivate::*)(KIMAP::Response const&), QtPrivate::List<KIMAP::Response const&>, void>::impl (which=1, this_=0x55dbd7c2a280, r=0x55dbd7b06b40, a=0x7f2c28042a38, ret=0x0) at /opt/qt-5.15/include/QtCore/qobjectdefs_impl.h:418
#27 0x00007f2c59ef74a6 in QObject::event (this=0x55dbd7b06b40, e=0x7f2c280429f0) at /src/qt5/qtbase/src/corelib/kernel/qobject.cpp:1347
#28 0x00007f2c5ab0b82f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55dbd7b06b40, e=0x7f2c280429f0) at /src/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3640
#29 0x00007f2c59ecbb00 in QCoreApplication::notifyInternal2 (receiver=0x55dbd7b06b40, event=0x7f2c280429f0) at /src/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1064
#30 0x00007f2c59eceb82 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55dbd77214b0) at /src/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1821
#31 0x00007f2c59f21673 in postEventSourceDispatch (s=0x55dbd779bc70) at /src/qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#32 0x00007f2c58a1af8b in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f2c58a1b238 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f2c58a1b2ef in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f2c59f20d56 in QEventDispatcherGlib::processEvents (this=0x55dbd779cff0, flags=...) at /src/qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#36 0x00007f2c59eca673 in QEventLoop::exec (this=this@entry=0x7ffddb16b600, flags=..., flags@entry=...) at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qflags.h:69
#37 0x00007f2c59ed26ec in QCoreApplication::exec () at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qflags.h:121
#38 0x00007f2c5bc22bc2 in Akonadi::ResourceBase::init (r=...) at /src/kdesrc/kde/pim/akonadi/src/agentbase/resourcebase.cpp:555
#39 0x000055dbd64b8eff in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0x7ffddb16b868) at /opt/kde5/include/KF5/AkonadiAgentBase/akonadi/resourcebase.h:183
#40 0x000055dbd64b8dd8 in main (argc=3, argv=0x7ffddb16b868) at /src/kdesrc/kde/pim/kdepim-runtime/resources/imap/main.cpp:9
[Inferior 1 (process 2583) detached]

Reported using DrKonqi
Comment 1 Bug Janitor Service 2023-04-27 21:25:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kdepim-runtime/-/merge_requests/110
Comment 2 Carl Schwan 2023-04-28 15:41:56 UTC
Git commit a7dad00a23230236113b0edb646f2e47914a812d by Carl Schwan.
Committed on 28/04/2023 at 15:40.
Pushed by carlschwan into branch 'master'.

Ignore infite set

Infinite IMAP set are likely causing an out of memory exception.
Related: bug 445746

M  +4    -0    resources/imap/moveitemstask.cpp

https://invent.kde.org/pim/kdepim-runtime/commit/a7dad00a23230236113b0edb646f2e47914a812d
Comment 3 Carl Schwan 2023-04-28 15:42:23 UTC
Git commit a740e7fafe67336fdb1189760976a8fd5fe306f2 by Carl Schwan.
Committed on 28/04/2023 at 15:42.
Pushed by carlschwan into branch 'release/23.04'.

Ignore infite set

Infinite IMAP set are likely causing an out of memory exception.
Related: bug 445746


(cherry picked from commit a7dad00a23230236113b0edb646f2e47914a812d)

M  +4    -0    resources/imap/moveitemstask.cpp

https://invent.kde.org/pim/kdepim-runtime/commit/a740e7fafe67336fdb1189760976a8fd5fe306f2