Kubuntu 26.04 “resolute” (Wayland). KWallet is Blowfish-encrypted
(password-based) . I installed kwalletcli 3.04beta-1~ppa2604 from
ppa:mirabilos/exp to test the fix . GnuPG version is 2.4.8-4ubuntu2.

Configuration:

    ~/.gnupg/gpg-agent.conf contains:
    pinentry-program /usr/bin/pinentry-kwallet
    debug-level guru

Reproducer:

    Confirm PINENTRY is not set:
    printf 'PINENTRY=<%s>\n' "$PINENTRY"
    Expected: PINENTRY=<> (empty)
    Actual: PINENTRY=<> (empty)
     

    Trigger a prompt via gpg-agent:
    timeout 30s sh -c 'printf test | gpg --clearsign >/dev/null'
    Expected: a pinentry prompt appears and the command completes.
    Actual: no prompt appears; the command hangs until killed by timeout (gpg 
prints “signal Terminated caught ... exiting”).

Logs:
After reproducing:
  journalctl --user -u gpg-agent --since "5 minutes ago" | tail -n 200

I consistently see gpg-agent starting and invoking pinentry-kwallet,
followed by:

    E: /usr/bin/pinentry-kwallet: have_lc_type: inaccessible or not found
    W: unknown GETINFO capability: GETINFO flavor
    W: unknown GETINFO capability: GETINFO ttyinfo
    W: unknown line: SETKEYINFO n/<…>
    Then gpg-agent.service exits (systemd shows “Main process exited, 
status=2/INVALIDARGUMENT”) and is restarted by systemd.

Note:

    ~/pinentry-kwallet.debug is not created on my system even with a direct 
call:
    rm -f ~/pinentry-kwallet.debug
    echo GETPIN | /usr/bin/pinentry-kwallet
    ls -l ~/pinentry-kwallet.debug
    Expected: debug file exists (as shown in the bug description) .
    Actual: pinentry-kwallet outputs “OK ready to listen to your demands”, then 
prints:
      E: … have_lc_type: inaccessible or not found
      S ERROR gnome3.gcr_system_password_finish … 
GDBus.Error:org.freedesktop.DBus.Error.NoReply …
    and no ~/pinentry-kwallet.debug file is created.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2120443

Title:
  pinentry-kwallet called recursively by gpg-agent

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kwalletcli/+bug/2120443/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to