[Bug] KMail2/Kontact

I updated packages today and there is what I’ve got:

~> kontact
kf.iconthemes: Icon theme “AdwaitaLegacy” not found.
org.kde.pim.pimcommonactivities: Plasma activities is not running: 1
corrupted double-linked list
*** KMail got signal 6 (Exiting)
Budzik kontact

Budzik means alert/ringbell.

I attach backtrace:

Thread 1 “kmail” received signal SIGABRT, Aborted.
Downloading 4.48 K source file /usr/src/debug/glibc-2.44/nptl/pthread_kill.c
__pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
Missing separate debuginfos, use: zypper install kmail-debuginfo-26.08.2-2.1.x86_64 libKF6TextAddons1-debuginfo-2.2.0-2.2.x86_64 libopenh264-8-debuginfo-2.6.0-2.suse1699.10.x86_64 libavcodec62-debuginfo-8.1.3-3.1.x86_64 libavformat62-debuginfo-8.1.3-3.1.x86_64 libavutil60-debuginfo-8.1.3-3.1.x86_64 libswresample6-debuginfo-8.1.3-3.1.x86_64
(gdb) backtrace
#0 __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007fffe86a0aa3 in __pthread_kill_internal (threadid=, signo=6) at pthread_kill.c:89
#2 0x00007fffe86433c6 in __GI_raise (sig=sig@entry=6) at …/sysdeps/posix/raise.c:26
#3 0x00007fffe862951d in __GI_abort () at abort.c:77
#4 0x00007fffe862a579 in __libc_message_impl (vma_name=vma_name@entry=0x7fffe87c5a16 “glibc: fatal”, fmt=fmt@entry=0x7fffe87c909e “%s\n”)
at …/sysdeps/posix/libc_fatal.c:138
#5 0x00007fffe86abe5e in __libc_message_wrapper (vmaname=0x7fffe87c5a16 “glibc: fatal”, fmt=0x7fffe87c909e “%s\n”) at …/include/stdio.h:203
#6 malloc_printerr (str=str@entry=0x7fffe87c6dd9 “corrupted double-linked list”) at malloc.c:5093
#7 0x00007fffe86ac584 in unlink_chunk (p=p@entry=0x555558783ae0, av=0x7fffe8803b00 <main_arena>) at malloc.c:1434
#8 0x00007fffe86aee97 in _int_malloc (av=av@entry=0x7fffe8803b00 <main_arena>, bytes=bytes@entry=36) at malloc.c:3953
#9 0x00007fffe86af0da in __libc_malloc2 (bytes=36) at malloc.c:3081
#10 0x00007fffe913bebf in allocateHelper (dptr=0x7fffffffb5f0, objectSize=1, alignment=16, capacity=18, option=)
at /usr/src/debug/qtbase-everywhere-src-6.11.2/src/corelib/tools/qarraydata.cpp:179
#11 QArrayData::allocate1 (dptr=0x7fffffffb5f0, capacity=, option=)
at /usr/src/debug/qtbase-everywhere-src-6.11.2/src/corelib/tools/qarraydata.cpp:206
#12 0x00007fffe90b7407 in QTypedArrayData::allocate (capacity=18, option=QArrayData::KeepSize)
at /usr/src/debug/qtbase-everywhere-src-6.11.2/src/corelib/tools/qarraydata.h:150
#13 QArrayDataPointer::QArrayDataPointer (this=, alloc=18, n=18, option=QArrayData::KeepSize)
at /usr/src/debug/qtbase-everywhere-src-6.11.2/src/corelib/tools/qarraydatapointer.h:59
#14 QByteArray::QByteArray (this=, data=, size=, this=, data=,
size=) at /usr/src/debug/qtbase-everywhere-src-6.11.2/src/corelib/text/qbytearray.cpp:1846
#15 0x00007fffe65c0d71 in QByteArray::QByteArray (this=0x7fffffffb7f0, v=…) at /usr/include/qt6/QtCore/qbytearray.h:95
#16 QByteArrayView::toByteArray (this=0x7fffffffb700) at /usr/include/qt6/QtCore/qbytearray.h:841
–Type for more, q to quit, c to continue without paging–
#17 KConfigIniBackend::parseConfig (this=0x7fffffffb8f0, currentLocale=…, entryMap=…, options=…, merging=false)
at /usr/src/debug/kconfig-6.31.0/src/core/kconfigini.cpp:266
#18 0x00007fffe65a1443 in KConfigIniBackend::parseConfig (this=0x7fffffffb8f0, currentLocale=…, entryMap=…, options=…)
at /usr/src/debug/kconfig-6.31.0/src/core/kconfigini.cpp:35
#19 KConfigPrivate::parseGlobalUserFiles (this=0x555557bc3a50) at /usr/src/debug/kconfig-6.31.0/src/core/kconfig.cpp:838
#20 KConfig::reparseConfiguration (this=) at /usr/src/debug/kconfig-6.31.0/src/core/kconfig.cpp:729
#21 0x00007fffe65c4b28 in KSharedConfig::KSharedConfig (this=0x5555580443b0, fileName=…, flags=…,
resType=QStandardPaths::GenericConfigLocation) at /usr/src/debug/kconfig-6.31.0/src/core/ksharedconfig.cpp:185
#22 KSharedConfig::openConfig (_fileName=…, flags=…, resType=QStandardPaths::GenericConfigLocation)
at /usr/src/debug/kconfig-6.31.0/src/core/ksharedconfig.cpp:153
#23 0x00007fffdc5ae4ea in TextAutoGenerateTextMcpProtocolCore::McpServerManager::loadServers() ()
from /lib64/libKF6TextAutoGenerateTextMcpProtocolCore.so.1
#24 0x00007fffe0190c63 in TextAutoGenerateText::TextAutoGenerateManager::TextAutoGenerateManager(QObject*) ()
from /lib64/libKF6TextAutoGenerateText.so.1
#25 0x00007fffd8097ac0 in AutoGenerateAnswersEditor::AutoGenerateAnswersEditor (this=this@entry=0x5555587a91e0,
parent=parent@entry=0x7fffe85ffd20 MessageComposer::PluginEditorManager::self()::s_self)
at /usr/src/debug/kdepim-addons-26.08.2/kmail/editorplugins/autogenerateanswers/autogenerateanswerseditor.cpp:16
#26 0x00007fffd8097cc0 in KPluginFactory::createInstance<AutoGenerateAnswersEditor, QObject> (parent=, args=…)
at /usr/include/KF6/KCoreAddons/kpluginfactory.h:640
#27 0x00007fffe858308a in KPluginFactory::createMessageComposer::PluginEditor (this=0x5555586ea180,
parent=0x7fffe85ffd20 MessageComposer::PluginEditorManager::self()::s_self, args=…) at /usr/include/KF6/KCoreAddons/kpluginfactory.h:683
#28 KPluginFactory::instantiatePluginMessageComposer::PluginEditor (data=…,
parent=0x7fffe85ffd20 MessageComposer::PluginEditorManager::self()::s_self, args=…) at /usr/include/KF6/KCoreAddons/kpluginfactory.h:421
–Type for more, q to quit, c to continue without paging–
#29 MessageComposer::PluginEditorManagerPrivate::loadPlugin (this=, item=0x555557c9ae10)
at /usr/src/debug/messagelib-26.08.2/messagecomposer/src/plugineditor/plugineditormanager.cpp:108
#30 MessageComposer::PluginEditorManagerPrivate::initializePlugins (this=this@entry=0x7fffd40295d0)
at /usr/src/debug/messagelib-26.08.2/messagecomposer/src/plugineditor/plugineditormanager.cpp:102
#31 0x00007fffe8585195 in MessageComposer::PluginEditorManagerPrivate::PluginEditorManagerPrivate (this=0x7fffd40295d0,
qq=0x7fffe85ffd20 MessageComposer::PluginEditorManager::self()::s_self)
at /usr/src/debug/messagelib-26.08.2/messagecomposer/src/plugineditor/plugineditormanager.cpp:46
#32 MessageComposer::PluginEditorManager::PluginEditorManager (this=, parent=, this=,
parent=) at /usr/src/debug/messagelib-26.08.2/messagecomposer/src/plugineditor/plugineditormanager.cpp:157
#33 0x00007fffe858520e in MessageComposer::PluginEditorManager::self ()
at /usr/src/debug/messagelib-26.08.2/messagecomposer/src/plugineditor/plugineditormanager.cpp:165
#34 0x00007ffff7c0b4af in ?? () from /lib64/libkmailprivate.so.6
#35 0x00007ffff7bad5b9 in ?? () from /lib64/libkmailprivate.so.6
#36 0x00007ffff7ba513c in ?? () from /lib64/libkmailprivate.so.6
#37 0x00007ffff7ba5fd3 in KMail::makeComposer(std::shared_ptrKMime::Message const&, bool, bool, KMail::Composer::TemplateContext, unsigned int, QString const&, QString const&) () from /lib64/libkmailprivate.so.6
#38 0x00007ffff7c36b95 in KMKernel::recoverDeadLetters() () from /lib64/libkmailprivate.so.6
#39 0x00005555555587d9 in main (argc=, argv=) at /usr/src/debug/kmail-26.08.2/src/main.cpp:179

Looks like it could be a wrong config string, try making backup of your old config or moving it out of the way from ~/.config/kmail/*

@Lachu:

In addition, please check the status of the “adwaita-icon-theme-legacy” package.
You may have to also check the output of the following commands:

 # zypper verify
 # zypper packages --unneeded
 # zypper packages --orphaned

If you have SELinux enabled on your system, you may have to do some housekeeping –

  • Take a look at the “restorecon” and “restorecon_xattr” man pages.

I do not have ~/.config/kmail directory. Only ~/.config/kmail2rc. Moving file only reset my configuration. It still crash, but removing cache (rm -rf ~/.cache/* ) helps. So I close kontact and restore ~/.config/kmail2rc. It now launch, but It seems it now crash on shutdown, like many months ago.

After closing it and try to launch again, the problem appears again. Maybe it is caused by crash on close, so cache is corrupted?

Note there is also ~/.local/share/state :face_with_spiral_eyes:

Problem was existing, but I tried to run it with gdb. Closes normally and after this everything worked. I think it is race condition and running it via gdb solves that and now everything worked, because cache is correct. Odd.

I ran into the same issue, and after years and years of very stable experience, there now are quite some issues. The 1st time exiting Kontact crashing is one, Filters not working, at least not all, a second, Menu having duplicates a third. I did file a bugreport, but the snarky way it was received, did not really encourage me to report more.

Agreed – one has to handle the KDE Plasma developers with silk gloves – they do tend to bite if they perceive an unfriendly Change Request or Bug Report …

  • Possibly due to more than a few impolite complaints they’ve received over the last decade or so …

On the other hand, this Bug Report begun 2018 makes interesting reading – <Akregator crashes after clicking on link in an open tab>.

Feeding the code and backtrace to claude I was given the following:
" The crash chain is: Chromium calls acceptNavigationRequest() synchronously from inside its navigation-throttle machinery while a link is clicked → that emits urlClicked directly (same-thread, direct connection) → slotLinkClicked → openSafeUrl → signalOpenUrlRequest → FrameManager::openUrl → WebEngineFrame::openUrl → load() on the same page, before acceptNavigationRequest() has even returned. That re-enters WebContentsAdapter::load() and tears down the in-flight NavigationRequest/InterceptNavigationThrottle while it’s still executing — which is exactly the CHECK() that aborts in your backtrace (frames 0-4).

The fix is to defer the link-click handling so it runs after the navigation-cancellation unwinds, instead of re-entering load() synchronously from inside acceptNavigationRequest."

And, as for the recent issue with KDE Plasma Kontact due to the Tumbleweed snapshot 20261011, I wish to point out that, Fabian Vogt played a major role in –

a) finding the root cause and,
b) quickly resolving the issue for the case of Tumbleweed; and,
c) moving the root cause back to the KDE Plasma developers.

  • I opened 2 Bug Reports in parallel for this issue – the 1st in the KDE Bug Tracker and, the 2nd in the opeSUSE Bug Tracker and, unfortunately, triggered a root cause ping-pong between the KDE folks and the openSUSE team … :grimacing:

Bottom line: dealing with the KDE folks needs an awful amount of diplomacy and, “A little bit of help from your friends” … :wink:

Heads up on the latest – since today – KMail issue which appeared with the Tumbleweed snapshot 20261014:


By the way, I’m using my MacBook Air and Apple Mail to monitor my e-Mail accounts until such time as KMail gets out of it’s sick bed … :smiling_imp:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.