Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Thomas Moore
Sat, 24 Oct 2026 03:40
Bug#1151868: libqt6keychain1: isKwalletAvailable() blocks the GUI thread for 25 s while kwalletd has an unlock dialog open
Author: Thomas Moore
Date: Sat, 24 Oct 2026 03:40
Date: Sat, 24 Oct 2026 03:40
159 lines
8867 bytes
8867 bytes
------=_Part_286555_1710189514.1792812965640 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Source: qtkeychain Version: 0.17.0-1 Severity: normal Tags: upstream fixed-upstream Hi, Since 0.16.0, isKwalletAvailable() in qtkeychain/keychain_unix.cpp makes a blocking call to org.kde.KWallet.networkWallet with the default 25 second D-Bus timeout. It runs inline on the first keychain job, which is usually t= he application's GUI thread, so the application freezes until the call times o= ut. kwalletd stops answering application-level D-Bus calls while an unlock dial= og is open for any client. That happens at login when the wallet password diff= ers from the login password, because kwallet-pam can't open the wallet. Several autostarted applications can then ask for it at once, and any that probe behind the dialog stall. In plasmashell that freezes the whole shell. With the wallet locked and a dialog opened by another client, I measured: =C2=A0 org.freedesktop.DBus.Peer.Ping=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 0 ms=C2=A0=C2=A0 reply =C2=A0 org.kde.KWallet.networkWallet=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 25301 ms= =C2=A0=C2=A0 NoReply A Qt event loop with a 100 ms heartbeat went 25305 ms between ticks, so tha= t call accounts for the whole freeze. Upstream fixed it by probing with org.freedesktop.DBus.Peer.Ping instead. T= he QtDBus layer answers Ping, and it still triggers D-Bus activation. =C2=A0 commit: https://github.com/frankosterfeld/qtkeychain/commit/007abb86= 535c6e112d7c0d32ad5372302619b509=20 =C2=A0 PR:=C2=A0=C2=A0=C2=A0=C2=A0 https://github.com/frankosterfeld/qtkeyc= hain/pull/304=20 =C2=A0 issue:=C2=A0 https://github.com/frankosterfeld/qtkeychain/issues/303= =20 No tagged release has it yet. Once this has a bug number I'll send the comm= it as a quilt patch against 0.17.0. I reproduced this on Kubuntu 26.10 with kwalletd6 4:26.08.0-0ubuntu1 and libqt6keychain1 0.17.0-1. I haven't run it on Debian. Testing and unstable have the same qtkeychain 0.17.0-1, so I expect the same behaviour, but that comes from the version number, not a test. Debian 13 has 0.15.0, which predates the regression. Full analysis and repro steps are in the Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/qtkeychain/+bug/2165214=20 Thomas Moore (realstuffie) ------=_Part_286555_1710189514.1792812965640 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>= <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h= ead><body ><div style=3D"font-family: Verdana, Arial, Helvetica, sans-serif= ; font-size: 10pt;"><div>Source: qtkeychain<br></div><div>Version: 0.17.0-1= <br></div><div>Severity: normal<br></div><div>Tags: upstream fixed-upstream= <br></div><div><br></div><div>Hi,<br></div><div><br></div><div>Since 0.16.0= , isKwalletAvailable() in qtkeychain/keychain_unix.cpp makes a<br></div><di= v>blocking call to org.kde.KWallet.networkWallet with the default 25 second= <br></div><div>D-Bus timeout. It runs inline on the first keychain job, whi= ch is usually the<br></div><div>application's GUI thread, so the applicatio= n freezes until the call times out.<br></div><div><br></div><div>kwalletd s= tops answering application-level D-Bus calls while an unlock dialog<br></di= v><div>is open for any client. That happens at login when the wallet passwo= rd differs<br></div><div>from the login password, because kwallet-pam can't= open the wallet. Several<br></div><div>autostarted applications can then a= sk for it at once, and any that probe<br></div><div>behind the dialog stall= . In plasmashell that freezes the whole shell.<br></div><div><br></div><div= >With the wallet locked and a dialog opened by another client, I measured:<= br></div><div><br></div><div> org.freedesktop.DBus.Peer.Ping &nb= sp; 0 ms reply<br></div><di= v> org.kde.KWallet.networkWallet 25301 = ms NoReply<br></div><div><br></div><div>A Qt event loop with a = 100 ms heartbeat went 25305 ms between ticks, so that<br></div><div>call ac= counts for the whole freeze.<br></div><div><br></div><div>Upstream fixed it= by probing with org.freedesktop.DBus.Peer.Ping instead. The<br></div><div>= QtDBus layer answers Ping, and it still triggers D-Bus activation.<br></div= ><div><br></div><div> commit: <a target=3D"_blank" href=3D"https://gi= thub.com/frankosterfeld/qtkeychain/commit/007abb86535c6e112d7c0d32ad5372302= 619b509">https://github.com/frankosterfeld/qtkeychain/commit/007abb86535c6e= 112d7c0d32ad5372302619b509</a><br></div><div> PR: &n= bsp; <a target=3D"_blank" href=3D"https://github.com/frankosterfeld/qtkeych= ain/pull/304">https://github.com/frankosterfeld/qtkeychain/pull/304</a><br>= </div><div> issue: <a target=3D"_blank" href=3D"https://github.= com/frankosterfeld/qtkeychain/issues/303">https://github.com/frankosterfeld= /qtkeychain/issues/303</a><br></div><div><br></div><div>No tagged release h= as it yet. Once this has a bug number I'll send the commit<br></div><div>as= a quilt patch against 0.17.0.<br></div><div><br></div><div>I reproduced th= is on Kubuntu 26.10 with kwalletd6 4:26.08.0-0ubuntu1 and<br></div><div>lib= qt6keychain1 0.17.0-1. I haven't run it on Debian. Testing and unstable<br>= </div><div>have the same qtkeychain 0.17.0-1, so I expect the same behaviou= r, but that<br></div><div>comes from the version number, not a test. Debian= 13 has 0.15.0, which<br></div><div>predates the regression.<br></div><div>= <br></div><div>Full analysis and repro steps are in the Ubuntu bug:<br></di= v><div><a target=3D"_blank" href=3D"https://bugs.launchpad.net/ubuntu/+sour= ce/qtkeychain/+bug/2165214">https://bugs.launchpad.net/ubuntu/+source/qtkey= chain/+bug/2165214</a><br></div><div><br></div><div>Thomas Moore (realstuff= ie)<br></div></div><br></body></html> ------=_Part_286555_1710189514.1792812965640--
Bug#1151868: patch to cherry-pick the upstream fix
Author: Thomas Moore
Date: Sat, 24 Oct 2026 04:00
Date: Sat, 24 Oct 2026 04:00
29 lines
4431 bytes
4431 bytes
------=_Part_286590_1822510466.1792813147372 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Control: tag -1 patch Hi all, Attached is the upstream fix (commit 007abb8, merged 2026-10-23) as a quilt patch against 0.17.0. It goes in debian/patches/ and the series file. Drop it once a release that includes the commit is packaged. The DEP-3 header has Origin: upstream and the bug links. Thomas Moore (realstuffie) ------=_Part_286590_1822510466.1792813147372 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Control: tag -1 patch<br></div><div><br></div><div>Hi all,<br></div><div><br></div><div>Attached is the upstream fix (commit 007abb8, merged 2026-10-23) as a quilt<br></div><div>patch against 0.17.0. It goes in debian/patches/ and the series file. Drop it<br></div><div>once a release that includes the commit is packaged. The DEP-3 header has<br></div><div>Origin: upstream and the bug links.<br></div><div><br></div><div>Thomas Moore (realstuffie)</div></div><br></body></html> ------=_Part_286590_1822510466.1792813147372--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads