Bug 445746 - IMAP Account crashing
Summary: IMAP Account crashing
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-11-19 13:51 UTC by Grzegorz
Modified: 2023-05-03 18:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.50 KB, text/plain)
2022-02-04 16:06 UTC, Grzegorz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz 2021-11-19 13:51:35 UTC
Application: akonadi_imap_resource (5.18.3 (21.08.3))

Qt Version: 5.15.2
Frameworks Version: 5.88.0
Operating System: Linux 5.14.14-3-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.23.2 [KCrashBackend]

-- Information about the crash:
- Custom settings of the application:
I think it might have crashed during applying filters to mail.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Służbowa (akonadi_imap_resource), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = {<No data fields>}}
[KCrash Handler]
#6  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#7  0x00007f680b7438e3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#8  0x00007f680b6f66f6 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9  0x00007f680b6e07b3 in __GI_abort () at abort.c:79
#10 0x00007f680b9819b6 in __gnu_cxx::__verbose_terminate_handler() () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#11 0x00007f680b98d19c in __cxxabiv1::__terminate(void (*)()) (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#12 0x00007f680b98d207 in std::terminate() () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
#13 0x00007f680b98d4fd in __cxxabiv1::__cxa_rethrow() () at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:133
#14 0x0000560a3309dedc in QVector<long long>::realloc(int, QFlags<QArrayData::AllocationOption>) (this=0x7fff3cdb6dc0, aalloc=<optimized out>, options=...) at /usr/include/qt5/QtCore/qvector.h:734
#15 0x0000560a330bce38 in QVector<long long>::append(long long const&) (this=0x7fff3cdb6dc0, t=<optimized out>) at /usr/include/qt5/QtCore/qvector.h:784
#16 0x0000560a330f95b3 in QVector<long long>::operator<<(long long const&) (t=@0x7fff3cdb6d60: 268435452, this=0x7fff3cdb6dc0) at /usr/include/qt5/QtCore/qvector.h:293
#17 MoveItemsTask::imapSetToList(KIMAP::ImapSet const&) [clone .constprop.0] (set=..., this=<optimized out>) at /usr/src/debug/kdepim-runtime-21.08.3-1.1.x86_64/resources/imap/moveitemstask.cpp:348
#18 0x0000560a330d55a0 in MoveItemsTask::onMoveDone(KJob*) (this=0x560a347238a0, job=0x560a347258d0) at /usr/src/debug/kdepim-runtime-21.08.3-1.1.x86_64/resources/imap/moveitemstask.cpp:171
#19 0x00007f680be02043 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fff3cdb6f10, r=0x560a347238a0, this=0x560a34660ff0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false>(QObject*, int, void**) (sender=0x560a347258d0, signal_index=6, argv=0x7fff3cdb6f10) at kernel/qobject.cpp:3886
#21 0x00007f680bdfb50f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x560a347258d0, m=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff3cdb6f10) at kernel/qobject.cpp:3946
#22 0x00007f680d430c7c in KJob::result(KJob*, KJob::QPrivateSignal) (this=this@entry=0x560a347258d0, _t1=<optimized out>, _t1@entry=0x560a347258d0, _t2=...) at /usr/src/debug/kcoreaddons-5.88.0-1.1.x86_64/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633
#23 0x00007f680d43501b in KJob::finishJob(bool) (this=0x560a347258d0, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons-5.88.0-1.1.x86_64/src/lib/jobs/kjob.cpp:98
#24 0x00007f680d435c6a in KJob::emitResult() (this=<optimized out>) at /usr/src/debug/kcoreaddons-5.88.0-1.1.x86_64/src/lib/jobs/kjob.cpp:337
#25 0x00007f680da363cb in KIMAP::Job::handleErrorReplies(KIMAP::Response const&) (this=0x560a347258d0, response=...) at /usr/src/debug/kimap-21.08.3-1.1.x86_64/src/job.cpp:72
#26 0x00007f680da471b5 in KIMAP::SessionPrivate::responseReceived(KIMAP::Response const&) (this=0x560a346ed100, response=...) at /usr/src/debug/kimap-21.08.3-1.1.x86_64/src/session.cpp:288
#27 0x00007f680bdf7fee in QObject::event(QEvent*) (this=0x560a346ed100, e=0x7f67e8051720) at kernel/qobject.cpp:1314
#28 0x00007f680ca6fa7f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x560a346ed100, e=0x7f67e8051720) at kernel/qapplication.cpp:3632
#29 0x00007f680bdcb9fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x560a346ed100, event=0x7f67e8051720) at kernel/qcoreapplication.cpp:1064
#30 0x00007f680bdcea47 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x560a34537090) at kernel/qcoreapplication.cpp:1821
#31 0x00007f680be23853 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=s@entry=0x560a346294b0) at kernel/qeventdispatcher_glib.cpp:277
#32 0x00007f680ad1bd4f in g_main_dispatch (context=0x7f6800005000) at ../glib/gmain.c:3381
#33 g_main_context_dispatch (context=0x7f6800005000) at ../glib/gmain.c:4099
#34 0x00007f680ad1c0d8 in g_main_context_iterate (context=context@entry=0x7f6800005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#35 0x00007f680ad1c18f in g_main_context_iteration (context=0x7f6800005000, may_block=1) at ../glib/gmain.c:4240
#36 0x00007f680be22ed4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x560a34624ea0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#37 0x00007f680bdca3fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fff3cdb7480, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#38 0x00007f680bdd26e0 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#39 0x00007f680c31118c in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#40 0x00007f680ca6f9f5 in QApplication::exec() () at kernel/qapplication.cpp:2824
#41 0x00007f680d8ffb45 in Akonadi::ResourceBase::init(Akonadi::ResourceBase&) (r=...) at /usr/src/debug/akonadi-server-21.08.3-1.1.x86_64/src/agentbase/resourcebase.cpp:563
#42 0x0000560a330a45f7 in Akonadi::ResourceBase::init<ImapResource>(int, char**) (argv=<optimized out>, argc=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:182
#43 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-runtime-21.08.3-1.1.x86_64/resources/imap/main.cpp:9
[Inferior 1 (process 8557) detached]

The reporter indicates this bug may be a duplicate of or related to bug 429344, bug 408897.

Possible duplicates by query: bug 445496, bug 445355, bug 441621, bug 440777, bug 439165.

Reported using DrKonqi
Comment 1 Grzegorz 2022-02-04 16:06:06 UTC
Created attachment 146261 [details]
New crash information added by DrKonqi

akonadi_imap_resource (5.19.1 (21.12.1)) using Qt 5.15.2

- What I was doing when the application crashed:
Restarting my PC,KMail is set to autostart

- Custom settings of the application:
Multiple rules for moving mails, In settings there is reference to one of rules (that it is currently moving messages according to rules), but the resource crashes (not always, sometimes restart will fix it, at other times you need to add account again (it works even if i restore a backup of settings made when kmail was broken)

-- Backtrace (Reduced):
#6  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#7  0x00007fdc0f4a12d3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#8  0x00007fdc0f451356 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9  0x00007fdc0f43a7d3 in __GI_abort () at abort.c:79
#10 0x00007fdc0f6ef976 in __gnu_cxx::__verbose_terminate_handler() () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
Comment 2 Bug Janitor Service 2023-04-27 21:25:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kdepim-runtime/-/merge_requests/110
Comment 3 Carl Schwan 2023-04-28 15:41:49 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 454322

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

https://invent.kde.org/pim/kdepim-runtime/commit/a7dad00a23230236113b0edb646f2e47914a812d
Comment 4 Carl Schwan 2023-04-28 15:42:31 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 454322


(cherry picked from commit a7dad00a23230236113b0edb646f2e47914a812d)

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

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