https://bugs.kde.org/show_bug.cgi?id=522615
Emerald Dragon <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #7 from Emerald Dragon <[email protected]> --- I am adding this report because my reproduction appears to match the reported kwalletd6 Secret Service memory leak, including recovery after restarting kwalletd6. I believe I am experiencing the same issue described in this report on Fedora 44 KDE Plasma. ## System information * Fedora Linux 44 KDE Plasma * Plasma version: 6.7.3 * KDE Frameworks version: 6.28.0 * Qt version: 6.11.1 * Kernel: 7.1.5-200.fc44.x86_64 * Graphics platform: Wayland Relevant packages: ```text kf6-kwallet-6.28.0-1.fc44.x86_64 kf6-kwallet-libs-6.28.0-1.fc44.x86_64 kf5-kwallet-5.116.0-5.fc44.x86_64 kf5-kwallet-libs-5.116.0-5.fc44.x86_64 kwalletmanager5-26.04.3-1.fc44.x86_64 pam-kwallet-6.7.3-1.fc44.x86_64 signon-kwallet-extension-26.04.3-1.fc44.x86_64 ``` Plasma packages are version: ```text 6.7.3-1.fc44.x86_64 ``` ## Symptoms After a period of normal desktop use, kwalletd6 gradually enters a bad state. Observed symptoms: * Applications using stored secrets begin failing. * NetworkManager fails to retrieve stored Wi-Fi credentials. * D-Bus requests to kwalletd6 eventually time out. * Secret Service-related errors appear continuously in the kwalletd6 journal. * Restarting kwalletd6 temporarily restores normal operation. ## Before restart The affected kwalletd6 process: ```text PID ELAPSED %CPU %MEM RSS 24379 1-14:18:42 25.1 2.9 976924 ``` At this point: * `kwalletd6` still owns the D-Bus name. * `ksecretd` is running and provides `org.freedesktop.secrets`. * The Secret Service interface can enumerate the `kdewallet` collection. * However, `kwalletd6` no longer responds to D-Bus calls. Examples: ```text busctl --user tree org.kde.kwalletd6 Failed to introspect object ...: Connection timed out ``` and: ```text busctl --user call org.kde.kwalletd6 ... Call failed: Connection timed out ``` ## Secret Service state `ksecretd` appears healthy. `busctl --user tree org.freedesktop.secrets` returns: ```text /org/freedesktop/secrets /collection/kdewallet ``` The collection contains items and reports: ```text Label: kdewallet Items: 15 Locked: true ``` This suggests the wallet database exists and the Secret Service layer is active, but kwalletd6 stops servicing requests. ## Journal messages The following messages appear repeatedly: ```text received unexpected result type ao from Completed signal instead of expected o g_task_return_error: assertion 'error != NULL' failed GTask secret_service_real_prompt_async finalized without ever returning ``` In addition, kwalletd6 emits a large number of Qt timer errors: ```text QObject::killTimer(): Error: timer id 721424634 is not valid for object 0x7ffe5c882450 (KWalletD, ), timer has not been killed QObject::killTimer(): Error: timer id 738201851 is not valid for object 0x7ffe5c882450 (KWalletD, ), timer has not been killed QObject::killTimer(): Error: timer id 754979068 is not valid for object 0x7ffe5c882450 (KWalletD, ), timer has not been killed ... ``` These appear in a rapid sequence with increasing invalid timer IDs, all referencing the same `KWalletD` object. ## Recovery Restarting kwalletd6 restores functionality: ```bash systemctl --user restart 'dbus-:[email protected]' ``` After restart: ```text PID ELAPSED %CPU %MEM RSS 58780 01:17 22.9 0.3 118784 ``` D-Bus introspection works again: ```text busctl --user tree org.kde.kwalletd6 ``` returns: ```text /MainApplication /modules /modules/kwalletd5 /modules/kwalletd6 /org/kde/kwalletd ``` The KWallet password prompt appears after restart, which is expected because the daemon's unlocked in-memory session is lost. ## Additional observation The issue appears to recur after additional uptime. The restart is a temporary recovery, not a permanent fix. The behavior appears consistent with a Secret Service session/prompt handling problem causing kwalletd6 resource growth and eventual loss of D-Bus responsiveness. -- You are receiving this mail because: You are watching all bug changes.
