[From nobody Tue Aug 18 19:09:07 2026
Received: (at submit) by bugs.debian.org; 18 Aug 2026 16:14:08 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-22.1 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,FOURLA,FVGT_m_MULTI_ODD,GMAIL,HAS_PACKAGE,PGPSIGNATURE,
 SPF_HELO_NONE,SPF_PASS,X_DEBBUGS_CC autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 44; hammy, 150; neutral, 214; spammy,
 0. spammytokens: hammytokens:0.000-+--H*Ad:N*Bug,
 0.000-+--HTo:N*Debian, 0.000-+--forky, 0.000-+--HTo:N*System,
 0.000-+--HTo:N*Bug
Return-path: &lt;dkg@fifthhorseman.net&gt;
Received: from che.mayfirst.org ([2001:470:1:116::7]:49505)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;dkg@fifthhorseman.net&gt;)
 id 1wwMRy-00GlmD-14 for submit@bugs.debian.org;
 Tue, 18 Aug 2026 16:14:08 +0000
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple;
 d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019;
 t=1787069201; h=from : to : subject : date : message-id : mime-version
 : content-type : from;
 bh=f5vRnFpUMRqn4lMM252XXe+9k0/5JsDfFwgCb8IFf3o=;
 b=A6/nOefzFMWFhPgyTeUj0/tYDF6IRBWS59KsJc84bb4qATKbLf6+bhF+mokaeM6MA3jzv
 LO0TTX1cBXKOM1RBQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net;
 i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1787069201; h=from : to
 : subject : date : message-id : mime-version : content-type : from;
 bh=f5vRnFpUMRqn4lMM252XXe+9k0/5JsDfFwgCb8IFf3o=;
 b=uRuJJ6aanx/nzcy2xgzujpe42HC7ESOA4VkW3A+cLkzlRbjpf6ul6hBjm1Gqj2RL8bx22
 RzGIHW6OXSZv5WC6jh7v7b6jjPzYfzwtFA/ARG1FIhuqLwimoIcU6yVoMdtiwU1jSAhTMJ0
 Uuxz9sjckCLBhgSwMGaasmo0lnoThDy1tj51hFCa80LfufwvvTXx5BJPCbkFxllPfy7nqPZ
 f1qtsTgTrXldCo7Se8S4emu9WBT4z5G+zckDmTX6di36zxtwDGeqvjg/2YeRR+ljIcH/Eqt
 dSKAoVQvJjGr/kTJkgNfJX6P2DN43kZLjqp7lhWbbWopbOmBMEGJ1yHwxprw==
Received: from fifthhorseman.net (AMERICAN-CI.ear2.NewYork6.Level3.net
 [4.59.214.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519) (No client certificate requested)
 by che.mayfirst.org (Postfix) with ESMTPSA id 16E98F946
 for &lt;submit@bugs.debian.org&gt;; Tue, 18 Aug 2026 12:06:41 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000)
 id C809913F6DD; Tue, 18 Aug 2026 12:06:36 -0400 (EDT)
From: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: pinentry-gnome3: pinentry-gnome3 fails when G_MESSAGES_DEBUG=all
X-Debbugs-CC: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata=
 xjMEZXEJyxYJKwYBBAHaRw8BAQdA5BpbW0bpl5qCng/RiqwhQINrplDMSS5JsO/YO+5Zi7HNFzxk
 a2dAZmlmdGhob3JzZW1hbi5uZXQ+ws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b3wOOcoodImuVNw4PYq1U65FDC1Q2JMFIcJXqF0CmwwWIQTUdwQMcMIValwphUm7fpEBSV5r9wAA
 6egA/j3QANSmogZ5VTF5KlI+BBye9ud/w9j7RLcCHU6u8AA1AQC3FGaNuv+uWOSa+eeEoI/aZrGd
 X5el8b/m6aXDDxDjDg==
Date: Tue, 18 Aug 2026 12:06:36 -0400
Message-ID: &lt;87fr0btnub.fsf@fifthhorseman.net&gt;
MIME-Version: 1.0
Content-Type: multipart/signed; boundary=&quot;==-=-=&quot;;
 micalg=pgp-sha512; protocol=&quot;application/pgp-signature&quot;
X-Greylist: delayed 437 seconds by postgrey-1.37 at buxtehude;
 Tue, 18 Aug 2026 16:14:06 UTC
Delivered-To: submit@bugs.debian.org

--==-=-=
Content-Type: multipart/mixed; boundary=&quot;=-=-=&quot;

--=-=-=
Content-Type: text/plain

Package: pinentry-gnome3
Version: 1.3.3-2
Severity: normal
Tags: patch

As reported upstream on gnupg-devel@gnupg.org in message
id:CAFh6oAwX7_nvXc1PwDayx-s3TzxGG_bnEYSPzMg5dUHCa63n3g@mail.gmail.com ,
when G_MESSAGES_DEBUG is set to some more verbose value, pinentry-gnome3
chokes by dumping Glib/Gcr messages to stdout, which interferes with the
assuan connectivity.

Kernc has provided a patch on that mailing list, attached here.


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=pinentry-glib-logging.patch
Content-Transfer-Encoding: quoted-printable

From: Kernc &lt;kerncece@gmail.com&gt;

By default, GLib/Gcr/libsecret outputs debug/info logging messages
to stdout, but we use that as the Assuan channel, and outputting to
it anything but the expected verbs breaks pinentry pipelines
in confusing ways.

It is unknown whether a similar patch is needed for gtk-2
or other flavors via the 'CLEARPASSPHRASE' command,
nor if G_MESSAGES_DEBUG needs unsetting from the environment.

An old user reports Gtk-warnings even with pinentry-qt,
but their issue needs more verification.

https://web.archive.org/web/20260629091849/https://dev.gnupg.org/T4144.html

Care must be placed in who inherits our Assuan fds
and what they do with them.

GnuPG-bug-id: 4144
GnuPG-bug-id: 2243
GnuPG-bug-id: 2397
Signed-off-by: Kernc &lt;kerncece@gmail.com&gt;
=2D--
 gnome3/pinentry-gnome3.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnome3/pinentry-gnome3.c b/gnome3/pinentry-gnome3.c
index 7f21d6f..3692f49 100644
=2D-- a/gnome3/pinentry-gnome3.c
+++ b/gnome3/pinentry-gnome3.c
@@ -518,6 +518,13 @@ main (int argc, char *argv[])
 {
   pinentry_init (PGMNAME);

+/* Prevent logging messages escaping to stdout (our Assuan channel). */
+#if GLIB_CHECK_VERSION (2, 68, 0)
+  g_log_writer_default_set_use_stderr (TRUE);
+#else
+  g_unsetenv (&quot;G_MESSAGES_DEBUG&quot;);
+#endif
+
 #ifdef FALLBACK_CURSES
   if (!getenv (&quot;DBUS_SESSION_BUS_ADDRESS&quot;))
     {
=2D-=20
2.47.3

--=-=-=
Content-Type: text/plain


Regards,

        --dkg

-- System Information:
Debian Release: forky/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'oldstable'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 7.1.3+deb14-amd64 (SMP w/20 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pinentry-gnome3 depends on:
ii  gcr              3.41.2-6+b1
ii  libassuan9       3.0.2-2+b2
ii  libc6            2.42-17
ii  libgcr-base-3-1  3.41.2-6+b1
ii  libglib2.0-0t64  2.88.3-2
ii  libgpg-error0    1.61-3
ii  libncursesw6     6.6+20260608-2
ii  libsecret-1-0    0.21.7-2+b1
ii  libtinfo6        6.6+20260608-2

Versions of packages pinentry-gnome3 recommends:
ii  dbus-user-session  1.16.2-5+b1

Versions of packages pinentry-gnome3 suggests:
pn  pinentry-doc  &lt;none&gt;

-- no debconf information

--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name=&quot;signature.asc&quot;

-----BEGIN PGP SIGNATURE-----

wr0EARYKAG8FgmqEgwwJEHgLhU7ZwrSWRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z
LnNlcXVvaWEtcGdwLm9yZ9bbSf20ijjJHXf6Le3ubPT/5N45D7A1oD9f8Lnq9tvZ
FiEEY6wRjlsuXWbIioWneAuFTtnCtJYAAAM8AQD70KpKzNePtJxNmKDHDbAdojwE
4clDJfCQ0pdjB4hszQD/aCJ+49TD9BUmksuvK8BwbAX+jLYQAHQDAkFGZIUcoQI=
=evFq
-----END PGP SIGNATURE-----
--==-=-=--
]