<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>453371</bug_id>
          
          <creation_ts>2022-05-04 06:31:45 +0000</creation_ts>
          <short_desc>Akonadi crash when check new mail</short_desc>
          <delta_ts>2025-05-19 18:27:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kontact</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>alexey.shishin</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>ahartmetz</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2121085</commentid>
    <comment_count>0</comment_count>
    <who name="">alexey.shishin</who>
    <bug_when>2022-05-04 06:31:45 +0000</bug_when>
    <thetext>Application: kontact (5.20.0 (22.04.0))

Qt Version: 5.15.2
Frameworks Version: 5.93.0
Operating System: Linux 5.17.4-1-default x86_64
Windowing System: X11
Distribution: &quot;openSUSE Tumbleweed&quot;
DrKonqi: 5.24.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Start Kontact, check new (IMAP) mail = crash Akonadi server.

2022-05-04 T09:02:54 [WARN ] org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection Archive Mail Kernel ETM (0x559d5df39b50) : Item query returned empty result set
2022-05-04 T09:03:35 [CRITICAL] org.kde.pim.akonadiserver: database server stopped unexpectedly

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr&lt;char []&gt; = {get() = &lt;optimized out&gt;}
[KCrash Handler]
#6  memcpy@GLIBC_2.2.5 () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:222
#7  0x00007fe7dd1f7222 in memcpy (__len=18446744062548373608, __src=&lt;optimized out&gt;, __dest=&lt;optimized out&gt;) at /usr/include/bits/string_fortified.h:29
#8  QListData::append (this=0x55fd52e48f90, n=n@entry=1) at tools/qlist.cpp:193
#9  0x00007fe7dd1f726a in QListData::append (this=&lt;optimized out&gt;) at tools/qlist.cpp:206
#10 0x00007fe7ddf5c220 in QList&lt;QWidget*&gt;::append (t=&lt;optimized out&gt;, this=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/tools/qlist.h:643
#11 QList&lt;QWidget*&gt;::append (this=&lt;optimized out&gt;, t=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/tools/qlist.h:620
#12 0x00007fe7ddf89379 in QWidget::insertAction (this=this@entry=0x55fd541ce100, before=&lt;optimized out&gt;, before@entry=0x0, action=0x55fd5378bef0) at kernel/qwidget.cpp:3129
#13 0x00007fe7de70f433 in KXMLGUI::ActionList::plug (index=&lt;optimized out&gt;, container=0x55fd541ce100, this=0x55fd5368d890) at /usr/src/debug/kxmlgui-5.93.0-1.1.x86_64/src/kxmlguifactory_p.cpp:33
#14 KXMLGUI::ContainerNode::plugActionList (mergingIdxIt=&lt;synthetic pointer&gt;..., state=..., this=0x55fd53db3330) at /usr/src/debug/kxmlgui-5.93.0-1.1.x86_64/src/kxmlguifactory_p.cpp:230
#15 KXMLGUI::ContainerNode::plugActionList (this=0x55fd53db3330, state=...) at /usr/src/debug/kxmlgui-5.93.0-1.1.x86_64/src/kxmlguifactory_p.cpp:202
#16 0x00007fe7de70f4f0 in KXMLGUI::ContainerNode::plugActionList (this=0x55fd5341bf30, state=...) at /usr/src/debug/kxmlgui-5.93.0-1.1.x86_64/src/kxmlguifactory_p.cpp:206
#17 0x00007fe7de70f4f0 in KXMLGUI::ContainerNode::plugActionList (this=0x55fd53282740, state=...) at /usr/src/debug/kxmlgui-5.93.0-1.1.x86_64/src/kxmlguifactory_p.cpp:206
#18 0x00007fe7de715c81 in KXMLGUIFactory::plugActionList (this=0x55fd538e4590, client=0x55fd538d54e0, name=..., actionList=...) at /usr/src/debug/kxmlgui-5.93.0-1.1.x86_64/src/kxmlguifactory.cpp:564
#19 0x00007fe76b922c58 in PimCommon::PluginInterface::initializePluginActions(QString const&amp;, KXMLGUIClient*) () from /lib64/libKF5PimCommonAkonadi.so.5
#20 0x00007fe7786ba900 in KMMainWidget::initializePluginActions() () from /lib64/libkmailprivate.so.5
#21 0x00007fe778df2a65 in ?? () from /usr/lib64/qt5/plugins/kmailpart.so
#22 0x00007fe7dd3cc1af in QObject::event (this=0x55fd538d54b0, e=0x7fff45f7ec90) at kernel/qobject.cpp:1336
#23 0x00007fe7ddf50b0f in QApplicationPrivate::notify_helper (this=&lt;optimized out&gt;, receiver=0x55fd538d54b0, e=0x7fff45f7ec90) at kernel/qapplication.cpp:3632
#24 0x00007fe7dd39fb5a in QCoreApplication::notifyInternal2 (receiver=0x55fd538d54b0, event=0x7fff45f7ec90) at kernel/qcoreapplication.cpp:1064
#25 0x00007fe7dcad9c3f in KParts::MainWindow::createGUI (this=0x55fd53ac9ca0, part=0x55fd538d54b0) at /usr/src/debug/kparts-5.93.0-1.1.x86_64/src/mainwindow.cpp:104
#26 0x00007fe7de79a7ca in Kontact::MainWindow::selectPlugin(KontactInterface::Plugin*) () from /lib64/libkontactprivate.so.5
#27 0x00007fe7dd3d6488 in doActivate&lt;false&gt; (sender=0x55fd53661b80, signal_index=7, argv=0x7fff45f7eed0) at kernel/qobject.cpp:3898
#28 0x00007fe7de7953df in ?? () from /lib64/libkontactprivate.so.5
#29 0x00007fe7dd3d6453 in QtPrivate::QSlotObjectBase::call (a=0x7fff45f7f000, r=0x55fd53661b80, this=0x55fd53b2a390) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#30 doActivate&lt;false&gt; (sender=0x55fd53295df0, signal_index=15, argv=0x7fff45f7f000) at kernel/qobject.cpp:3886
#31 0x00007fe7de7a2aa0 in ?? () from /lib64/libkontactprivate.so.5
#32 0x00007fe7dd3d6453 in QtPrivate::QSlotObjectBase::call (a=0x7fff45f7f110, r=0x55fd53295df0, this=0x55fd532dcc70) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#33 doActivate&lt;false&gt; (sender=0x55fd53843540, signal_index=4, argv=0x7fff45f7f110) at kernel/qobject.cpp:3886
#34 0x00007fe7dd3cf7af in QMetaObject::activate (sender=sender@entry=0x55fd53843540, m=m@entry=0x7fe7dd673e60 &lt;QItemSelectionModel::staticMetaObject&gt;, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff45f7f110) at kernel/qobject.cpp:3946
#35 0x00007fe7dd34a653 in QItemSelectionModel::currentChanged (this=this@entry=0x55fd53843540, _t1=..., _t2=...) at .moc/moc_qitemselectionmodel.cpp:482
#36 0x00007fe7dd34e039 in QItemSelectionModel::setCurrentIndex (this=0x55fd53843540, index=..., command=...) at itemmodels/qitemselectionmodel.cpp:1416
#37 0x00007fe7de7a7079 in ?? () from /lib64/libkontactprivate.so.5
#38 0x00007fe7de79a700 in Kontact::MainWindow::selectPlugin(KontactInterface::Plugin*) () from /lib64/libkontactprivate.so.5
#39 0x00007fe7de79b9cc in Kontact::MainWindow::loadSettings() () from /lib64/libkontactprivate.so.5
#40 0x00007fe7de79fba4 in Kontact::MainWindow::initObject() () from /lib64/libkontactprivate.so.5
#41 0x00007fe7de7a05fc in Kontact::MainWindow::MainWindow() () from /lib64/libkontactprivate.so.5
#42 0x000055fd5123d055 in ?? ()
#43 0x00007fe7de7683ae in KontactInterface::PimUniqueApplication::newInstance(QByteArray const&amp;, QStringList const&amp;, QString const&amp;) () from /lib64/libKF5KontactInterface.so.5
#44 0x00007fe7de76b253 in ?? () from /lib64/libKF5KontactInterface.so.5
#45 0x00007fe7de76b333 in KontactInterface::PimUniqueApplication::qt_metacall(QMetaObject::Call, int, void**) () from /lib64/libKF5KontactInterface.so.5
#46 0x00007fe7de5172db in QDBusConnectionPrivate::deliverCall (this=&lt;optimized out&gt;, object=&lt;optimized out&gt;, msg=..., metaTypes=..., slotIdx=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/tools/qvarlengtharray.h:189
#47 0x00007fe7de51ad4c in QDBusConnectionPrivate::activateCall (this=this@entry=0x7fe7a8004e80, object=0x7fff45f7fdb0, flags=81, msg=...) at qdbusintegrator.cpp:904
#48 0x00007fe7de51b5dd in QDBusConnectionPrivate::activateCall (msg=..., flags=&lt;optimized out&gt;, object=&lt;optimized out&gt;, this=0x7fe7a8004e80) at qdbusintegrator.cpp:853
#49 QDBusConnectionPrivate::activateObject (this=0x7fe7a8004e80, node=..., msg=..., pathStartPos=&lt;optimized out&gt;) at qdbusintegrator.cpp:1521
#50 0x00007fe7de51daf8 in QDBusActivateObjectEvent::placeMetaCall (this=0x55fd53be0820) at qdbusintegrator.cpp:1617
#51 0x00007fe7dd3cc28e in QObject::event (this=0x7fff45f7fdb0, e=0x55fd53be0820) at kernel/qobject.cpp:1314
#52 0x00007fe7ddf50b0f in QApplicationPrivate::notify_helper (this=&lt;optimized out&gt;, receiver=0x7fff45f7fdb0, e=0x55fd53be0820) at kernel/qapplication.cpp:3632
#53 0x00007fe7dd39fb5a in QCoreApplication::notifyInternal2 (receiver=0x7fff45f7fdb0, event=0x55fd53be0820) at kernel/qcoreapplication.cpp:1064
#54 0x00007fe7dd3a2b97 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55fd52e48e90) at kernel/qcoreapplication.cpp:1821
#55 0x00007fe7dd3f7c33 in postEventSourceDispatch (s=s@entry=0x55fd52f85870) at kernel/qeventdispatcher_glib.cpp:277
#56 0x00007fe7d3b64122 in g_main_dispatch (context=0x7fe7c4005010) at ../glib/gmain.c:3417
#57 g_main_context_dispatch (context=0x7fe7c4005010) at ../glib/gmain.c:4135
#58 0x00007fe7d3b644b8 in g_main_context_iterate (context=context@entry=0x7fe7c4005010, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4211
#59 0x00007fe7d3b6456f in g_main_context_iteration (context=0x7fe7c4005010, may_block=1) at ../glib/gmain.c:4276
#60 0x00007fe7dd3f72b4 in QEventDispatcherGlib::processEvents (this=0x55fd52f91560, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#61 0x00007fe7dd39e55b in QEventLoop::exec (this=this@entry=0x7fff45f7fc90, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#62 0x00007fe7dd3a6820 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#63 0x000055fd5123c000 in ?? ()
#64 0x00007fe7dccab630 in __libc_start_call_main (main=main@entry=0x55fd5123b650, argc=argc@entry=1, argv=argv@entry=0x7fff45f7ff58) at ../sysdeps/nptl/libc_start_call_main.h:58
#65 0x00007fe7dccab6f0 in __libc_start_main_impl (main=0x55fd5123b650, argc=1, argv=0x7fff45f7ff58, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fff45f7ff48) at ../csu/libc-start.c:392
#66 0x000055fd5123c635 in ?? ()
[Inferior 1 (process 9436) detached]

Possible duplicates by query: bug 436863, bug 421299, bug 415962, bug 410586, bug 404881.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2425660</commentid>
    <comment_count>1</comment_count>
    <who name="Andreas Hartmetz">ahartmetz</who>
    <bug_when>2025-05-19 18:27:45 +0000</bug_when>
    <thetext>Is this still reproducible?
By the way, the backtrace seems to be from KMail or something else with a GUI. The Akonadi server doesn&apos;t have a GUI.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>