Page MenuHome GnuPG
Feed Advanced Search

Mar 13 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Hi, that works as advertised. If this is the best solution yubikey permits us I am ok with it.

Mar 13 2018, 2:36 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

I put an entry: https://wiki.gnupg.org/SmartCard#Known_problem_of_Yubikey

Mar 13 2018, 5:35 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

After resume, because resume is not detected, some user interaction is required to cause an error.
gpg --card-status (which will only show partial information) is enough. Or, ssh failure. After failure, scdaemon reconnects the token.
Then, you can use it again without plug-off/plug-in.

Mar 13 2018, 4:58 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks a lot for pointers and suggestion.
Well, the problem of Yubikey itself cannot be solved by others, we can put some workaround for the error recovery.
So, this is another try of mine to improve error recovery.

Mar 13 2018, 4:52 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 12 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
  • There was same problem in yubico-piv-tool and it was solved by detecting error state (0x80100068) and reconnecting to the smart card if necessary [1]
  • There is also a thread in OpenSC discussing this issue [2] and relevant PRs [3]
  • I also found a project that claims to fix SCARD_W_RESET_CARD by disabling exclusive access to the card before asking for PIN (and then they enable exclusive access again) [4]
Mar 12 2018, 8:54 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Part of the problem is Yubikey side, I suppose. (Because my implementation of Gnuk Token has no problem for suspend/resume if it's in-use.)

Mar 12 2018, 1:24 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Again, thanks a lot for your testing. The log said: The code I added cannot detect the event of suspend/resume.
It seems that there is no way to recover from suspend/resume for Yubikey.

Mar 12 2018, 1:19 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 9 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Yeah, this is better, we got apdu_get_status => sw=0x0 status=7 and I can auth with this version as usual. After sleep-wake cycle it would however fail with pcsc_transmit failed: reset card (0x80100068). Logs attached.

Mar 9 2018, 7:09 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks a lot for your testing. So, apparently, the PC/SC behavior is different between GNU/Linux and Windows.
Thus, I pushed another change: rG1e27c0e04cd3: scd: More fix with PC/SC for Windows.. Please test this. (Both of previous version and this version work well on GNU/Linux for operations not including suspend/resume with Yubikey and Gnuk Token, while my Yubikey with PC/SC doesn't work well for suspend/resume.)

Mar 9 2018, 2:02 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 8 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks, this version of scdaemon executes.

Mar 8 2018, 7:45 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Sorry, my build was not good even if it's for x86_64 (I used development version of libassuan, etc.).

Mar 8 2018, 6:07 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 7 2018

kacperszurek added a comment to T3829: gpg-agent --default-cache-ttl option doesn't expire cache in specific situations.

Probably you are right but I don't know Windows internals that much.

Mar 7 2018, 5:27 PM · gnupg (gpg22), gpgagent, Bug Report
aheinecke added a comment to T3829: gpg-agent --default-cache-ttl option doesn't expire cache in specific situations.

I wonder if this also works similar in a multi user system:

Mar 7 2018, 9:14 AM · gnupg (gpg22), gpgagent, Bug Report

Mar 6 2018

werner closed T3829: gpg-agent --default-cache-ttl option doesn't expire cache in specific situations as Resolved.

Fixed. But you need to wait at least 4 seconds even with a 2 seconds ttl. Will go in 2.2.6 in about 3 weeks. Thanks for reporting.

Mar 6 2018, 6:16 PM · gnupg (gpg22), gpgagent, Bug Report
werner claimed T3829: gpg-agent --default-cache-ttl option doesn't expire cache in specific situations.

Well, if you have access to the user's memory you are lost anyway. Should be fixed, though.

Mar 6 2018, 3:49 PM · gnupg (gpg22), gpgagent, Bug Report
vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

@gniibe it seems the patched scdaemon.exe is 64 bit executable and it requires libassuan6-0.dll. However I got installed 32 bit version of gpg that only has incompatible libassuan-0.dll. I scanned whole computer for the missing lib, skimmed your ftp for 64 bit binaries and looked into gpg4win installer to find it, but no luck. There is also libassuan github repo, but I would like to avoid building the dll myself; there would probably be more than one dll to build anyway.

Mar 6 2018, 9:44 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe changed the visibility for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
Mar 6 2018, 8:27 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe triaged T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows as Normal priority.

If possible, please try with this (patched version of scdaemon):

Mar 6 2018, 8:25 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
aheinecke edited projects for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows, added: gpg4win; removed Windows 64.
Mar 6 2018, 7:53 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

I realized that suspend/resume is not supported yet on GNU/Linux: https://anonscm.debian.org/cgit/pcsclite/PCSC.git/tree/TODO#n7
So, I can't test myself.
Here is an attempt to improve:


The reference is: https://stackoverflow.com/questions/11294638/how-to-use-scardgetstatuschange-correctly-on-windows-8

Mar 6 2018, 2:11 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

It looks like SCardGetStatusChange doesn't return failure after wake up.
Here, what we need is catching the event of wake up, which requires reset of the card.
I think that we can check by the dwEventState field.
I'll try on GNU/Linux environment, then ask you to try.

Mar 6 2018, 12:41 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 5 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

@werner there had to be some mix up, as the log snippet is not mine.

Mar 5 2018, 9:26 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
werner added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

This seems to be the relevant part of the log:

2017-11-18 07:45:15 scdaemon[8918] DBG: ccid-driver: CCID: card inactive/removed
2017-11-18 07:45:15 scdaemon[8918] ccid open error: skip
2017-11-18 07:45:15 scdaemon[8918] pcsc_establish_context failed: no service (0x8010001d)
2017-11-18 07:45:15 scdaemon[8918] DBG: ccid-driver: CCID: interrupt callback 0
2017-11-18 07:45:15 scdaemon[8918] DBG: ccid-driver: CCID: card removed
Mar 5 2018, 1:46 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
vovcacik updated the task description for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
Mar 5 2018, 11:22 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
vovcacik changed the visibility for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
Mar 5 2018, 11:17 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Feb 26 2018

gniibe closed T3757: Problem building latest master on macOS: unknown identifier LOCAL_PEERUID in command-ssh.c as Resolved.
Feb 26 2018, 7:59 AM · gpgagent, gnupg (gpg23), MacOS, Bug Report

Feb 16 2018

gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

The error of testQuickUID is strange. In the test, it adds a UID and checks number of UIDs (3 + 1 = 4).
It is not reproducible for me (Debian with Qt 5.9.2, NetBSD 7.0.2 with Qt 5.5.1), gnupg 2.2.x from the repo.

Feb 16 2018, 12:45 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)

Feb 15 2018

werner added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

(automake should flag non-portable Makefile features - after all it is there to avoid gmake features)

Feb 15 2018, 11:52 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
wiz added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

Thank you very much! This is working quite well now.

Feb 15 2018, 10:57 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

I believe that all BSD Makefile issues has been fixed (except python-tar-gz distribution thing for maintainer).
Please test again.

Feb 15 2018, 5:07 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

I located the problem. It's Makefile portability issue and it is fixed in: rMb5ec21b9baf0: tests: Makefile portability., rMba6e610baa13: tests: More Makefile portability., and rM3224d7f0ea83: tests: Fix previous commit
It was not your final invocation of "make check" (GNU or BSD), but the one before ("make all" by BSD make) which imported keys for tests.
The "export" directive doesn't work on BSD.

Feb 15 2018, 3:40 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)

Feb 14 2018

werner triaged T3783: gpg-connect-agent: `HELP` lists `SIGKEY <hexstring_with_keygrip>` but only shows `SETKEY` as Wishlist priority.
/* Print all commands.  If a help string is available and that
   starts with the command name, print the first line of the
   help string.  */

For SETKEY this is not true. To change this we would need to have an "alias" flag to tell libassuan that setkey is an alias of sigkey. Not sure whether this really makes sense.

Feb 14 2018, 5:12 PM · gpgagent, Bug Report
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

OK. Then, it may be some bashi-ism in Makefile. I'll investigate with no bash installed.

Feb 14 2018, 8:32 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)

Feb 13 2018

wiz added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

No, I don't have a smartcard. Perhaps it misdetects one?

Feb 13 2018, 10:24 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

For other failures, I guess that you are connecting your card, aren't you?
Last year, I introduced a change for key selection to prefer existing card key. That may affect tests. Well, tests should have configure not to try to access card.

Feb 13 2018, 5:16 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)

Feb 6 2018

dkg created T3783: gpg-connect-agent: `HELP` lists `SIGKEY <hexstring_with_keygrip>` but only shows `SETKEY`.
Feb 6 2018, 10:36 PM · gpgagent, Bug Report
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

For scdaemon process(es), I created a ticket T3778: NetBSD: scdaemon should be killed when its parent (gpg-agent) is going to shutdown.

Feb 6 2018, 7:55 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)

Feb 2 2018

wiz added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

I'm confused. I've just now retested, and I get further with BSD make (there is another problem when importing the keys into the test keyring, where it the error is ignored with GNU make but the build fails with BSD make) but that is not what I want to focus on.

Feb 2 2018, 4:03 PM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)

Jan 30 2018

gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

Thanks for your additional suggestion. I pushed the change.

Jan 30 2018, 4:37 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)

Jan 29 2018

wiz added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

For qt: adding /usr/pkg/qt5/bin to the path makes the build succeed. I think you should take a look at the build rules though, since it seems that it wants to execute the header file if "moc" is not found.

Jan 29 2018, 11:59 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

For BSD Make issue, please try:

Jan 29 2018, 11:47 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

For the latter, I think it requires path to moc, which may be like /usr/pkg/qt5. Please add it to your PATH. Then, retry from configure

Jan 29 2018, 11:04 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
wiz added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

Using BSD make on git head of gpgme, I see

Jan 29 2018, 10:37 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

Other problems are fixed. Please test. It works for me on NetBSD 7.0.2.

Jan 29 2018, 4:09 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)

Jan 26 2018

onickolay added a comment to T3757: Problem building latest master on macOS: unknown identifier LOCAL_PEERUID in command-ssh.c.

Checked - it builds fine now. Thanks!

Jan 26 2018, 9:59 AM · gpgagent, gnupg (gpg23), MacOS, Bug Report
gniibe changed the status of T3757: Problem building latest master on macOS: unknown identifier LOCAL_PEERUID in command-ssh.c from Open to Testing.

I push my change to master.
Please test.

Jan 26 2018, 3:04 AM · gpgagent, gnupg (gpg23), MacOS, Bug Report

Jan 25 2018

gniibe claimed T3757: Problem building latest master on macOS: unknown identifier LOCAL_PEERUID in command-ssh.c.

Thanks for testing master.
No, it's not typo, in my opinion.
The line was added as if it's LOCAL_PEERUID, but there is no such a thing in XNU, but there is LOCAL_PEERUUID which is for UUID.

Jan 25 2018, 4:19 AM · gpgagent, gnupg (gpg23), MacOS, Bug Report

Jan 9 2018

aheinecke created T3724: Gpg-Agent asks twice for passphrase for key without passphrase.
Jan 9 2018, 2:19 PM · gpgagent

Dec 12 2017

werner closed T3473: gnupg agent configurable backlog for sockets as Resolved.

Okay, lets try with a default of 64. Note that for many concurrent ssh sessions you may also need the option --auto-expand-secmem which will come with Libgcrypt 1.8.2 and GnuPG 2.2.4

Dec 12 2017, 2:21 PM · gpgagent, Feature Request
gniibe closed T3027: gpg-agent crash on macOS Sierra triggerd by ssh as Resolved.

Please open another report, not reusing similar. I don't think it's same bug.
Please note that GnuPG's ssh is not fast enough (intentionally), its rate is usually ten connections per second.

Dec 12 2017, 12:12 AM · Bug Report, gpgagent, gnupg

Dec 11 2017

sundbp reopened T3027: gpg-agent crash on macOS Sierra triggerd by ssh as "Open".
Dec 11 2017, 11:49 PM · Bug Report, gpgagent, gnupg
sundbp added a comment to T3027: gpg-agent crash on macOS Sierra triggerd by ssh.

I'm seeing something quite similar - same setup, osx and it only shows when using ansible. I'm on gnupg 2.2.3, also saw same using "GPG Suite 2017.2".

Dec 11 2017, 11:48 PM · Bug Report, gpgagent, gnupg

Dec 8 2017

aheinecke added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

There is now also Gpg4win-3.0.2 with that gnupg version available.

Dec 8 2017, 2:18 PM · Windows, libassuan, gpgagent, Bug Report
Kelbom68 added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

I've been running gnupg-w32-2.2.3_20171207.exe for about as long as it's been available and no hanging whatsoever. Thanks a lot!

Dec 8 2017, 4:07 AM · Windows, libassuan, gpgagent, Bug Report

Dec 7 2017

werner closed D456: Change SOCK_CTX (internal one) system hooks.
Dec 7 2017, 6:26 PM · gnupg (gpg22), gpgagent
werner commandeered D456: Change SOCK_CTX (internal one) system hooks.
Dec 7 2017, 6:25 PM · gnupg (gpg22), gpgagent
werner changed the status of T3378: gpg-agent.exe hanging after left to idle for a while from Open to Testing.

All commited. I created a new installer gnupg-w32-2.2.3_20171207.exe which comes with the new libassuan 2.5.1 and the two required patches for gnupg.

Dec 7 2017, 6:07 PM · Windows, libassuan, gpgagent, Bug Report

Dec 6 2017

gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Thanks for testing.
I created another patch which can be applied independently: D457: Avoid crash using nPth

Dec 6 2017, 10:47 AM · Windows, libassuan, gpgagent, Bug Report
aheinecke added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Looks good. With the libassuan-hang-test.diff and D455 D456 applied on current master branches it no longer hangs. It hung with only the libassuan-hang-test.diff.

Dec 6 2017, 10:37 AM · Windows, libassuan, gpgagent, Bug Report
aheinecke accepted D456: Change SOCK_CTX (internal one) system hooks.

Tested it on Windows, with the sleep test patch in Libassuan it does not hang anymore when it hanged without this change.

Dec 6 2017, 10:36 AM · gnupg (gpg22), gpgagent
gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

The patch above libassuan-hang-test.diff requires D455 and D456 applied.
I guess that without the patch for testing, current gpg-agent would just work fine, possibly. (no crash)

Dec 6 2017, 10:23 AM · Windows, libassuan, gpgagent, Bug Report
gniibe created D456: Change SOCK_CTX (internal one) system hooks.
Dec 6 2017, 10:22 AM · gnupg (gpg22), gpgagent
gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

For better reproducibility of hang, this is more better:


It's a patch to libassuan. The patch to gpg-agent is not the exact one. libassuan patch is the exact one.

Dec 6 2017, 7:54 AM · Windows, libassuan, gpgagent, Bug Report
aheinecke added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

I'm doing the test. I'm currently waiting on a hang with the test change applied.

Dec 6 2017, 7:43 AM · Windows, libassuan, gpgagent, Bug Report
raysatiro added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

If you can get the developers to make a try-build that is built securely then I'd guess most of us would be happy to try it. Not all of us have a build system for gpg.

Dec 6 2017, 7:28 AM · Windows, libassuan, gpgagent, Bug Report
gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

To reproduce this problem of nonce write->read race on Windows, and forgotten wrapping of read/write, please apply this patch for testing:


And then, please confirm that rG1524ba9656f0: agent: Set assuan system hooks before call of assuan_sock_init. can fix this, even with the patch for testing.

Dec 6 2017, 6:40 AM · Windows, libassuan, gpgagent, Bug Report

Dec 5 2017

Kelbom68 added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Alright, I need to weight in with something that may possibly be influencing the failure of the December-01-2017 build to operate correctly over here; since this issue is related to sockets, and I have set up a rather unusual security apparatus on my system ("unusual" as far as computers regularly running GPG are concerned, and that only to my personal experience, meaning no reliable statistics or anything), I think it's worth mentioning that my firewall (Sygate Personal Firewall Pro) is configured to be very restrictive and that virtually anything that utilizes tcp or udp is being routed through socks5 via ProxyCap, and that neither application is currently allowing GPG to have access to any address but localhost (there's a reason for this and has got nothing to do with GPG itself, but that's part of a different discussion).

Dec 5 2017, 7:27 AM · Windows, libassuan, gpgagent, Bug Report

Dec 2 2017

werner changed the status of T3378: gpg-agent.exe hanging after left to idle for a while from Testing to Open.

:-(

Dec 2 2017, 12:04 PM · Windows, libassuan, gpgagent, Bug Report
Kelbom68 added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Ok here's an update.

Dec 2 2017, 6:57 AM · Windows, libassuan, gpgagent, Bug Report
Kelbom68 added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Superb! Testing gnupg-2.2.3_171201.exe as I type, and it's already working past the time it would normally cease to respond :)

Dec 2 2017, 2:51 AM · Windows, libassuan, gpgagent, Bug Report

Dec 1 2017

werner removed a project from T3378: gpg-agent.exe hanging after left to idle for a while: Unreleased.

A new installer with an updated libassuan is now available. To download gnupg-2.2.3_171201.exe please go to https://gnupg.org/download/ . If you had the disable-check-own-socket in your gpg-agent.conf, please remove it so that we can really see whether that version fixes the problem.

Dec 1 2017, 5:19 PM · Windows, libassuan, gpgagent, Bug Report
inc75 added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

The error is fixed with "disable-check-own-socket"
If someone is interested for next times, the log-file "gpg-agent.log" is on the path "C:\Users\<my user>\AppData\Local\VirtualStore\Program Files (x86)\Mozilla Thunderbird\".

Dec 1 2017, 4:17 PM · Windows, libassuan, gpgagent, Bug Report
werner added a project to T3378: gpg-agent.exe hanging after left to idle for a while: Windows.

Adding Windows again because on Unix it is unlikley that our close will block. A documented blocking behavior is only defined for STREAMS

Dec 1 2017, 1:51 PM · Windows, libassuan, gpgagent, Bug Report
werner changed the status of T3378: gpg-agent.exe hanging after left to idle for a while from Open to Testing.

Yeah, that looks correct. Good catch. The bug exhibits itself when gpg-agent checks its own socket. In this case gpg-agent is both, client and server, and due to our userland multi-threading we get blocked. The suspend/resume things makes the deadlock more likely. Note that we have the same problem on Unix.

Dec 1 2017, 1:30 PM · Windows, libassuan, gpgagent, Bug Report
gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Thanks everyone. I think that the problem is identified and fixed in libassuan.

Dec 1 2017, 12:13 AM · Windows, libassuan, gpgagent, Bug Report

Nov 30 2017

hs added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Update: It was my mistake (typical beginners failure): I had to create gpg-agent.conf instead of usig gpg.conf.
Adding disable-check-own-socket resulted in the right behavior, till now:
After some time-out, GpgOL asks for password again and decrypts the content as expected.

Nov 30 2017, 2:10 PM · Windows, libassuan, gpgagent, Bug Report
gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Suppose a client which connects stopped task of server on Windows. In this situation, if the client blocks on closesocket, that is, some user space work is needed for server side for closing socket of client side, this bug can be explained.

Nov 30 2017, 10:02 AM · Windows, libassuan, gpgagent, Bug Report
gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

If disable-check-own-socket can stop hanging, D454: assuan_close with nPth could be related.

Nov 30 2017, 9:37 AM · Windows, libassuan, gpgagent, Bug Report

Nov 29 2017

inc75 added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

I have created the file "gpg-agent.conf" in the path "C:\Users\<my user>\AppData\Roaming\gnupg\" with the following content:

Nov 29 2017, 6:38 PM · Windows, libassuan, gpgagent, Bug Report
jbtule added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

It's working for me now with that config file as well so far. I'll keep watching too.

Nov 29 2017, 6:13 PM · Windows, libassuan, gpgagent, Bug Report
HB1000 added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

I added "disable-check-own-socket" to gpg-agent.conf .
Since 8 hours no "hanging".
I will watch it furthermore...

Nov 29 2017, 5:11 PM · Windows, libassuan, gpgagent, Bug Report
hs added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Could confirm a similar behavior with Windows 7 and Outlook 2010 using GPG4Win 3.0.1.
Time frame for loosing the decryption ability is about one hour or more.
Setting disable-check-own-socket in gpg.conf (didn't find gpg-agent.conf) resulted in "no data" error on all
encrypted e-mails.

Nov 29 2017, 4:50 PM · Windows, libassuan, gpgagent, Bug Report
gniibe closed T3472: gpgme-1.9.0 test suite hangs on OpenBSD as Resolved.
Nov 29 2017, 8:22 AM · gpgagent, gnupg (gpg22), gpgme
aheinecke added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

I assume it goes in %APPDATA%\gnupg\gpg-agent.conf.

Nov 29 2017, 7:39 AM · Windows, libassuan, gpgagent, Bug Report
raysatiro added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Can someone please add

disable-check-own-socket

to gpg-agent.conf to test whether this is the cause for the problem. ( note that I asked for this also in T3401)

Nov 29 2017, 6:19 AM · Windows, libassuan, gpgagent, Bug Report

Nov 28 2017

werner added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Can someone please add

Nov 28 2017, 9:48 AM · Windows, libassuan, gpgagent, Bug Report
gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

I introduce GnuPG to my friend, yesterday. I saw this problem. It's on Windows 7, gpg4win 3.0.1 and enigmail.
Looking through this report, Windows 7 is common factor.

Nov 28 2017, 2:04 AM · Windows, libassuan, gpgagent, Bug Report

Nov 24 2017

werner added a comment to T3530: Option to auto-increase secmem in gpg-agent.

Somehow I expected such a report (too many open fds). We will need to replace our select based code by poll. However, I think this is more related to T3529.

Nov 24 2017, 10:13 AM · Feature Request, gpgagent
fisgtm-amul added a comment to T3530: Option to auto-increase secmem in gpg-agent.

THANK YOU! Once you push those changes, I'll see about back-porting the patches to Debian stable/Ubuntu LTS.

Nov 24 2017, 9:48 AM · Feature Request, gpgagent

Nov 23 2017

werner added a comment to T3530: Option to auto-increase secmem in gpg-agent.

Thanks for your patches. I decided to do this similar but I need to take several branches in account.

Nov 23 2017, 9:26 PM · Feature Request, gpgagent
fisgtm-amul added a comment to T3530: Option to auto-increase secmem in gpg-agent.

The attached patches make the necessary changes to libgcrypt and gpg-agent. A word about my change to libgcrypt. Since all of the *_secure allocation operations were hardcoded to set xhint to zero, I simply replaced that hardcoded value with a static variable. In the patches I have some sample documentation for both changes. My scheme skills are quite old, so I did not write a test case.

Nov 23 2017, 2:24 PM · Feature Request, gpgagent
fisgtm-amul added a comment to T3530: Option to auto-increase secmem in gpg-agent.

Here is the test case that I wrote a while back (Follow-up to Crashes with gpg-agent 2.1.18). It is written with bash in mind and creates a stand-alone GNUPGHOME directory with a pinentry routine that supplies the password (I guess I could have preset the passphrase) and then starts 200 concurrent gpg decryption requests. With GPG 2.1.18 and up, this usually exposes the out of memory situation very fast.

Nov 23 2017, 9:40 AM · Feature Request, gpgagent

Nov 22 2017

werner created T3530: Option to auto-increase secmem in gpg-agent.
Nov 22 2017, 8:39 PM · Feature Request, gpgagent
werner created T3529: Connection limit for gpg-agent.
Nov 22 2017, 8:33 PM · Feature Request, gnupg (gpg23), gpgagent

Nov 21 2017

werner added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.
In T3056#95172, @wiz wrote:

Oh, to make it clear - I was testing the pkgsrc version with the additional patches used by pkgsrc, see http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/security/gpgme/patches/

Testing it without patches does not work because:

get-env.c:57:2: error: #error Use of getenv_r not implemented.
 #error Use of getenv_r not implemented.
Nov 21 2017, 10:14 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
gniibe added a comment to T3056: gpgme-1.8.0: test failures on NetBSD.

There are multiple problems. I fixed one Makefile portability issue today.

Nov 21 2017, 7:39 AM · gpgme (gpgme 1.23.x), gpgagent, gnupg (gpg23)
gniibe added a comment to T3472: gpgme-1.9.0 test suite hangs on OpenBSD.

Fixed in 2.2.3, too. Closing.

Nov 21 2017, 12:13 AM · gpgagent, gnupg (gpg22), gpgme

Nov 20 2017

gniibe added a comment to T3378: gpg-agent.exe hanging after left to idle for a while.

Not yet located or identified the bug, but some information.

Nov 20 2017, 11:50 AM · Windows, libassuan, gpgagent, Bug Report

Nov 17 2017

vext01 added a comment to T3472: gpgme-1.9.0 test suite hangs on OpenBSD.

Shall we close this?

Nov 17 2017, 3:48 PM · gpgagent, gnupg (gpg22), gpgme

Nov 13 2017

aheinecke added a project to T3378: gpg-agent.exe hanging after left to idle for a while: gpg4win.

This might be a reason that we got multiple reports for Kleopatra since 3.0 was released that it hangs on keylisting: https://bugs.kde.org/show_bug.cgi?id=381910

Nov 13 2017, 10:38 AM · Windows, libassuan, gpgagent, Bug Report