Closed kloczek closed 4 years ago
Try running the tests manually like so:
./test-pgp -vvvv
./test-pgpmime -vvvv
What are the outputs of each of them?
Forrgot to send ypu what you've been asking for.
Sorry
[tkloczko@barrel tests]$ ./test-pgp -vvvv
Checking GMimeGpgContext::import... PASSED
Checking GMimeGpgContext::export... PASSED
signature (pgp-sha1):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
this is some cleartext
-----BEGIN PGP SIGNATURE-----
iF0EARECAB0WIQTaJtq3VyocXyqxp0u0d2DpUYLCAAUCXoI5TAAKCRC0d2DpUYLC
ALv+AJ9GA8NiYjCZU/o4daohctU6GPR6GgCeL6Y3pN8g53qE3G8DgVDKYu/VITw=
=OLGf
-----END PGP SIGNATURE-----
Checking GMimeGpgContext::sign... PASSED
GMimeGpgContext::sign failed: signature BAD
Checking GMimeGpgContext::verify... FAILED
signature (pgp-sha1):
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQTaJtq3VyocXyqxp0u0d2DpUYLCAAUCXoI5TQAKCRC0d2DpUYLC
AOrZAKDDpGxSH8VDRTVE1vOeFGkZwc9kqACg02f0YCI1p5MBq2GTNCT/M1l5d+o=
=zOhM
-----END PGP SIGNATURE-----
Checking GMimeGpgContext::sign (detached)... PASSED
GMimeGpgContext::sign (detached) failed: signature BAD
Checking GMimeGpgContext::verify (detached)... FAILED
ciphertext:
-----BEGIN PGP MESSAGE-----
hQIOAwTJ0obO8knpEAf+LpUdWWYZQfUe5RX9+EDPH0h/WYRZt0O8Pnf1VXbUrAzh
rocg+dnSJoWaL8X06qPtS2mfHXdIIAZXuh5yhTinR+JYJXs+xTRHRxNu8ZRqdCDT
rw6x4PXMyGSlTrJDZ9NP6FifRnb/oKOMQzdFzkAdgfRNvJ82mVNI+484oUEV0uIu
YV7i632SKW+as1ieYYVsZlgPp2nrMRBRk+rpUkj/DL0IhgPVrzGYjWxX59NEB5ku
qUfPNdv1cyAUkrWnMFtZQepg2srWdk00zVbPtizmS08c2ek+OKBmpSGdab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ofuCXI
pq/j9fh+ufQf5acJ1T+gTukzCUFV5DzSV+6cV1gSeVeGZWJxW1TkbxFEE13+h8xW
IlXcI4kj1ohcNxFH3c97ZxJPaW9RrYtHJZeo0qJpXweUeC5aB3f+WaIF7ElX+TmO
OCQSE6NPcufS4nnlbtn3zD+yv6R1mwAJNqCeGpsitSReWTXAWEjSKMoFsBTO+D+i
tDfqouEvinROgqokQzyzpwQ77EGB55Pm0Gr/P0JtTWFmKoq1bJcn9QXyJTl1Kv5c
99K1AX9PFkzaAGZZp07vIXOOVI+E0j7ThWOawlCNauNP660DprBkqoKiKQKqq0rh
PnMy4D4AA6LvWL6xvEkrugwR/QvgISG+kICJ5tRGfqJeJQohRpGPy5NZoucCOMbk
bhwqFdP7rh0XbITMIRkJb3SoNXFEhpzKpKvdskruar5OPNb6lKeux5WFeZulSwEU
rH/l5BE6eFCCqZdLH13k0LCvgbxngMtG844zm01kq3giWKJ2iv1Xbg==
=6JDc
-----END PGP MESSAGE-----
Checking GMimeGpgContext::encrypt+sign... PASSED
GMimeGpgContext::encrypt+sign failed: expected GOOD signature
Checking GMimeGpgContext::decrypt+verify... FAILED
Checking GMimeFilterOpenPGP::public key block... PASSED
Checking GMimeFilterOpenPGP::private key block... PASSED
Checking GMimeFilterOpenPGP::signed message block... PASSED
Checking GMimeFilterOpenPGP::encrypted message block... PASSED
Testing GnuPG crypto context: failed (3 errors, 0 warnings)
[tkloczko@barrel tests]$ ./test-pgpmime -vvvv
Checking GMimeGpgContext::import... PASSED
Overall status: (0x4) BAD
Signatures:
Name: no.user
KeyId: B47760E95182C200
UserID: no.user (no.comment) <no.user@no.domain>
Fingerprint: B47760E95182C200
Trust: Unknown
Status: BAD
Signature made on Thu Jan 1 01:00:00 1970
Signature never expires
Errors: None
multipart/signed failed: signature status was BAD
Checking multipart/signed... FAILED
Checking multipart/encrypted... PASSED
Overall status: (0x4) BAD
Signatures:
Name: no.user
KeyId: B47760E95182C200
UserID: no.user (no.comment) <no.user@no.domain>
Fingerprint: B47760E95182C200
Trust: Unknown
Status: BAD
Signature made on Thu Jan 1 01:00:00 1970
Signature never expires
Errors: None
multipart/encrypted+sign failed: signature status expected to be GOOD
Checking multipart/encrypted+sign... FAILED
Checking rfc4880 sign... PASSED
Checking rfc4880 encrypt... PASSED
Checking rfc4880 sign+encrypt... PASSED
Testing PGP/MIME implementation: failed (2 errors, 0 warnings)
What system is this failing on? I can't reproduce these failures. I also haven't changed anything that would cause this, so I'm tempted to just close it anyway.
It is my own system on which I've started working +1 year ago with almost entirely rebuild Fedora where all packages are rebuild using LTO and --as-needed linker option.
I'm not sure what the problem could be. GpgME is used to generate the signature and verify it, so if it's failing on your system, I imagine it has to be specific to your system because I can't make it fail on my system.
OK. How could you approach to diagnose those faults?
Just please give me some hints and I'll try to follow :)
I guess your best bet is to git-bisect to figure out which commit broke it and go from there.
Just tested 3.2.12 and test suite still fails
Run ./test-filters -vvvv
Here it is
[tkloczko@devel-g2v tests]$ ./test-filters -vvvv
Checking GMimeFilterCharset (cyrillic utf-8 -> cp1251)... PASSED
Checking GMimeFilterCharset (cyrillic cp1251 -> utf-8)... PASSED
Checking GMimeFilterCharset (cyrillic utf-8 -> iso-8859-5)... PASSED
Checking GMimeFilterCharset (cyrillic iso-8859-5 -> utf-8)... PASSED
Checking GMimeFilterCharset (cyrillic utf-8 -> koi8-r)... PASSED
Checking GMimeFilterCharset (cyrillic koi8-r -> utf-8)... PASSED
Checking GMimeFilterCharset (japanese utf-8 -> iso-2022-jp)... PASSED
Checking GMimeFilterCharset (japanese iso-2022-jp -> utf-8)... PASSED
Checking GMimeFilterCharset (japanese utf-8 -> shift-jis)... PASSED
Checking GMimeFilterCharset (japanese shift-jis -> utf-8)... PASSED
Checking GMimeFilterEnriched (enriched.txt)... PASSED
GMimeFilterGzip::zip failed: streams are not the same length: 1212
Checking GMimeFilterGzip::zip... FAILED
Checking GMimeFilterGzip::unzip... PASSED
Checking GMimeFilterHtml (html-input.txt blockquote)... PASSED
Checking GMimeFilterHtml (html-input.txt mark)... PASSED
Checking GMimeFilterHtml (html-input.txt cite)... PASSED
Checking GMimeFilterSmtpData... PASSED
Checking GMimeFilterWindows... PASSED
Testing GMimeFilter: failed (1 errors, 0 warnings)
Just in case I'm using zlib-ng
https://github.com/zlib-ng/zlib-ng/