Kmail crashes randomly, but often -- how to disable drkonqi?

Tumbleweed on an x86_64 Thinkpad, up-to-date.

Kmail crashes since yesterday randomly and often. Error message:

KCrash: Application ‘kmail’ crashing… crashRecursionCounter = 2
You’ve mistakenly made a global color change to gray 0 within nested colors
on page 1. Will try to recover.
dvips: Problems with file writing; probably disk full.
Speicherzugriffsfehler (Speicherabzug geschrieben)

The disk isn’t full (hundreds of GB free).

OK, DrKonqi sends crash messages. But since kmail crashes every hour, DrKonqi causes high load on the machine, making it even more difficult to go on working.

So, for the time being, after the PC sent at least five crash reports, how can I disable that behaviour?

Instead of shooting the messenger i would try to find out why kmail crashes. There are several hints which should be investigated…

What changed since yesterday? Updates? Colors schemes? File permissions? Disk space? What did you change on your system yesterday? Does it also happen with a fresh user profile? How do you upgrade your system? Do you have additional 3rd party/home/developement repos? …

But if you insist…drkonqi6 can be uninstalled.

Use a dropin file (/etc/systemd/coredump.conf.d/custom.conf):

erlangen:~ # systemd-analyze cat-config systemd/coredump.conf
# /usr/lib/systemd/coredump.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file (or a copy of it placed in
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in
# the /etc/systemd/coredump.conf.d/ directory. The latter is generally
# recommended. Defaults can be restored by simply deleting the main
# configuration file and all drop-ins located in /etc/.
#
# Use 'systemd-analyze cat-config systemd/coredump.conf' to display the full config.
#
# See coredump.conf(5) for details.

[Coredump]
#Storage=external
#Compress=yes
# On 32-bit, the default is 1G instead of 32G.
#ProcessSizeMax=32G
#ExternalSizeMax=32G
#JournalSizeMax=767M
#MaxUse=
#KeepFree=
#EnterNamespace=no

# /etc/systemd/coredump.conf.d/custom.conf
[Coredump]
Storage=none
ProcessSizeMax=0
erlangen:~ # 

https://www.cyberciti.biz/faq/disable-core-dumps-in-linux-with-systemd-sysctl/

Thanks for suggestions. As nobody else seemed to be bitten by a crashing kmail, I reinstalled tumbleweed from scratch this afternoon. There were more glitches and now, after two and a half hours everything is back to normal, except that the letters on the screen seem to be cleaner. In Emacs it really makes a difference.

Every four or five years it’s worth the time and effort.

1 Like

Nice exercise! There was some abnormal activity on Infamous Host Erlangen too:

erlangen:~ # journalctl -q --identifier systemd-coredump -g processing...|grep -E 'akonadi|kmail'
Aug 02 08:37:39 erlangen systemd-coredump[245919]: Process 242876 (kmail) of user 1000 terminated abnormally with signal 7/BUS, processing...
Aug 15 07:33:13 erlangen systemd-coredump[17638]: Process 2119 (kmail) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Aug 21 03:39:26 erlangen systemd-coredump[16925]: Process 16923 (akonadictl) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Aug 21 03:40:32 erlangen systemd-coredump[19617]: Process 19615 (akonadictl) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Aug 26 19:51:35 erlangen systemd-coredump[200268]: Process 166838 (kmail) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Jan 22 05:14:08 erlangen systemd-coredump[1292678]: Process 420585 (kmail) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Mar 16 17:50:14 erlangen systemd-coredump[477709]: Process 407813 (kmail) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Mar 17 12:21:54 erlangen systemd-coredump[74677]: Process 8477 (kmail) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Mar 17 21:52:32 erlangen systemd-coredump[82481]: Process 74743 (kmail) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Mar 18 12:56:51 erlangen systemd-coredump[138496]: Process 82582 (kmail) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Mar 18 15:37:07 erlangen systemd-coredump[165358]: Process 138565 (kmail) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 15:57:39 erlangen systemd-coredump[249486]: Process 249473 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 15:59:53 erlangen systemd-coredump[259929]: Process 259916 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 15:59:56 erlangen systemd-coredump[259989]: Process 259975 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 15:59:59 erlangen systemd-coredump[260204]: Process 260191 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:11:48 erlangen systemd-coredump[306940]: Process 306927 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:14:01 erlangen systemd-coredump[317378]: Process 317365 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:14:04 erlangen systemd-coredump[317435]: Process 317422 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:14:07 erlangen systemd-coredump[317648]: Process 317635 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:27:51 erlangen systemd-coredump[373500]: Process 373487 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:27:54 erlangen systemd-coredump[373561]: Process 373548 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:27:57 erlangen systemd-coredump[373777]: Process 373764 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:39:41 erlangen systemd-coredump[418932]: Process 418919 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:41:52 erlangen systemd-coredump[429359]: Process 429346 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:41:56 erlangen systemd-coredump[429447]: Process 429434 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:41:58 erlangen systemd-coredump[429669]: Process 429656 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:53:40 erlangen systemd-coredump[474577]: Process 474564 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:55:44 erlangen systemd-coredump[484952]: Process 484939 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:55:47 erlangen systemd-coredump[485008]: Process 484995 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 16:55:50 erlangen systemd-coredump[485218]: Process 485205 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:07:32 erlangen systemd-coredump[530461]: Process 530448 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:09:44 erlangen systemd-coredump[540875]: Process 540862 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:09:47 erlangen systemd-coredump[540931]: Process 540918 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:09:49 erlangen systemd-coredump[541142]: Process 541129 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:21:28 erlangen systemd-coredump[585992]: Process 585979 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:23:39 erlangen systemd-coredump[596367]: Process 596354 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:23:42 erlangen systemd-coredump[596451]: Process 596438 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:23:45 erlangen systemd-coredump[596662]: Process 596649 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:37:25 erlangen systemd-coredump[651858]: Process 651845 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:37:28 erlangen systemd-coredump[651915]: Process 651902 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:37:31 erlangen systemd-coredump[652126]: Process 652113 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:49:00 erlangen systemd-coredump[696988]: Process 696975 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:51:13 erlangen systemd-coredump[707366]: Process 707353 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:51:16 erlangen systemd-coredump[707422]: Process 707409 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 17:51:18 erlangen systemd-coredump[707633]: Process 707620 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 18:02:55 erlangen systemd-coredump[752588]: Process 752575 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 18:05:05 erlangen systemd-coredump[763041]: Process 763028 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 18:05:08 erlangen systemd-coredump[763097]: Process 763084 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 18 18:05:11 erlangen systemd-coredump[763310]: Process 763297 (akonadi_html_to) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Mar 19 11:04:18 erlangen systemd-coredump[64099]: Process 2181 (kmail) of user 1000 terminated abnormally with signal 11/SEGV, processing...
erlangen:~ # 

I ran akonadictl fsck and akonadictl vacuum which stopped akonadi dumping core. When kmail still dumped core I ran zypper ps -s and found lots of processes using deleted files. I opted for reboot which stopped core dumping at all so far.

Kmail search in some 9 GiB of local mail was sluggish on Mar 18. Now it’s fast again as it has been since a decade.

Happening on the new install again, posted bug report. 1239975 – kmail crashes when saving file in okular, which was attached to email

Regarding baloo search: I’ve got around 30 GB Mails on the system. Once in a while I delete the baloo database (for any other reader except Karl: don’t delete your emails!!!) and rebuild it, which makes it much faster and smaller.

Seems to be fixed. At least kmail stopped crashing today.

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