๋ง์คํฐ์์ Fcrypt ํ ์คํธ ์ผ์ด์ค ์คํจ:
122/131 MemCheck #93: testmod_fcrypt ...................***Failed 29.99 sec
OK closing connection
Terminating gpg-agent returned with status โ256โFCRYPT TESTS
==================
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:161: error in test_gpg: failed to install the GPG test key
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:189: error in test_file_crypto_operations: kdb set failed
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:190: error in test_file_crypto_operations: file content did not change during encryption
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:193: error in test_file_crypto_operations: kdb get (pregetstorage) failed
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:197: error in test_file_crypto_operations: kdb get (postgetstorage) failed
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:198: error in test_file_crypto_operations: postgetstorage did not encrypt the file again
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:233: error in test_file_signature_operations: kdb set failed
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:234: error in test_file_signature_operations: file content did not change during encryption
/home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA/src/plugins/fcrypt/testmod_fcrypt.c:237: error in test_file_signature_operations: kdb get failed
fcrypt Results: 39 Tests done โ 9 errors.
@petermax2 ์ด๋ค ์๊ฐ์ด ์์ต๋๊น?
gpgme๋ ์ํฅ์ ๋ฐ๋ ๊ฒ ๊ฐ์ต๋๋ค.
62/137 MemCheck #103: testmod_gpgme ....................***Failed 44.22 sec
GPGME TESTS
==================
[repetitions cut]
GPGME TESTS
==================
OK closing connection
Terminating gpg-agent returned with status โ256โGPGME TESTS
==================
/home/jenkins/workspace/libelektra_PR-1950-LKQXQDFYJCAZVRKFRKER3H4ZYYVI5QHMP5O7HG5TCW7WRVITCO5A/src/plugins/gpgme/testmod_gpgme.c:227: error in test_encryption_decryption: kdb get failed
/home/jenkins/workspace/libelektra_PR-1950-LKQXQDFYJCAZVRKFRKER3H4ZYYVI5QHMP5O7HG5TCW7WRVITCO5A/src/plugins/gpgme/testmod_gpgme.c:243: error in test_encryption_decryption: key type not restored to string during decryption
/home/jenkins/workspace/libelektra_PR-1950-LKQXQDFYJCAZVRKFRKER3H4ZYYVI5QHMP5O7HG5TCW7WRVITCO5A/src/plugins/gpgme/testmod_gpgme.c:244: error in test_encryption_decryption: key content not restored during decryption
/home/jenkins/workspace/libelektra_PR-1950-LKQXQDFYJCAZVRKFRKER3H4ZYYVI5QHMP5O7HG5TCW7WRVITCO5A/src/plugins/gpgme/testmod_gpgme.c:254: error in test_encryption_decryption: key content not restored during decryption
gpgme Results: 45 Tests done โ 4 errors.
@petermax2 ์ด๋ค ์๊ฐ์ด ์์ต๋๊น?
์์งํ ๋งํด์, ์๋. ๋ฐํ ์ฝ๋๋ ๋ฌธ์๊ฐ ์๋์ง๋ง ๋ค์์ ์๋ฏธํ ์ ์์ต๋๋ค.
./src/gpg-error.h.in:968:#define GPGRT_LOG_RUN_DETACHED 256
./src/gpg-error.h.in:1175:#define ARGPARSE_FLAG_STOP_SEEN 256 /* Set to true if a "--" has been seen. */
์ฝ๋๋ฅผ ํ์ด๋ด๋ 256
์ ์๋ฏธ๋ฅผ ์ฐพ์ ์ ์์์ต๋๋ค.
๋ํ ํ์์ ๊ฐ์ด ๋ก์ปฌ์์ ๋ฌธ์ ๋ฅผ ์ฌํํ ์ ์์ต๋๋ค. :์ค๋งํ:
๋ด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
๋ณต์ ๋ ๋ค์ ์ด๋ ค์ธ ๊ฒ์ด๋ฉฐ, ์ฐ๋ฐ์ ์ผ๋ก ๋ง์คํฐ ๋ธ๋์น( @sanssecours ๋๋ PR ๋ด์์๋ ๋ณด์์ต๋๊น?)์์๋ง ๋ฐ์ํ๋ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค.
๋๊ฐ ์ธ์
OK closing connection
๊ทธ๋ฆฌ๊ณ
Terminating gpg-agent returned with status โ256โ
?
PR ์์ ์ ํ๋ ๋์ ๊ฐํ์ ์ผ๋ก ์ด๊ฒ์ ๋ณด์์ต๋๋ค. ์ฌ๊ฑด์ถ ํ ์์ด์ก์ต๋๋ค.
๋ด ๊ฐ์ธ ์ ํจ์ค์์๋ ๋งค์ฐ ๋์ ๋ถํ๋ฅผ ๋ฐ๋ ๊ฒ์ ๋ณธ ๊ฒ ๊ฐ์ต๋๋ค. ์ฌ๊ธฐ์์ ์๊ฐ์ด ์ด๊ณผ๋๋ ๊ฒ์ด ๊ฐ๋ฅํ๊ฐ์?
์ฌ๊ธฐ์์ ์๊ฐ์ด ์ด๊ณผ๋๋ ๊ฒ์ด ๊ฐ๋ฅํ๊ฐ์?
์๋ง๋! libassuan์ ๊ตฌํ์ ๋ฐ๋ผ ๋ค๋ฆ ๋๋ค.
์ํ ์ ๋ฐ์ดํธ: ์ด ๋ฌธ์ ๋ฅผ ๊ทน๋ณตํ๋ ๋ฐฉ๋ฒ์ ์์ง ๋ชจ๋ฆ ๋๋ค. ์ด๋ค ์์ด๋์ด๋ผ๋ ํ์ํฉ๋๋ค!
์ ๋ฐ์ดํธ ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
์์ผ๋ก ๊ฐ์ผ ํ ๊ธธ์ GPG ์ฌ๋๋ค์๊ฒ ๋ณด๊ณ ํ๋ ๊ฒ์ด๋ผ๊ณ ์๊ฐํฉ๋๋ค. ์ฐ๋ฆฌ๋ ์ด๋ฏธ ์ข ๋ฃ ์ฝ๋์ ๊ฐ์ด ๊ด๋ จ๋ ๋ชจ๋ ๊ฒ์ ์๊ณ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ๊ทธ๋ค๋ง์ด (๋๊ตฐ๊ฐ๊ฐ ์๋ค๋ฉด) ์ด๊ฒ์ด ์ด๋ป๊ฒ ์ผ์ด๋ ์ ์๋์ง ํด์ํ ์ ์์ต๋๋ค.
๊ทธ๋ค์ด ๋ค์๊ณผ ๊ฐ์ด ๋งํ๋ค๋ฉด: ์ค, ์, ๋๋๋ก ์ด ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค. ์ด ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ฉด ํ๋ฌ๊ทธ์ธ์ด gpg๋ฅผ ๋ค์ ์คํํ๋ ๊ฒ์ ๊ณ ๋ คํด์ผ ํฉ๋๋ค.
ใ ์ด ๋ฌธ์ ๊ฐ ์ฌ์ ํ ๋ฐ์ํ๋์ง ํ์คํ์ง ์์ต๋๋ค. ๋๋ ๊ทธ๋ค์ ์ต๊ทผ์ ๋ณด์ง ๋ชปํ๋ค.
ใ ์ด ๋ฌธ์ ๊ฐ ์ฌ์ ํ ๋ฐ์ํ๋์ง ํ์คํ์ง ์์ต๋๋ค. ๋๋ ๊ทธ๋ค์ ์ต๊ทผ์ ๋ณด์ง ๋ชปํ๋ค.
Jenkins ๋น๋ ์๋ฒ์์ testmod_fcrypt
๋ฅผ ๋นํ์ฑํํ์ต๋๋ค .
์๋ฆผ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ๋ค๋ฅธ ๋น๋ ์์คํ ์์๋ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ง ์์์ต๋๊น?
๊ทธ๋ฆฌ๊ณ ๋ค๋ฅธ ๋น๋ ์์คํ ์์๋ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ง ์์์ต๋๊น?
๊ทธ๋ด ์๋ ์์ง๋ง ๋ฌธ์ #2439์ ์ค๋ช
์ ๋ฐ๋ฅด๋ฉด testmod_fcrypt
๋ Jenkins ๋น๋ ์๋ฒ์์๋ง ์ ๊ธฐ์ ์ผ๋ก ์คํจํฉ๋๋ค.
๋๊ตฐ๊ฐ๊ฐ ์คํจ๋ฅผ ๋ฐ๊ฒฌํ๋ฉด ์ฌ๊ธฐ์ ๊ฒ์ํ์ญ์์ค.
์ฐ๋ฆฌ๋ ๋ํ ์ง๋ PR(#3395 ) ๋์ Debian Unstable์์ testmod_crypto
์ธํด ๋ฐ์ํ ๊ฒ๊ณผ ๋๊ฐ์ ์ค๋ฅ๋ฅผ ๊ด์ฐฐํ์ต๋๋ค.
๋น๋ ์๋ฒ์์ ์ผ์ด๋๋ ์ผ์ ๋ ์ ์ดํดํ๊ธฐ ์ํด execv
๋ฅผ ์ฌ์ฉํ๋๋ก ์ด ์น์
์ ๋ค์ ์์ฑํ๊ฒ ์ต๋๋ค.
์ค๋ฅ๊ฐ ๋ค์ ๋ฐ์ํ๋ฉด ์ด ๋ฌธ์ ๋ฅผ ๋ค์ ์ฌ์ญ์์ค.
์ค๋ฅ๊ฐ ๋ค์ ๋ฐ์ํ์ต๋๋ค. ์์ง ์กฐ์ฌ ์ค์ ๋๋ค.
์ค๋ฅ๊ฐ ๋ค์ ๋ฐ์ํ๋ฉด ์ ์๊ฒ ping์ ๋ณด๋ด์ฃผ์ญ์์ค.
gpgme์์ ๋ค์ ๋ฐ์ํ์ต๋๋ค . (๋ชจ๋ ํ๋ฌ๊ทธ์ธ์ ๋ํด ๋ณ๋์ ๋ฌธ์ ๋ฅผ ์ด์ด์ผ ํ๋์ง ์๋๋ฉด ์ด ๋ฉํ ๋ฌธ์ ๋ฅผ ์ ์งํด์ผ ํ๋์ง ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.)
80/137 MemCheck #87: testmod_gpgme ....................***Failed 43.49 sec
GPGME TESTS
==================
[... mpranj truncated a little bit here ...]
GPGME TESTS
==================
/home/jenkins/workspace/libelektra_PR-3419/src/plugins/gpgme/testmod_gpgme.c:227: error in test_encryption_decryption: kdb get failed
/home/jenkins/workspace/libelektra_PR-3419/src/plugins/gpgme/testmod_gpgme.c:243: error in test_encryption_decryption: key type not restored to string during decryption
/home/jenkins/workspace/libelektra_PR-3419/src/plugins/gpgme/testmod_gpgme.c:244: error in test_encryption_decryption: key content not restored during decryption
/home/jenkins/workspace/libelektra_PR-3419/src/plugins/gpgme/testmod_gpgme.c:254: error in test_encryption_decryption: key content not restored during decryption
gpgme Results: 45 Tests done โ 4 errors.
๋ชจ๋ ํ๋ฌ๊ทธ์ธ์ ๋ํด ๋ณ๋์ ๋ฌธ์ ๋ฅผ ์ด์ด์ผ ํ๋์ง ์๋๋ฉด ์ด ๋ฉํ ๋ฌธ์ ๋ฅผ ์ ์งํด์ผ ํ๋์ง ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.
๋์ผํ(๋๋ ๋งค์ฐ ์ ์ฌํ) gpg ๊ด๋ จ ์ค๋ฅ๋ผ๊ณ ์๊ฐํฉ๋๋ค. ๋ค๋ฅธ ๋ฌธ์ ๋ฅผ ์ด โโํ์๋ ์๋ค๊ณ ์๊ฐํฉ๋๋ค.
gpgme(๋๋ valgrind์ ํจ๊ป gpgme)๋ stdout ๋ฐ stderr์ ์ถ๋ ฅ์ด ๋ฆฌ๋๋ ์ ๋๋ ๊ฒฝ์ฐ ๋ฌธ์ ๋ฅผ ์ผ์ผํค๋ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค.
GPGME TESTS
==================
==155492== Warning: invalid file descriptor 1012 in syscall close()
==155492== Warning: invalid file descriptor 1013 in syscall close()
==155492== Warning: invalid file descriptor 1014 in syscall close()
==155492== Warning: invalid file descriptor 1015 in syscall close()
==155492== Use --log-fd=<number> to select an alternative log fd.
==155492== Warning: invalid file descriptor 1016 in syscall close()
==155492== Warning: invalid file descriptor 1017 in syscall close()
==155492== Warning: invalid file descriptor 1018 in syscall close()
==155491==
==155491== HEAP SUMMARY:
==155491== in use at exit: 25,235 bytes in 176 blocks
==155491== total heap usage: 802 allocs, 626 frees, 119,751 bytes allocated
==155491==
==155491== LEAK SUMMARY:
==155491== definitely lost: 0 bytes in 0 blocks
==155491== indirectly lost: 0 bytes in 0 blocks
==155491== possibly lost: 0 bytes in 0 blocks
==155491== still reachable: 23,146 bytes in 163 blocks
==155491== suppressed: 2,089 bytes in 13 blocks
==155491== Reachable blocks (those to which a pointer was found) are not shown.
==155491== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==155491==
==155491== For counts of detected and suppressed errors, rerun with: -v
==155491== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
GPGME TESTS
==================
gpgme Results: 45 Tests done โ 0 errors.
==155462==
==155462== HEAP SUMMARY:
==155462== in use at exit: 4,833 bytes in 39 blocks
==155462== total heap usage: 955 allocs, 916 frees, 698,713 bytes allocated
==155462==
==155462== LEAK SUMMARY:
==155462== definitely lost: 0 bytes in 0 blocks
==155462== indirectly lost: 0 bytes in 0 blocks
==155462== possibly lost: 0 bytes in 0 blocks
==155462== still reachable: 3,241 bytes in 35 blocks
==155462== suppressed: 1,592 bytes in 4 blocks
==155462== Reachable blocks (those to which a pointer was found) are not shown.
==155462== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==155462==
==155462== For counts of detected and suppressed errors, rerun with: -v
==155462== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
์ด๊ฒ์ด ํ ์คํธ ์ถ๋ ฅ์ด ๋ก๊ทธ ํ์ผ์ ์ฌ๋ฌ ๋ฒ ๊ธฐ๋ก๋๋ ์ด์ ๋ฅผ ์ค๋ช ํ ๊ฒ ๊ฐ์ต๋๋ค.
GPGME TESTS
==================
[truncated output]
GPGME TESTS
==================
GPGME TESTS
==================
gpgme Results: 45 Tests done โ 0 errors.
์ง๊ธ ์ด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๊น?
@petermax2 ๋ ์ํธํ ํ
์คํธ์ ์ผ๋ถ๋ฅผ ๋ค์ ์์ฑํ๊ณ ๋ณ๋์ CI ์์
( debian-buster-cryptoplugins
๋ฐ debian-stretch-cryptoplugins
)์ผ๋ก ์ฎ๊ฒผ์ต๋๋ค.
์ด๋ฌํ ๊ฐ์ ์ฌํญ ์ดํ๋ก ์ด๋ฌํ ํ ์คํธ๊ฐ ์คํจํ๋ ๊ฒ์ ๋ณธ ์ ์ด ์์ต๋๋ค. ์์ ํ๊ฒ ๋ซ์ ์ ์์ ๊ฒ ๊ฐ์์.
ํ์ฌ ์๋ ์ค์ด๋ผ๋ ์์์ ๋ค์ผ๋ ๋คํ์ ๋๋ค. ํผ๋๋ฐฑ ๊ฐ์ฌํฉ๋๋ค!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@petermax2 ๋ ์ํธํ ํ ์คํธ์ ์ผ๋ถ๋ฅผ ๋ค์ ์์ฑํ๊ณ ๋ณ๋์ CI ์์ (
debian-buster-cryptoplugins
๋ฐdebian-stretch-cryptoplugins
)์ผ๋ก ์ฎ๊ฒผ์ต๋๋ค.์ด๋ฌํ ๊ฐ์ ์ฌํญ ์ดํ๋ก ์ด๋ฌํ ํ ์คํธ๊ฐ ์คํจํ๋ ๊ฒ์ ๋ณธ ์ ์ด ์์ต๋๋ค. ์์ ํ๊ฒ ๋ซ์ ์ ์์ ๊ฒ ๊ฐ์์.