Bug 503290 - akonadi resource crashed when user still unlocking wallet
Summary: akonadi resource crashed when user still unlocking wallet
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
: 504550 505418 505572 505829 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-04-24 14:38 UTC by Bruno Friedmann
Modified: 2025-07-24 07:27 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 25.04.03
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/132928/events/e9b90f68d91c447a9b6c42cf335361bb/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Friedmann 2025-04-24 14:38:49 UTC
Application: akonadi_imap_resource (6.4.0 (25.04.0))

ApplicationNotResponding [ANR]: false
Qt Version: 6.9.0
Frameworks Version: 6.13.0
Operating System: Linux 6.14.2-1-default x86_64
Windowing System: Wayland
Distribution: "openSUSE Tumbleweed"
DrKonqi: 6.3.4 [KCrashBackend]

-- Information about the crash:
After a laptop crash, the main postgresql server was still recovering when desktop start and akonadi get started.
Unusually the wallet ask for unlocking password, I was typing it, when all akonadi resources crash one each after the other.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: 0_bruno (akonadi_imap_resource), signal: Segmentation fault

[KCrash Handler]
#7  0x00007fa3fac7815d in QKeychain::Job::emitFinishedWithError (this=0x5575cd9e6a40, error=QKeychain::EntryNotFound, errorString=...) at /usr/src/debug/qtkeychain-0.15.0/qtkeychain/keychain.cpp:66
#8  0x00007fa3fac7cde4 in on_password_lookup (source=<optimized out>, result=<optimized out>, inst=0x5575cd922760) at /usr/src/debug/qtkeychain-0.15.0/qtkeychain/libsecret.cpp:119
#9  0x00007fa3f54c9124 in g_task_return_now (task=0x5575cd9e9300) at ../gio/gtask.c:1363
#10 0x00007fa3f54c9d73 in g_task_return (type=<optimized out>, task=0x5575cd9e9300) at ../gio/gtask.c:1432
#11 g_task_return (task=0x5575cd9e9300, type=<optimized out>) at ../gio/gtask.c:1389
#12 0x00007fa3d840ed14 in on_lookup (source=0x7fa3ec008a40, result=0x5575cd9b4ee0, user_data=0x5575cd9e9300) at ../libsecret/secret-password.c:678
#13 0x00007fa3f54c9124 in g_task_return_now (task=0x5575cd9b4ee0) at ../gio/gtask.c:1363
#14 0x00007fa3f54c9d73 in g_task_return (type=<optimized out>, task=0x5575cd9b4ee0) at ../gio/gtask.c:1432
#15 g_task_return (task=0x5575cd9b4ee0, type=<optimized out>) at ../gio/gtask.c:1389
#16 0x00007fa3d8412474 in on_lookup_searched (source=0x7fa3ec008a40, result=0x5575cd9a5d50, user_data=0x5575cd9b4ee0) at ../libsecret/secret-methods.c:1385
#17 0x00007fa3f54c9124 in g_task_return_now (task=0x5575cd9a5d50) at ../gio/gtask.c:1363
#18 0x00007fa3f54c9d73 in g_task_return (type=<optimized out>, task=0x5575cd9a5d50) at ../gio/gtask.c:1432
#19 g_task_return (task=0x5575cd9a5d50, type=<optimized out>) at ../gio/gtask.c:1389
#20 0x00007fa3d840a362 in on_search_items_complete (source=<optimized out>, result=<optimized out>, user_data=0x5575cd9a5d50) at ../libsecret/secret-paths.c:296
#21 0x00007fa3f54c9124 in g_task_return_now (task=0x5575cd7beea0) at ../gio/gtask.c:1363
#22 0x00007fa3f54c9d73 in g_task_return (type=<optimized out>, task=0x5575cd7beea0) at ../gio/gtask.c:1432
#23 g_task_return (task=0x5575cd7beea0, type=<optimized out>) at ../gio/gtask.c:1389
#24 0x00007fa3f55335ac in reply_cb (connection=<optimized out>, res=<optimized out>, user_data=0x5575cd7beea0) at ../gio/gdbusproxy.c:2557
#25 0x00007fa3f54c9124 in g_task_return_now (task=0x5575cd9e9410) at ../gio/gtask.c:1363
#26 0x00007fa3f54c9d73 in g_task_return (type=<optimized out>, task=0x5575cd9e9410) at ../gio/gtask.c:1432
#27 g_task_return (task=0x5575cd9e9410, type=<optimized out>) at ../gio/gtask.c:1389
#28 0x00007fa3f552643a in g_dbus_connection_call_done (source=0x5575cd9b03a0, result=<optimized out>, user_data=0x5575cd9e9410) at ../gio/gdbusconnection.c:6489
#29 0x00007fa3f54c9124 in g_task_return_now (task=0x5575cd9e2610) at ../gio/gtask.c:1363
#30 0x00007fa3f54c9159 in complete_in_idle_cb (task=0x5575cd9e2610) at ../gio/gtask.c:1377
#31 0x00007fa3f75b3d4e in ??? () at /lib64/libglib-2.0.so.0
#32 0x00007fa3f75b6678 in ??? () at /lib64/libglib-2.0.so.0
#33 0x00007fa3f75b83d8 in ??? () at /lib64/libglib-2.0.so.0
#34 0x00007fa3f75b8bec in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#35 0x00007fa3f8c1a013 in QEventDispatcherGlib::processEvents (this=0x5575cd7a1130, flags=...) at /usr/src/debug/qtbase-everywhere-src-6.9.0/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#36 0x00007fa3f89c24db in QEventLoop::exec (this=0x7ffc60820250, flags=...) at /usr/src/debug/qtbase-everywhere-src-6.9.0/src/corelib/global/qflags.h:77
#37 0x00007fa3f89baddc in QCoreApplication::exec () at /usr/src/debug/qtbase-everywhere-src-6.9.0/src/corelib/global/qflags.h:77
#38 0x00005575a57aaeb6 in Akonadi::AgentBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KPim6/AkonadiAgentBase/akonadi/agentbase.h:444
#39 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-runtime-25.04.0/resources/imap/main.cpp:9
[Inferior 1 (process 2590) detached]

Reported using DrKonqi
Comment 1 michaelk83 2025-06-22 18:04:27 UTC
*** Bug 505418 has been marked as a duplicate of this bug. ***
Comment 2 michaelk83 2025-06-22 18:05:33 UTC
*** Bug 504550 has been marked as a duplicate of this bug. ***
Comment 3 michaelk83 2025-06-22 18:06:12 UTC
*** Bug 505572 has been marked as a duplicate of this bug. ***
Comment 4 michaelk83 2025-06-22 18:06:42 UTC
*** Bug 505829 has been marked as a duplicate of this bug. ***
Comment 5 Carl Schwan 2025-06-22 20:56:01 UTC
A patch to fix the issue: https://github.com/frankosterfeld/qtkeychain/pull/271
Comment 6 Carl Schwan 2025-06-24 22:03:34 UTC
Fixed with https://invent.kde.org/pim/kdepim-runtime/-/merge_requests/245

Should be in 24.04.03 or ealier as I asked packagers to backport the fix