Page MenuHome GnuPG
Feed Advanced Search

Jun 28 2020

werner closed T4980: Libgpg-Error compilation fails if grep_options are enabled as Wontfix.
Jun 28 2020, 4:17 PM · toolchain, MacOS, Bug Report

Apr 4 2020

kaliszad added a comment to T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".

@werner what size of each additionally allocated secure memory area would you recommend? Is this something, that is better to set or leave up to the gpg-agent to decide? Will this additional memory be freed when not needed anymore or will it stay allocated until the process dies? I guess, the documentation could be expanded to answer this.

Apr 4 2020, 8:26 PM · gnupg (gpg22), MacOS, Bug Report

Apr 1 2020

werner triaged T4900: OS X 10.12 and dyld: Library not loaded: /usr/local/lib/libgcrypt.20.dylib as Normal priority.
Apr 1 2020, 8:53 PM · MacOS, libgcrypt, Bug Report

Feb 7 2020

werner closed T4459: libgpg-error build issue with gawk 5.0.0 as Resolved.
Feb 7 2020, 1:47 PM · Gentoo, gpgrt, MacOS, Bug Report
werner closed T4772: Release libgpg-error 1.37, a subtask of T4459: libgpg-error build issue with gawk 5.0.0, as Resolved.
Feb 7 2020, 1:47 PM · Gentoo, gpgrt, MacOS, Bug Report

Dec 6 2019

gniibe added a subtask for T4459: libgpg-error build issue with gawk 5.0.0: T4772: Release libgpg-error 1.37.
Dec 6 2019, 5:25 AM · Gentoo, gpgrt, MacOS, Bug Report

Dec 5 2019

gniibe added a parent task for T4733: pinentry-curses reveals pin: T4771: pinentry-tty/pinentry-curses interact a user as background process.
Dec 5 2019, 6:59 AM · MacOS, pinentry, Bug Report

Oct 29 2019

sunknudsen added a comment to T4733: pinentry-curses reveals pin.

Thanks for the follow-up Werner.

Oct 29 2019, 11:54 AM · MacOS, pinentry, Bug Report
werner triaged T4733: pinentry-curses reveals pin as Normal priority.

Then better do not use a curses pinentry. It can't guarantee that another process changes the tty properties. For security reasons it is better to run the pinentry in a different window (ie. a GUI based pinentry).

Oct 29 2019, 10:26 AM · MacOS, pinentry, Bug Report

Sep 10 2019

werner triaged T4703: Scute > 1.4.0 does not work with MacOS X as Normal priority.
Sep 10 2019, 4:18 PM · MacOS, scute

Sep 9 2019

gouttegd added a comment to T4703: Scute > 1.4.0 does not work with MacOS X.

If I understand correctly, the problem stems from the -module flag added to the LDFLAGS in commit dc2211179. It's that flag that instruct libtool to create a bundle (.so file) instead of a dynamically linked shared library (.dylib file). But that flag is needed to force automake to accept that the library is to be named scute instead of libscute (without that flag automake errors out, complaining that scute.la is not a standard libtool library name).

Sep 9 2019, 5:58 PM · MacOS, scute
werner added a project to T4703: Scute > 1.4.0 does not work with MacOS X: MacOS.

Given that 1.5 already had that problem, I would suggest to ignore that bug for the 1.6 release. We can work on that later.

Sep 9 2019, 5:12 PM · MacOS, scute

Apr 23 2019

kristianf added a comment to T4459: libgpg-error build issue with gawk 5.0.0.

For reference our downstream tracker of this is https://bugs.gentoo.org/683254 including patches

Apr 23 2019, 12:07 AM · Gentoo, gpgrt, MacOS, Bug Report
kristianf added a project to T4459: libgpg-error build issue with gawk 5.0.0: Gentoo.
Apr 23 2019, 12:05 AM · Gentoo, gpgrt, MacOS, Bug Report

Apr 16 2019

gniibe changed the status of T4459: libgpg-error build issue with gawk 5.0.0 from Open to Testing.

Added a fix to GnuPG, too (master and stable 2.2).

Apr 16 2019, 8:29 AM · Gentoo, gpgrt, MacOS, Bug Report
gniibe added a comment to T4459: libgpg-error build issue with gawk 5.0.0.

I keep this ticket open, since it is also problem for other packages.

Apr 16 2019, 6:21 AM · Gentoo, gpgrt, MacOS, Bug Report

Apr 15 2019

gniibe claimed T4459: libgpg-error build issue with gawk 5.0.0.
Apr 15 2019, 6:40 AM · Gentoo, gpgrt, MacOS, Bug Report

Apr 13 2019

werner added projects to T4459: libgpg-error build issue with gawk 5.0.0: MacOS, gpgrt.
Apr 13 2019, 10:16 PM · Gentoo, gpgrt, MacOS, Bug Report

Mar 18 2019

werner closed T4319: New 2017 MAC permission isues on gpg-agent as Invalid.
Mar 18 2019, 7:27 PM · MacOS, gpgagent, gnupg (gpg22)

Feb 19 2019

gniibe lowered the priority of T4319: New 2017 MAC permission isues on gpg-agent from High to Low.

Your problem is apparently not an issue of upstream development of GnuPG; It is your setup script (agent.sh?) which specifies /dev/shm/SOMETHING.
Standard GnuPG never does that. We have no idea about use of /dev/shm/SOMETHING.

Feb 19 2019, 2:37 AM · MacOS, gpgagent, gnupg (gpg22)

Dec 12 2018

werner closed T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key" as Resolved.
Dec 12 2018, 8:28 AM · gnupg (gpg22), MacOS, Bug Report
gniibe added a parent task for T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key": T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Dec 12 2018, 7:26 AM · gnupg (gpg22), MacOS, Bug Report

Oct 10 2018

werner changed the status of T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key" from Open to Testing.
Oct 10 2018, 12:10 PM · gnupg (gpg22), MacOS, Bug Report
werner added a comment to T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".

Please put

Oct 10 2018, 12:09 PM · gnupg (gpg22), MacOS, Bug Report

Sep 26 2018

andy added a comment to T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".

I ran gpgconf --kill gpg-agent and then the suggested command for i in {1..10}; do gpg -v --no-tty --verbose -o - encrypted.gpg 2>mylog.$i > /dev/null & done. (I was already running with --verbose, does -v add something else?)

Sep 26 2018, 11:09 PM · gnupg (gpg22), MacOS, Bug Report
BenM added a comment to T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".

In the interests of completeness I also tried it on a much larger file (1GB) which was both signed and encrypted. I also set the decryption to show the session key just to confirm it was decrypting since the plaintext was being sent to /dev/null.

Sep 26 2018, 10:58 PM · gnupg (gpg22), MacOS, Bug Report
BenM added a comment to T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".

I am unable to replicate this on OS X 10.9 Mavericks.

Sep 26 2018, 10:45 PM · gnupg (gpg22), MacOS, Bug Report

Sep 25 2018

werner added a comment to T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".

Running with -v would really be helpful.

Sep 25 2018, 11:54 AM · gnupg (gpg22), MacOS, Bug Report

Sep 22 2018

andy added a comment to T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".

I made a large file for testing, but it doesn't matter. There's an arbitrary parallel limit where gpg will crash.

Sep 22 2018, 11:43 PM · gnupg (gpg22), MacOS, Bug Report

Sep 18 2018

werner added projects to T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key": MacOS, gnupg (gpg22).

We need a way to replicate your problem, a few questions first:

Sep 18 2018, 9:10 AM · gnupg (gpg22), MacOS, Bug Report

Apr 11 2018

gniibe added a project to T3843: Unable to generate RSA4096 keys on Yubikey 4 on OSX Sierra: Info Needed.
Apr 11 2018, 10:02 AM · Info Needed, MacOS, yubikey, scd, Bug Report
gniibe triaged T3843: Unable to generate RSA4096 keys on Yubikey 4 on OSX Sierra as Normal priority.
Apr 11 2018, 10:02 AM · Info Needed, MacOS, yubikey, scd, Bug Report

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

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

Oct 20 2017

werner edited projects for T3089: macOS - use OpenDirectory Framework, added: gnupg (gpg23); removed gnupg (gpg21).
Oct 20 2017, 1:47 PM · gnupg24, gnupg (gpg23), dirmngr, MacOS

Sep 6 2017

gniibe closed T2447: macport compile failed in libassuan-2.4.3 due to undefine _POSIX_C_SOURCE as Resolved.

It will be in the next release (2.4.4).
Thanks for reporting.

Sep 6 2017, 8:40 AM · MacOS, Bug Report, libassuan
gniibe claimed T2447: macport compile failed in libassuan-2.4.3 due to undefine _POSIX_C_SOURCE.

The description of this bug report is not correct.
_POSIX_C_SOURCE should *not* be defined to use INADDR_LOOPBACK for the system.

Sep 6 2017, 8:37 AM · MacOS, Bug Report, libassuan

Aug 3 2017

patrick closed T3317: dirmngr: Watching /etc/resolv.conf does not work on Mac OS X as Invalid.

It looks like this was on my side. I can't reproduce it anymore; in other words dirmngr survives changes to DNS servers now.

Aug 3 2017, 9:49 AM · MacOS, gnupg (gpg22), Bug Report

Aug 1 2017

werner added a comment to T3316: test failures in gnupg 2.1.22 when using configure --disable-scdaemon.

That's it. I can reproduce this on Debian.

Aug 1 2017, 7:16 PM · Tests, Bug Report
werner renamed T3316: test failures in gnupg 2.1.22 when using configure --disable-scdaemon from test failures in gnupg 2.1.22 on macOS to test failures in gnupg 2.1.22 when using configure --disable-scdaemon.
Aug 1 2017, 7:16 PM · Tests, Bug Report

Jul 31 2017

werner added a comment to T3317: dirmngr: Watching /etc/resolv.conf does not work on Mac OS X.

debug dns

log-file whateveryouwant
Jul 31 2017, 6:51 PM · MacOS, gnupg (gpg22), Bug Report
patrick added a comment to T3317: dirmngr: Watching /etc/resolv.conf does not work on Mac OS X.

You're right, stat() works correctly. I created a small tool that implements the same logic. For some reason dirmngr is still not able to find the DNS server after suspend/resume in combination with changed locations. I still get "no route to host" errors.

Jul 31 2017, 5:33 PM · MacOS, gnupg (gpg22), Bug Report
werner added a comment to T3317: dirmngr: Watching /etc/resolv.conf does not work on Mac OS X.

According to POSIX stat(2) follows a symlink and thus /etc/resolv.conf is the right name to use. (To stat /etc/resolv.conf itself lstat(2) would need to be used. ). I just checked the macOS man page and it says nothing to the contrary.

Jul 31 2017, 12:30 PM · MacOS, gnupg (gpg22), Bug Report
werner triaged T3317: dirmngr: Watching /etc/resolv.conf does not work on Mac OS X as High priority.
Jul 31 2017, 11:28 AM · MacOS, gnupg (gpg22), Bug Report

Jul 30 2017

chdiza added a comment to T3316: test failures in gnupg 2.1.22 when using configure --disable-scdaemon.

I've found that I can get the test to succeed if I drop --disable-scdaemon from my configure flags. I'm far from qualified to diagnose this, but I suspect that the tests have a bug in which they still try to test the scdaemon despite the presence of --disable-scdaemon in the configure flags.

Jul 30 2017, 9:20 PM · Tests, Bug Report

Jul 29 2017

werner triaged T3316: test failures in gnupg 2.1.22 when using configure --disable-scdaemon as Normal priority.

Sure it won't apply because it is part of 2.1.22. ;-)

Jul 29 2017, 11:29 AM · Tests, Bug Report

Jun 23 2017

werner closed T2056: libgcrypt: make check fails "random" test on OS X 10.11 with link error as Resolved.

No way to test on El Capitain anymore. It works on Sierra.

Jun 23 2017, 4:28 PM · Stalled, MacOS, Bug Report, libgcrypt

Jun 7 2017

werner triaged T3089: macOS - use OpenDirectory Framework as Wishlist priority.

Given that this is just a warning, we should not consider it a bug.

Jun 7 2017, 1:28 PM · gnupg24, gnupg (gpg23), dirmngr, MacOS

May 17 2017

DomT4 added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Can confirm here too. Applying that on top of 2.1.21 works perfectly.

May 17 2017, 4:36 AM · MacOS, Bug Report, gnupg
ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Yes that fixes it!

May 17 2017, 4:22 AM · MacOS, Bug Report, gnupg
gniibe added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

I put another bug in 2.1.21. Please try: rGa8dd96826f84: g10: Suppress error for card availability check.

May 17 2017, 2:56 AM · MacOS, Bug Report, gnupg

May 16 2017

DomT4 added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Unsure whether to bump this or report it as a fresh bug, but the testing-scdaemon-inside-a-sandbox-on-macos issue has returned in GnuPG 2.1.21.

May 16 2017, 7:46 PM · MacOS, Bug Report, gnupg

May 15 2017

justus merged task T3144: GPG generating strange / duplicate keys when adding subkeys on MacOS into T3080: GnuPG fails to update keyring files in certain circumstances.
May 15 2017, 10:20 AM · MacOS, gnupg

May 8 2017

justus triaged T3144: GPG generating strange / duplicate keys when adding subkeys on MacOS as High priority.

This is likely a duplicate or something really closely related to T3080.

May 8 2017, 10:16 AM · MacOS, gnupg
gniibe added a comment to T3089: macOS - use OpenDirectory Framework.

https://developer.apple.com/library/content/documentation/Networking/Conceptual/Open_Directory/openDirectoryConcepts/openDirectoryConcepts.html

May 8 2017, 7:14 AM · gnupg24, gnupg (gpg23), dirmngr, MacOS

May 7 2017

nickippoliti created T3144: GPG generating strange / duplicate keys when adding subkeys on MacOS in the S1 Public space.
May 7 2017, 10:30 PM · MacOS, gnupg

Apr 21 2017

gniibe added projects to T3089: macOS - use OpenDirectory Framework: dirmngr, gnupg (gpg21).
Apr 21 2017, 1:53 AM · gnupg24, gnupg (gpg23), dirmngr, MacOS

Apr 18 2017

gniibe added a comment to T3089: macOS - use OpenDirectory Framework.

Or provide an option to disable LDAP: T2908: dirmngr can't be build w/o LDAP

Apr 18 2017, 1:17 AM · gnupg24, gnupg (gpg23), dirmngr, MacOS
gniibe created T3089: macOS - use OpenDirectory Framework.
Apr 18 2017, 1:14 AM · gnupg24, gnupg (gpg23), dirmngr, MacOS

Apr 7 2017

gniibe added a comment to T3027: gpg-agent crash on macOS Sierra triggerd by ssh.

Applied as ebe12be034f0.

Apr 7 2017, 2:15 AM · Bug Report, gpgagent, gnupg

Apr 6 2017

gniibe added a comment to T3027: gpg-agent crash on macOS Sierra triggerd by ssh.

While I can't reproduce this problem myself, I think I found an issue of gpg-agent passphrase caching.
Double free may happen when multiple threads enter agent_put_cache, for example.

Apr 6 2017, 4:38 AM · Bug Report, gpgagent, gnupg

Apr 4 2017

gniibe added a project to T3027: gpg-agent crash on macOS Sierra triggerd by ssh: In Progress.
Apr 4 2017, 2:56 AM · Bug Report, gpgagent, gnupg
gniibe reopened T3027: gpg-agent crash on macOS Sierra triggerd by ssh as "Open".
Apr 4 2017, 2:54 AM · Bug Report, gpgagent, gnupg
gniibe closed T3027: gpg-agent crash on macOS Sierra triggerd by ssh as Resolved.

In 2.1.19, gpg-agent uses getpeerucred for macOS. I changed it (since it seemed not working). In 2.1.20, gpg-agent now uses getsockopt with LOCAL_PEERPID.
It seems for me that the crash occurs by ucred_free. If this is the case, 2.1.20 fixes this issue.

Apr 4 2017, 2:54 AM · Bug Report, gpgagent, gnupg

Mar 30 2017

marcus moved T3027: gpg-agent crash on macOS Sierra triggerd by ssh from In Progress to Backlog on the gnupg board.
Mar 30 2017, 7:36 PM · Bug Report, gpgagent, gnupg
marcus moved T3027: gpg-agent crash on macOS Sierra triggerd by ssh from Backlog to In Progress on the gnupg board.
Mar 30 2017, 7:35 PM · Bug Report, gpgagent, gnupg
admin created MacOS.
Mar 30 2017, 6:42 PM
landro added projects to T3027: gpg-agent crash on macOS Sierra triggerd by ssh: MacOS, ssh, gnupg, gnupg (gpg21), gpgagent, Bug Report.
Mar 30 2017, 3:22 PM · Bug Report, gpgagent, gnupg
landro set Version to 2.1.19 on T3027: gpg-agent crash on macOS Sierra triggerd by ssh.
Mar 30 2017, 3:22 PM · Bug Report, gpgagent, gnupg

Mar 10 2017

werner removed a project from T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19: Unreleased.
Mar 10 2017, 10:47 AM · MacOS, Bug Report, gnupg

Mar 9 2017

ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

4ce4f2f683a17be3ddb93729f3f25014a97934ad allows make check to complete without
the other workaround. So it works as advertised! Thanks, Niibe and Justus.

Mar 9 2017, 3:35 PM · MacOS, Bug Report, gnupg

Mar 8 2017

justus closed T2910: gpgme 1.8 build failure: strdup undeclared on MacOSX Sierra as Resolved.
Mar 8 2017, 1:33 PM · MacOS, gpgme, Bug Report
justus removed a project from T2910: gpgme 1.8 build failure: strdup undeclared on MacOSX Sierra: In Progress.
Mar 8 2017, 1:33 PM · MacOS, gpgme, Bug Report
justus added a comment to T2910: gpgme 1.8 build failure: strdup undeclared on MacOSX Sierra.

gnupg fixed in dd60e868d2bf649a33dc96e207ffd3b8ae4d35af.

Mar 8 2017, 1:33 PM · MacOS, gpgme, Bug Report
justus added a comment to T2910: gpgme 1.8 build failure: strdup undeclared on MacOSX Sierra.

ntbtls fixed in e582e91e47a164816ac074b9078dbed8537601dc.

Mar 8 2017, 1:21 PM · MacOS, gpgme, Bug Report
justus added a comment to T2910: gpgme 1.8 build failure: strdup undeclared on MacOSX Sierra.

libgcrypt fixed in 654024081cfa103c87bb163b117ea3568171d408.

Mar 8 2017, 1:11 PM · MacOS, gpgme, Bug Report
justus added a comment to T2910: gpgme 1.8 build failure: strdup undeclared on MacOSX Sierra.

libksba fixed in 561d03a008150c201ece22b29c97b24a1f6bf590.

Mar 8 2017, 1:05 PM · MacOS, gpgme, Bug Report
justus added a comment to T2910: gpgme 1.8 build failure: strdup undeclared on MacOSX Sierra.

libassuan fixed in b26b73d04bff10852382113ae361ea5726661510.

Mar 8 2017, 12:30 PM · MacOS, gpgme, Bug Report
justus added a comment to T2910: gpgme 1.8 build failure: strdup undeclared on MacOSX Sierra.

libgpg-error fixed in 5e51b642f747547c737a7abbc37e65b0f630d188.

Mar 8 2017, 11:45 AM · MacOS, gpgme, Bug Report

Mar 6 2017

gniibe added a project to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19: Unreleased.
Mar 6 2017, 2:39 AM · MacOS, Bug Report, gnupg
gniibe closed T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19 as Resolved.
Mar 6 2017, 2:39 AM · MacOS, Bug Report, gnupg
gniibe added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Sorry, I couldn't find any possible bug for PC/SC access in scdaemon. It looks
like scdaemon crashes when it tries to access card by PC/SC, and it seems that
it crashes there (I mean, in PC/SC).
I believe that this scdaemon's crash is something which is difficult to avoid in
an application.

Anyway, I fixed the issue itself by handling errors of gpg-agent for scdaemon:
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=4ce4f2f683a17be3ddb93729f3f25014a97934ad

Mar 6 2017, 2:39 AM · MacOS, Bug Report, gnupg

Mar 3 2017

gniibe claimed T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.
Mar 3 2017, 8:39 AM · MacOS, Bug Report, gnupg
gniibe added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

I think that scdaemon in 2.1.18 would also crash in sandbox environment.
In 2.1.19, I modified ssh-agent emulation code to support multiple tokens.
This change assumes scdaemon returns ENODEV return code and behaves badly, if
scdaemon crashes.
In 2.1.18, the code was somewhat robust and scdaemon crash didn't cause failure.
I am currently looking into the reason why scdaemon crashes.

Mar 3 2017, 8:39 AM · MacOS, Bug Report, gnupg

Mar 2 2017

ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Thanks to you and thanks to Niibe in advance :)

Mar 2 2017, 3:05 PM · MacOS, Bug Report, gnupg
justus added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Glad to hear that. Niibe will have a closer look at the issue tomorrow.

Mar 2 2017, 2:54 PM · MacOS, Bug Report, gnupg
ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

And it has now passed CI:
https://github.com/Homebrew/homebrew-versions/pull/1536
https://bot.brew.sh/job/Homebrew%20Versions%20Pull%20Requests/1824/

So I've merged the PR.

Mar 2 2017, 2:37 PM · MacOS, Bug Report, gnupg
ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

The patch works!

Mar 2 2017, 2:16 PM · MacOS, Bug Report, gnupg
justus added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

A possible workaround for you is to disable the use of scdaemon in the tests.
Currently, it is not needed anyway. I'll attach a patch to do that.

Mar 2 2017, 1:09 PM · MacOS, Bug Report, gnupg
justus added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

D412: 966_issue2980-workaround.patch

Mar 2 2017, 1:09 PM · MacOS, Bug Report, gnupg
justus added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

This is interesting indeed. Might be related to a recent change to support
multiple smart cards.

Mar 2 2017, 12:18 PM · MacOS, Bug Report, gnupg
ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Here's the referenced crash file:
https://gist.github.com/ilovezfs/ebfccf2515fc7d7952edcc4c13ff8013

Mar 2 2017, 12:09 PM · MacOS, Bug Report, gnupg
ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Here's what's happening in the system log when the failed test runs:

Mar  2 03:06:53 iMac-TMP com.apple.xpc.launchd[1] (com.apple.auditd[39537])
<Warning>: Endpoint has been activated through legacy launch(3) APIs. Please
switch to XPC or bootstrap_check_in(): com.apple.auditd
Mar  2 03:06:53 iMac-TMP com.apple.ctkpcscd[39536] <Notice>:
SecTaskLoadEntitlements failed error=22
Mar  2 03:06:53 iMac-TMP com.apple.ctkpcscd[39536] <Warning>: Refusing sandboxed
PCSC.framework client without com.apple.security.smartcard entitlement
Mar  2 03:06:53 iMac-TMP joe[39540] <Warning>: audit warning: soft /var/audit
Mar  2 03:06:53 iMac-TMP joe[39541] <Warning>: audit warning: allsoft 
Mar  2 03:06:54 iMac-TMP joe[39544] <Warning>: audit warning: closefile
/var/audit/20170302110453.20170302110653
Mar  2 03:06:54 iMac-TMP com.apple.ctkpcscd[39536] <Notice>:
SecTaskLoadEntitlements failed error=22
Mar  2 03:06:54 iMac-TMP com.apple.ctkpcscd[39536] <Warning>: Refusing sandboxed
PCSC.framework client without com.apple.security.smartcard entitlement
Mar  2 03:06:54 iMac-TMP com.apple.xpc.launchd[1] (com.apple.ReportCrash[39548])
<Warning>: Endpoint has been activated through legacy launch(3) APIs. Please
switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
Mar  2 03:06:54 iMac-TMP ReportCrash[39548] <Notice>: Saved crash report for
scdaemon[39535] version 0 to
/Users/joe/Library/Logs/DiagnosticReports/scdaemon_2017-03-02-030654_iMac-TMP.crash
Mar 2 2017, 12:07 PM · MacOS, Bug Report, gnupg
ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Can you please give us ssh -V, and describe the sandbox environment? Does it
affect which ssh version is used?

It's the system default. There's no other version of ssh that gets installed.
Our own ssh formula is homebrew/dupes/openssh and is explicitly barred from
being used as a dependency by anything else, as is anything else in homebrew/dupes.

10.12.3
robotunicorn ~ # ssh -V
OpenSSH_7.3p1, LibreSSL 2.4.1

10.11.6
iMac-TMP:~ joe$ ssh -V
OpenSSH_6.9p1, LibreSSL 2.1.8

yosemitevm ~ # ssh -V
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011

Regarding the sandbox, here's where it's implemented:
https://github.com/Homebrew/brew/blob/master/Library/Homebrew/sandbox.rb

It's invoked as

/usr/bin/sandbox-exec -f /tmp/homebrew20170302-24230-1xmlw7l.sb nice
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I
/usr/local/Homebrew/Library/Homebrew --
/usr/local/Homebrew/Library/Homebrew/build.rb
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions/gnupg21.rb

The contents of the .sb file are as follows:

iMac-TMP:~ joe$ cat /tmp/homebrew20170302-24230-1xmlw7l.sb
(version 1)
(debug deny) ; log all denied operations to /var/log/system.log
(allow file-write* (subpath "/private/tmp"))
(allow file-write* (subpath "/private/var/tmp"))
(allow file-write* (regex #"^/private/var/folders/[^/]+/[^/]+/[C,T]/"))
(allow file-write* (subpath "/private/tmp"))
(allow file-write* (subpath "/Users/joe/Library/Caches/Homebrew"))
(allow file-write* (subpath "/Users/joe/Library/Logs/Homebrew/gnupg21"))
(allow file-write* (subpath "/Users/joe/Library/Developer"))
(allow file-write* (subpath "/usr/local/Cellar/gnupg21"))
(allow file-write* (subpath "/usr/local/etc"))
(allow file-write* (subpath "/usr/local/var"))
(allow file-write*
    (literal "/dev/ptmx")
    (literal "/dev/dtracehelper")
    (literal "/dev/null")
    (literal "/dev/zero")
    (regex #"^/dev/fd/[0-9]+$")
    (regex #"^/dev/ttys?[0-9]*$")
    )
(deny file-write*) ; deny non-whitelist file write operations
(allow process-exec
    (literal "/bin/ps")
    (with no-sandbox)
    ) ; allow certain processes running without sandbox
(allow default) ; allow everything else

The environment variables themselves are not different between sandboxed and
non-sandboxed builds.

Mar 2 2017, 11:46 AM · MacOS, Bug Report, gnupg
justus added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Can you please give us ssh -V, and describe the sandbox environment? Does it
affect which ssh version is used?

(I'm mildly annoyed that I have to ask again. You are not forthcoming with
information about your environment. macOS is somewhat alien for us, and if you
want help with tracking down the issue, you need to give us more information.
Note that we really do make an effort, and we have a macOS build slave that does
not see these issues:

https://jenkins.gnupg.org/job/gnupg/XTARGET=native,label=macos/

(though we get our build dependencies from pkgsrc, and you get it from your
packages I guess, so there are bound to be differences).)

From your latest log I see that the version of ssh used supports ed25519, so
this must be version newer than 6.5.

I just committed a patch that dumps the ssh version and the path to the binary
when executing the test:

https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commitdiff;h=74cb3b230c1f99afc5fd09bccc24186a63b154b0

Mar 2 2017, 11:19 AM · MacOS, Bug Report, gnupg
ilovezfs added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

Here's the successful log with --no-sandbox:
https://gist.githubusercontent.com/ilovezfs/a886421569e625d0b7051cf8e9bfea53/raw/77aec417f54ed3d996eb340f826de9d7569088f5/gistfile1.txt

Mar 2 2017, 10:52 AM · MacOS, Bug Report, gnupg
justus added a comment to T2980: ssh-import.scm fails during "make check" with gnupg 2.1.19.

This is not about socket directories, and SSH_AUTH_SOCK is set properly (as
demonstrated by the fact that dsa and rsa works).

Mar 2 2017, 10:49 AM · MacOS, Bug Report, gnupg
justus closed T2847: ssh.scm fails to import ecdsa key on macOS as Resolved.
Mar 2 2017, 10:19 AM · MacOS, Bug Report, gnupg