Bug 503521 - Segmentation fault after logging in and a number of akonadi_imap_resources become active
Summary: Segmentation fault after logging in and a number of akonadi_imap_resources be...
Status: REPORTED
Alias: None
Product: kdepim
Classification: Applications
Component: general (other bugs)
Version First Reported In: 6.4.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-29 11:42 UTC by Freek de Kruijf
Modified: 2025-09-05 09:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Part of the content of /var/log/messages (13.78 KB, text/plain)
2025-09-05 09:21 UTC, Freek de Kruijf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Freek de Kruijf 2025-04-29 11:42:22 UTC
SUMMARY
Each time after logging in and after entering the passphrase for kdewallet quite a number of akonadi_imap_resource processes are started. Currently two of these processes do crash, not always the ones belonging to a certain imap server. So there is something randomness in which ones are crashing.

From one of these crashes today I have a .kcrash file - which will be an attachment- , but I have several similar files from earlier crashes.

Another observation of today is that one of the configurations for an imap server, I was unable to edit that configuration. A note was there that a password was missing. Logging out and in again solved that problem.

It looks as if there is some race condition when such an akonadi_imap_recource process wants to get the password from kdewallet.


STEPS TO REPRODUCE
1. Log into my account
2. Provide the kdewallet passphrase

OBSERVED RESULT
One or more akonadi_imap_resource processes do crash

EXPECTED RESULT
No crashes

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250427
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-9100 CPU @ 3.60GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Intel® UHD Graphics 630

ADDITIONAL INFORMATION
Comment 1 Freek de Kruijf 2025-04-29 11:44:45 UTC
Soon after the crashes, most of the time, all is OK again.
Comment 2 Freek de Kruijf 2025-06-24 09:30:36 UTC
Probably the cause is that there are connections to 10 IMAP servers, which could not be handled by kdewallet.
Today I got the message:

Problem with akonadi_imap_resource_10rc IMAP-account
Er was een fout bij het ophalen van het IMAP-wachtwoord uit de sleutelring van het systeem: "No such object path '/org/freedesktop/secrets/prompt/p0'" 

which translates as:

Problem with akonadi_imap_resource_10rc IMAP-account
An error occurred when retrieving the IMAP password from the system keychain: "No such object path '/org/freedesktop/secrets/prompt/p0'"

I have:
:~> ls -1 .config/akonadi_imap_resource_*rc
.config/akonadi_imap_resource_0rc
.config/akonadi_imap_resource_10rc
.config/akonadi_imap_resource_11rc
.config/akonadi_imap_resource_1rc
.config/akonadi_imap_resource_2rc
.config/akonadi_imap_resource_3rc
.config/akonadi_imap_resource_6rc
.config/akonadi_imap_resource_7rc
.config/akonadi_imap_resource_8rc
.config/akonadi_imap_resource_9rc
Comment 3 Freek de Kruijf 2025-09-05 09:20:12 UTC
I still have the same type of problem, after login and entering the passphrase for kwallet, the message:

Probleem met akonadi_imap_resource_12rc IMAP-account

Er was een fout bij het ophalen van het IMAP-wachtwoord uit de sleutelring van het systeem: "No such object path '/org/freedesktop/secrets/prompt/p2'" 

appears. In /var/log/messages I have quite a number of messages like the one in the attachment.
Comment 4 Freek de Kruijf 2025-09-05 09:21:27 UTC
Created attachment 184736 [details]
Part of the content of /var/log/messages