Bug 428459 - Akonadi IMAP resource crashes right after being restarted
Summary: Akonadi IMAP resource crashes right after being restarted
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-10-30 07:05 UTC by Dennis Schridde
Modified: 2020-12-09 19:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.69 KB, text/plain)
2020-11-22 23:06 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2020-10-30 07:05:20 UTC
Application: akonadi_imap_resource (5.15.1 (20.08.1))

Qt Version: 5.15.1
Frameworks Version: 5.73.0
Operating System: Linux 5.8.16-300.fc33.x86_64 x86_64
Windowing system: X11
Distribution: Fedora 33 (Thirty Three)

-- Information about the crash:
- What I was doing when the application crashed:

Whenever I restart one of my Akonadi IMAP resources (using Akonadi Console, since normally Akonadi does not even seem to start it anymore), it immediately crashes. I receive no emails via this resource in KMail.

The crash can be reproduced every time.

-- Backtrace:
Application: Mailbox.org  (akonadi_imap_resource), signal: Segmentation fault

[KCrash Handler]
#4  0x00000007fc02fc04 in  ()
#5  0x00007f139c9f5f0a in QMetaObject::cast(QObject const*) const (this=0x7f139e331320 <Akonadi::RecursiveMover::staticMetaObject>, obj=0x5627bec82430) at kernel/qmetaobject.cpp:382
#6  0x00007f139e30dc0f in qobject_cast<Akonadi::RecursiveMover*>(QObject*) (object=<optimized out>) at /usr/include/qt5/QtCore/qobject.h:519
#7  QtPrivate::QVariantValueHelper<Akonadi::RecursiveMover*>::object(QVariant const&) (v=...) at /usr/include/qt5/QtCore/qvariant.h:753
#8  QtPrivate::ObjectInvoker<QtPrivate::QVariantValueHelper<Akonadi::RecursiveMover*>, QVariant const&, Akonadi::RecursiveMover*>::invoke(QVariant const&) (a=...) at /usr/include/qt5/QtCore/qvariant.h:107
#9  qvariant_cast<Akonadi::RecursiveMover*>(QVariant const&) (v=...) at /usr/include/qt5/QtCore/qvariant.h:879
#10 QVariant::value<Akonadi::RecursiveMover*>() const (this=0x5627bec2e4e8) at /usr/include/qt5/QtCore/qvariant.h:367
#11 Akonadi::ResourceScheduler::executeNext() (this=<optimized out>) at /usr/src/debug/kf5-akonadi-server-20.08.1-2.fc33.x86_64/src/agentbase/resourcescheduler.cpp:423
#12 0x00007f139ca14e2e in QObject::event(QEvent*) (this=0x5627bec2e470, e=0x5627bedb85f0) at kernel/qobject.cpp:1314
#13 0x00007f139d56815f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x5627bec2e470, e=0x5627bedb85f0) at kernel/qapplication.cpp:3630
#14 0x00007f139c9edbf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5627bec2e470, event=0x5627bedb85f0) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#15 0x00007f139c9f0837 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5627be80c040) at kernel/qcoreapplication.cpp:1817
#16 0x00007f139ca38f63 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5627be8e0010) at kernel/qeventdispatcher_glib.cpp:277
#17 0x00007f139ac4ffd7 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#18 0x00007f139aca0d88 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#19 0x00007f139ac4d41f in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#20 0x00007f139ca38a2f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5627be8f2d80, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#21 0x00007f139c9ec65b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffd5a2634e0, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#22 0x00007f139c9f4020 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#23 0x00005627be60d6bf in main ()
[Inferior 1 (process 85879) detached]

Possible duplicates by query: bug 428403, bug 428084, bug 428071, bug 427323, bug 426999.

Reported using DrKonqi
Comment 1 Dennis Schridde 2020-11-22 23:06:38 UTC
Created attachment 133572 [details]
New crash information added by DrKonqi

akonadi_imap_resource (5.15.3 (20.08.3)) using Qt 5.15.1

- What I was doing when the application crashed:

Still reproducible with latest updates on Fedora 33 with KDE 20.08.3. Akonadi IMAP resource will crash right after toggling the resource offline and then back to online in Akonadi Console. Bug #429344 seems like it describes the exact same problem.

-- Backtrace (Reduced):
#5  0x00007fcfc998903f in qobject_cast<Akonadi::RecursiveMover*>(QObject*) (object=<optimized out>) at /usr/include/qt5/QtCore/qobject.h:519
#6  QtPrivate::QVariantValueHelper<Akonadi::RecursiveMover*>::object(QVariant const&) (v=...) at /usr/include/qt5/QtCore/qvariant.h:753
#7  QtPrivate::ObjectInvoker<QtPrivate::QVariantValueHelper<Akonadi::RecursiveMover*>, QVariant const&, Akonadi::RecursiveMover*>::invoke(QVariant const&) (a=...) at /usr/include/qt5/QtCore/qvariant.h:107
#8  qvariant_cast<Akonadi::RecursiveMover*>(QVariant const&) (v=...) at /usr/include/qt5/QtCore/qvariant.h:879
#9  QVariant::value<Akonadi::RecursiveMover*>() const (this=0x557b8606a748) at /usr/include/qt5/QtCore/qvariant.h:367
Comment 2 Dennis Schridde 2020-12-09 19:24:07 UTC
As of today, 2020-12-09, the issue is no longer reproducible on my Fedora 33 system with:
* kf5-akonadi-server-20.08.3-1.fc33
* kf5-pimcommon-akonadi-20.08.3-1.fc33