Page MenuHome GnuPG

decrypt-unwrap-verify.scm "make check" failure with gnupg 2.1.20
Closed, ResolvedPublic

Description

build log with verbose=2 for decrypt-unwrap-verify.scm here: https://gist.github.com/ilovezfs/afe05474ee4ecfda3a1c3285b2e0ca93

Corresponding PR: https://github.com/Homebrew/homebrew-core/pull/12039
CI: (all 3 are the same failure)
https://bot.brew.sh/job/Homebrew%20Core/20029/version=sierra/consoleText
https://bot.brew.sh/job/Homebrew%20Core/20029/version=el_capitan/consoleText
https://bot.brew.sh/job/Homebrew%20Core/20029/version=yosemite/consoleText

Error looks like it's

Checking unwrapping the encryption. 
    > encsig-2-keys-3 Executing: '/private/tmp/gnupg-20170404-73294-rxwd4m/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--output' '/tmp/gpgscm-20170404T143908-decrypt-unwrap-verify-rJcwPU/a' '--yes' '--decrypt' '--unwrap' '/private/tmp/gnupg-20170404-73294-rxwd4m/gnupg-2.1.20/tests/openpgp/samplemsgs/encsig-2-keys-3.asc'
Executing: '/private/tmp/gnupg-20170404-73294-rxwd4m/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--import' '/tmp/gpgscm-20170404T143907-decrypt-unwrap-verify-IZKH11/steve's-key'
("/private/tmp/gnupg-20170404-73294-rxwd4m/gnupg-2.1.20/g10/gpg" --no-permission-warning --always-trust --import "/tmp/gpgscm-20170404T143907-decrypt-unwrap-verify-IZKH11/steve's-key") failed: ("gpg: keybox '/tmp/gpgscm-20170404T143908-decrypt-unwrap-verify-HelFvl/pubring.kbx' created\ngpg: key AA43F1DCC7FED1B7: public key \"steve.biko@example.net\" imported\ngpg: failed to start agent '/usr/local/Cellar/gnupg/2.1.20/bin/gpg-agent': No such file or directory\ngpg: can't connect to the agent: No such file or directory\ngpg: Total number processed: 1\ngpg:               imported: 1\n")
0: tests.scm:133: (throw (string-append (stringify what) " failed") (:stderr result))
1: decrypt-unwrap-verify.scm:39: (call-check `(,@gpg --import ,steve's-key))
2: init.scm:443: (thunk)
3: (dynamic-wind (lambda () (setenv "GNUPGHOME" gensym-33 #t)) (lambda () (call-check `(,@gpg --import ,steve's-key)) (call-check `(,@gpg --verify ,unwrapped))) (lambda () (setenv "GNUPGHOME" gensym-32 #t)))

Event Timeline

ilovezfs created this object in space S1 Public.

@justus hmm … still seems to be failing even with the new commits:

https://gist.githubusercontent.com/ilovezfs/d4709b0d149a7ccbdd3134059d0712e2/raw/b055750976ec3b068a0407d8b6a1777dcf63fc78/gistfile1.txt

bash-3.2$ make -Ctests/openpgp check XTESTS=decrypt-unwrap-verify.scm verbose=2
LC_ALL=C EXEEXT= PATH=../gpgscm:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/npth/bin:/usr/local/opt/libtasn1/bin:/usr/local/opt/nettle/bin:/usr/local/opt/p11-kit/bin:/usr/local/opt/gnutls/bin:/usr/local/opt/libgpg-error/bin:/usr/local/opt/libgcrypt/bin:/usr/local/opt/libksba/bin:/usr/local/opt/libassuan/bin:/usr/local/opt/pinentry/bin:/usr/local/opt/gettext/bin:/usr/local/opt/adns/bin:/usr/bin:/bin:/usr/sbin:/sbin srcdir=/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/openpgp objdir=/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20 GPGSCM_PATH=/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/gpgscm:/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/openpgp /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/gpgscm/gpgscm \
	  run-tests.scm  decrypt-unwrap-verify.scm
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--build-prefix' '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20' '--list-components'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--gpgconf-test' '--always-trust'
 I am going to use these tools:
 ============================== 
gpgconf                   /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf 
gpg                       /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg 
gpg-agent                 /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-agent 
scdaemon                  /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/scd/scdaemon 
gpgsm                     /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/sm/gpgsm 
dirmngr                   /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/dirmngr/dirmngr 
gpg-connect-agent         /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpg-connect-agent 
gpg-preset-passphrase     /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-preset-passphrase 
gpgtar                    /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgtar 
pinentry                  /private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/openpgp/fake-pinentry 
Creating test environment... 
Creating configuration files 
Starting gpg-agent... 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--create-socketdir'
Warning: Creating socket directory failed: gpgconf: socketdir is '/private/tmp/gpgscm-20170405T124704-run-tests-GavXg1'
gpgconf: 	no /run/user dir
gpgconf: 	using homedir as fallback
gpgconf: error creating socket directory
gpgconf: fatal error (exit status 1)
 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpg-connect-agent' '--verbose' '--agent-program=/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-agent|--debug-quick-random' '/bye'
Creating sample data files 
Unpacking samples 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Storing private keys 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Importing public demo and test keys 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--yes' '--import' '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/openpgp/pubdemo.asc'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--yes' '--import' '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/openpgp/pubring.asc'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--yes' '--import' '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/openpgp/samplekeys/rsa-rsa-sample-1.asc'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--dearmor'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--yes' '--import'
gpg: key D634136E439F02CA: public key "pgp5 test <pgp5@dev.null>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Stopping gpg-agent... 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--kill' 'all'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--remove-socketdir'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgtar' '--create' '--output' '/tmp/gpgscm-20170405T124704-run-tests-PMJs27/environment-cache' '.'
Stopping gpg-agent... 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--kill' 'all'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--remove-socketdir'
PASS: setup.scm 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--build-prefix' '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20' '--list-components'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--gpgconf-test' '--always-trust'
Creating test environment... 
Creating configuration files 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgtar' '--extract' '--directory=.' '/tmp/gpgscm-20170405T124704-run-tests-PMJs27/environment-cache'
Starting gpg-agent... 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--create-socketdir'
Warning: Creating socket directory failed: gpgconf: socketdir is '/private/tmp/gpgscm-20170405T124704-run-tests-0YyK4a'
gpgconf: 	no /run/user dir
gpgconf: 	using homedir as fallback
gpgconf: error creating socket directory
gpgconf: fatal error (exit status 1)
 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpg-connect-agent' '--verbose' '--agent-program=/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-agent|--debug-quick-random' '/bye'
Presetting passphrases 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-preset-passphrase' '--preset' '--passphrase' 'def' '50B2D4FA4122C212611048BC5FC31BD44393626E'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-preset-passphrase' '--preset' '--passphrase' 'def' '7E201E28B6FEB2927B321F443205F4724EBE637E'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-preset-passphrase' '--preset' '--passphrase' 'abc' '76F7E2B35832976B50A27A282D9B87E44577EB66'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-preset-passphrase' '--preset' '--passphrase' 'abc' 'A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--output' '/tmp/gpgscm-20170405T124706-decrypt-unwrap-verify-xQI9bQ/steve's-key' '--export' '1D777619BE310D79'
Checking unwrapping the encryption. 
    > encsig-2-keys-3 Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--output' '/tmp/gpgscm-20170405T124706-decrypt-unwrap-verify-qJSHNW/a' '--yes' '--decrypt' '--unwrap' '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tests/openpgp/samplemsgs/encsig-2-keys-3.asc'
Creating test environment... 
Creating configuration files 
Starting gpg-agent... 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--create-socketdir'
Warning: Creating socket directory failed: gpgconf: socketdir is '/private/tmp/gpgscm-20170405T124704-run-tests-0YyK4a'
gpgconf: 	no /run/user dir
gpgconf: 	using homedir as fallback
gpgconf: error creating socket directory
gpgconf: fatal error (exit status 1)
 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpg-connect-agent' '--verbose' '--agent-program=/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/agent/gpg-agent|--debug-quick-random' '/bye'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg' '--no-permission-warning' '--always-trust' '--import' '/tmp/gpgscm-20170405T124706-decrypt-unwrap-verify-xQI9bQ/steve's-key'
("/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/g10/gpg" --no-permission-warning --always-trust --import "/tmp/gpgscm-20170405T124706-decrypt-unwrap-verify-xQI9bQ/steve's-key") failed: ("gpg: keybox '/tmp/gpgscm-20170405T124706-decrypt-unwrap-verify-JskvPY/pubring.kbx' created\ngpg: key AA43F1DCC7FED1B7: public key \"steve.biko@example.net\" imported\ngpg: failed to start agent '/usr/local/Cellar/gnupg/2.1.20/bin/gpg-agent': No such file or directory\ngpg: can't connect to the agent: No such file or directory\ngpg: Total number processed: 1\ngpg:               imported: 1\n")
0: tests.scm:133: (throw (string-append (stringify what) " failed") (:stderr result))
1: decrypt-unwrap-verify.scm:39: (call-check `(,@gpg --import ,steve's-key))
2: init.scm:443: (thunk)
Stopping gpg-agent... 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--kill' 'all'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--remove-socketdir'
Stopping gpg-agent... 
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--kill' 'all'
Executing: '/private/tmp/gnupg-20170405-88877-1v87ky9/gnupg-2.1.20/tools/gpgconf' '--remove-socketdir'
FAIL: decrypt-unwrap-verify.scm 
1 tests run, 0 succeeded, 1 failed, 0 skipped. 
Failed tests: decrypt-unwrap-verify.scm 
make: *** [xcheck] Error 1
bash-3.2$

Incidentally, without any of the new commits, it does "work" to reverse the order of make check and make install again.

system "make"
system "make", "check"
system "make", "install"

does not work

system "make"
system "make", "install"
system "make", "check"

does work.

Output from the successful run https://gist.github.com/ilovezfs/833fe6f24a129fc276ca5d37d92eeb5e