Skip to content

Consistent OpenSSL 3.0.5 unit test cases failure. #19024

Closed

Description

@wxt

Edit1: Tried out 3.0.5 release and 01-test_test.t and 20-test_dgst.t test cases are also failing consistently on each run. Please see verbose output for both test cases in the comment.

Original:
Using OpenSSL 3.0.1 tagged version there are a couple of unit test case(s) failed consistently on each rerun. Tried a couple of reruns and the failed test case(s) are consistently the same on both Windows and MacOS.

Configuration:

Windows 10 with Visual Studio 2019
MacOS Big Sur with Xcode 12

Windows Release build always failed on:

01-test_test.t
20-test_dgst.t
80-test_ssl_new.t

Windows Debug build always failed on:

20-test_dgst.t
80-test_ssl_new.t

MacOS Release and Debug build always failed on:

80-test_ssl_new.t

The following is the Windows Release build with all 3 failed test cases:

 01-test_abort.t .................... ok
 01-test_fipsmodule_cnf.t ........... ok
 01-test_sanity.t ................... ok
 01-test_symbol_presence.t .......... skipped: This is unsupported on MSYS, MinGW or MSWin32
 
     # ERROR: (BIGNUM) 'b <= c' failed @ test\test_test.c:366
     # --- b
     # +++ c
     #                                                               bit position
     # -                                                                  1:    0
     # +                                                          -13f3b7ef:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'b < c' failed @ test\test_test.c:363
     # --- b
     # +++ c
     #                                                               bit position
     # -                                                                  1:    0
     # +                                                          -13f3b7ef:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'b == c' failed @ test\test_test.c:330
     # --- b
     # +++ c
     #                                                               bit position
     # -                                                                  1:    0
     # +                                                          -13f3b7ef:    0
     #                                                                    ^
     # 
 # FATAL: TEST_BN_eq(b, c) != 1
     # ERROR: (BIGNUM) 'c >= b' failed @ test\test_test.c:371
     # --- c
     # +++ b
     #                                                               bit position
     # -                                                          -13f3b7ef:    0
     # +                                                                  1:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'c > b' failed @ test\test_test.c:368
     # --- c
     # +++ b
     #                                                               bit position
     # -                                                          -13f3b7ef:    0
     # +                                                                  1:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'a <= c' failed @ test\test_test.c:364
     # --- a
     # +++ c
     #                                                               bit position
     # -                                                                  0:    0
     # +                                                          -13f3b7ef:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'a < c' failed @ test\test_test.c:361
     # --- a
     # +++ c
     #                                                               bit position
     # -                                                                  0:    0
     # +                                                          -13f3b7ef:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'a == b' failed @ test\test_test.c:359
     # --- a
     # +++ b
     #                                                               bit position
     # -                                                                  0:    0
     # +                                                                  1:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'a == b' failed @ test\test_test.c:331
     # --- a
     # +++ b
     #                                                               bit position
     # -                                                                  0:    0
     # +                                                                  1:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'a != a' failed @ test\test_test.c:358
     #                                                               bit position
     #                                                                    0:    0
     # 
     # ERROR: (BIGNUM) 'a == 30' failed @ test\test_test.c:319
     # --- a
     # +++ 30
     #                                                               bit position
     # -                                                                  0:    0
     # +                                                                 1e:    0
     #                                                                    ^
     # 
     # ERROR: (BIGNUM) 'b abs== 0' failed @ test\test_test.c:336
     # --- b
     # +++ 0
     #                                                               bit position
     # -                                                                  1:    0
     # +                                                                  0:    0
     #                                                                    ^
     # 
 # FATAL: TEST_BN_ne(NULL, c) != 0
     # ERROR: (BIGNUM) 'c == 334739439' failed @ test\test_test.c:347
     # --- c
     # +++ 334739439
     #                                                               bit position
     # -                                                          -13f3b7ef:    0
     # +                                                           13f3b7ef:    0
     # 
     # ERROR: (BIGNUM) 'EVEN( c )' failed @ test\test_test.c:355
     #                                                               bit position
     #                                                            -13f3b7ef:    0
     # 
     # ERROR: (BIGNUM) 'c > 0' failed @ test\test_test.c:354
     #                                                               bit position
     #                                                            -13f3b7ef:    0
     # 
     # ERROR: (BIGNUM) 'c >= 0' failed @ test\test_test.c:353
     #                                                               bit position
     #                                                            -13f3b7ef:    0
     # 
     # ERROR: (BIGNUM) 'c == 0' failed @ test\test_test.c:349
     #                                                               bit position
     #                                                            -13f3b7ef:    0
     # 
     # ERROR: (BIGNUM) 'EVEN( b )' failed @ test\test_test.c:344
     #                                                               bit position
     #                                                                    1:    0
     # 
     # ERROR: (BIGNUM) 'b < 0' failed @ test\test_test.c:341
     #                                                               bit position
     #                                                                    1:    0
     # 
     # ERROR: (BIGNUM) 'b <= 0' failed @ test\test_test.c:340
     #                                                               bit position
     #                                                                    1:    0
     # 
     # ERROR: (BIGNUM) 'b == 0' failed @ test\test_test.c:338
     #                                                               bit position
     #                                                                    1:    0
     # 
     # ERROR: (BIGNUM) 'ODD( a )' failed @ test\test_test.c:329
     #                                                               bit position
     #                                                                    0:    0
     # 
     # ERROR: (BIGNUM) 'a > 0' failed @ test\test_test.c:327
     #                                                               bit position
     #                                                                    0:    0
     # 
     # ERROR: (BIGNUM) 'a < 0' failed @ test\test_test.c:325
     #                                                               bit position
     #                                                                    0:    0
     # 
     # ERROR: (BIGNUM) 'a != 0' failed @ test\test_test.c:323
     #                                                               bit position
     #                                                                    0:    0
     # 
     # ERROR: (BIGNUM) 'a == 1' failed @ test\test_test.c:321
     #                                                               bit position
     #                                                                    0:    0
     # 
     # OPENSSL_TEST_RAND_ORDER=1660779516
     not ok 14 - test_bignum
 # ------------------------------------------------------------------------------
 C:\perl64\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\test\test_test.exe => 1
 not ok 1 - running test_test
 # ------------------------------------------------------------------------------
 #   Failed test 'running test_test'
 #   at C:\\openssl\util\perl/OpenSSL/Test/Simple.pm line 77.
 # Looks like you failed 1 test of 1.01-test_test.t ..................... 
 Dubious, test returned 1 (wstat 256, 0x100)
 Failed 1/1 subtests 
 02-test_errstr.t ................... skipped: This is unsupported on MSYS/MinGW or MSWin32
 02-test_internal_context.t ......... ok
 02-test_internal_ctype.t ........... ok
 02-test_internal_keymgmt.t ......... ok
 02-test_internal_provider.t ........ ok
 02-test_lhash.t .................... ok
 02-test_ordinals.t ................. ok
 02-test_sparse_array.t ............. ok
 02-test_stack.t .................... ok
 03-test_exdata.t ................... ok
 03-test_fipsinstall.t .............. ok
 03-test_internal_asn1.t ............ ok
 03-test_internal_asn1_dsa.t ........ ok
 03-test_internal_bn.t .............. skipped: This test is unsupported in a shared library build on Windows
 03-test_internal_chacha.t .......... ok
 03-test_internal_curve448.t ........ ok
 03-test_internal_ec.t .............. ok
 03-test_internal_ffc.t ............. ok
 03-test_internal_mdc2.t ............ skipped: mdc2 is not supported by this OpenSSL build
 03-test_internal_modes.t ........... ok
 03-test_internal_namemap.t ......... ok
 03-test_internal_poly1305.t ........ ok
 03-test_internal_rsa_sp800_56b.t ... skipped: This test is unsupported in a shared library build on Windows
 03-test_internal_siphash.t ......... ok
 03-test_internal_sm2.t ............. ok
 03-test_internal_sm3.t ............. ok
 03-test_internal_sm4.t ............. ok
 03-test_internal_ssl_cert_table.t .. ok
 03-test_internal_x509.t ............ ok
 03-test_params_api.t ............... ok
 03-test_property.t ................. ok
 03-test_ui.t ....................... ok
 04-test_asn1_decode.t .............. ok
 04-test_asn1_encode.t .............. ok
 04-test_asn1_string_table.t ........ ok
 04-test_bio_callback.t ............. ok
 04-test_bio_core.t ................. ok
 04-test_bioprint.t ................. ok
 04-test_conf.t ..................... ok
 04-test_encoder_decoder.t .......... ok
 04-test_encoder_decoder_legacy.t ... ok
 04-test_err.t ...................... ok
 04-test_hexstring.t ................ ok
 04-test_param_build.t .............. ok
 04-test_params.t ................... ok
 04-test_params_conversion.t ........ ok
 04-test_pem_read_depr.t ............ ok
 04-test_pem_reading.t .............. ok
 04-test_provfetch.t ................ ok
 04-test_provider.t ................. ok
 04-test_provider_fallback.t ........ ok
 04-test_provider_pkey.t ............ ok
 04-test_upcalls.t .................. ok
 05-test_bf.t ....................... skipped: bf is not supported by this OpenSSL build
 05-test_cast.t ..................... skipped: cast is not supported by this OpenSSL build
 05-test_cmac.t ..................... ok
 05-test_des.t ...................... ok
 05-test_hmac.t ..................... ok
 05-test_idea.t ..................... skipped: idea is not supported by this OpenSSL build
 05-test_pbe.t ...................... ok
 05-test_rand.t ..................... ok
 05-test_rc2.t ...................... ok
 05-test_rc4.t ...................... ok
 05-test_rc5.t ...................... skipped: rc5 is not supported by this OpenSSL build
 06-test_algorithmid.t .............. ok
 06-test_rdrand_sanity.t ............ ok
 10-test_bn.t ....................... ok
 10-test_exp.t ...................... ok
 15-test_dh.t ....................... ok
 15-test_dsa.t ...................... ok
 15-test_dsaparam.t ................. ok
 15-test_ec.t ....................... ok
 15-test_ecdsa.t .................... ok
 15-test_ecparam.t .................. ok
 15-test_gendh.t .................... ok
 15-test_gendhparam.t ............... ok
 15-test_gendsa.t ................... ok
 15-test_genec.t .................... ok
 15-test_genrsa.t ................... ok
 15-test_mp_rsa.t ................... ok
 15-test_out_option.t ............... ok
 15-test_rsa.t ...................... ok
 15-test_rsaoaep.t .................. ok
 15-test_rsapss.t ................... ok
 15-test_sha.t ...................... ok
 20-test_app.t ...................... ok
 20-test_cli_fips.t ................. ok
 
 C:\perl64\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\apps\openssl.exe dgst -sha256 -hmac 123456 ..\..\test\data.bin ..\..\test\data.bin => 0
     not ok 1 - HMAC: Check HMAC value is as expected (HMAC-SHA2-256(..\..\test\data.bin)= 53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94) vs ((?^:HMAC-SHA2-256\(\.\.\\\.\.\\test\\data\.bin\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a155c391b97b9a7c))
 # ------------------------------------------------------------------------------
     #   Failed test 'HMAC: Check HMAC value is as expected (HMAC-SHA2-256(..\..\test\data.bin)= 53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94) vs ((?^:HMAC-SHA2-256\(\.\.\\\.\.\\test\\data\.bin\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a155c391b97b9a7c))'
     #   at test\recipes\20-test_dgst.t line 134.
     not ok 2 - HMAC: Check second HMAC value is consistent with the first (HMAC-SHA2-256(..\..\test\data.bin)= 53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94) vs ((?^:HMAC-SHA2-256\(\.\.\\\.\.\\test\\data\.bin\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a155c391b97b9a7c))
 # ------------------------------------------------------------------------------
     #   Failed test 'HMAC: Check second HMAC value is consistent with the first (HMAC-SHA2-256(..\..\test\data.bin)= 53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94) vs ((?^:HMAC-SHA2-256\(\.\.\\\.\.\\test\\data\.bin\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a155c391b97b9a7c))'
     #   at test\recipes\20-test_dgst.t line 135.
     # Looks like you failed 2 tests of 2.
 not ok 7 - HMAC generation with `dgst` CLI
 # ------------------------------------------------------------------------------
 C:\perl64\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\apps\openssl.exe dgst -hmac 123456 ..\..\test\data.bin ..\..\test\data.bin => 0
     not ok 1 - HMAC: Check HMAC value is as expected (HMAC-SHA256(..\..\test\data.bin)= 53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94) vs ((?^:HMAC-SHA256\(\.\.\\\.\.\\test\\data\.bin\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a155c391b97b9a7c))
 # ------------------------------------------------------------------------------
     #   Failed test 'HMAC: Check HMAC value is as expected (HMAC-SHA256(..\..\test\data.bin)= 53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94) vs ((?^:HMAC-SHA256\(\.\.\\\.\.\\test\\data\.bin\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a155c391b97b9a7c))'
     #   at test\recipes\20-test_dgst.t line 148.
     not ok 2 - HMAC: Check second HMAC value is consistent with the first (HMAC-SHA256(..\..\test\data.bin)= 53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94) vs ((?^:HMAC-SHA256\(\.\.\\\.\.\\test\\data\.bin\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a155c391b97b9a7c))
 # ------------------------------------------------------------------------------
     #   Failed test 'HMAC: Check second HMAC value is consistent with the first (HMAC-SHA256(..\..\test\data.bin)= 53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94) vs ((?^:HMAC-SHA256\(\.\.\\\.\.\\test\\data\.bin\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a155c391b97b9a7c))'
     #   at test\recipes\20-test_dgst.t line 149.
     # Looks like you failed 2 tests of 2.
 not ok 8 - HMAC generation with `dgst` CLI, default digest
 # ------------------------------------------------------------------------------
 hexkey:FFFF: No such file or directory
 30130000:error:80000002:system library:file_ctrl:No such file or directory:crypto\bio\bss_file.c:297:calling fopen(hexkey:FFFF, rb)
 30130000:error:10080002:BIO routines:file_ctrl:system lib:crypto\bio\bss_file.c:300:
 C:\perl64\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\apps\openssl.exe dgst -sha256 -hmac -macopt hexkey:FFFF ..\..\test\data.bin ..\..\test\data.bin => 1
     not ok 1 - HMAC: Check HMAC value is as expected (HMAC-SHA2-256(..\..\test\data.bin)= db8d10d9aa5863d6b442248fcffca1f20f80a1a2f4d9c7fd2766754ba5af68ad) vs ((?^:HMAC-SHA2-256\(\.\.\\\.\.\\test\\data\.bin\)= b6727b7bb251dfa65846e0a8223bdd57d244aa6d7e312cb906d8e21f2dee3a57))
 # ------------------------------------------------------------------------------
     #   Failed test 'HMAC: Check HMAC value is as expected (HMAC-SHA2-256(..\..\test\data.bin)= db8d10d9aa5863d6b442248fcffca1f20f80a1a2f4d9c7fd2766754ba5af68ad) vs ((?^:HMAC-SHA2-256\(\.\.\\\.\.\\test\\data\.bin\)= b6727b7bb251dfa65846e0a8223bdd57d244aa6d7e312cb906d8e21f2dee3a57))'
     #   at test\recipes\20-test_dgst.t line 163.
     not ok 2 - HMAC: Check second HMAC value is consistent with the first (HMAC-SHA2-256(..\..\test\data.bin)= db8d10d9aa5863d6b442248fcffca1f20f80a1a2f4d9c7fd2766754ba5af68ad) vs ((?^:HMAC-SHA2-256\(\.\.\\\.\.\\test\\data\.bin\)= b6727b7bb251dfa65846e0a8223bdd57d244aa6d7e312cb906d8e21f2dee3a57))
 # ------------------------------------------------------------------------------
     #   Failed test 'HMAC: Check second HMAC value is consistent with the first (HMAC-SHA2-256(..\..\test\data.bin)= db8d10d9aa5863d6b442248fcffca1f20f80a1a2f4d9c7fd2766754ba5af68ad) vs ((?^:HMAC-SHA2-256\(\.\.\\\.\.\\test\\data\.bin\)= b6727b7bb251dfa65846e0a8223bdd57d244aa6d7e312cb906d8e21f2dee3a57))'
     #   at test\recipes\20-test_dgst.t line 164.
     # Looks like you failed 2 tests of 2.
 not ok 9 - HMAC generation with `dgst` CLI, key via option
 # ------------------------------------------------------------------------------
 C:\perl64\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\apps\openssl.exe dgst -shake128 -xoflen 64 ..\..\test\data.bin ..\..\test\data.bin => 0
     not ok 1 - XOF: Check digest value is as expected (SHAKE-128(..\..\test\data.bin)= 71172feb7b33100998bad01684a58cb0aeca07f8ef4517c750ee193fff0f4377ac113db39136b591ccb768c34d96568dcca018862569fad668896c00b131b647) vs ((?^:SHAKE-128\(\.\.\\\.\.\\test\\data\.bin\)= bb565dac72640109e1c926ef441d3fa64ffd0b3e2bf8cd73d5182dfba19b6a8a2eab96d2df854b647b3795ef090582abe41ba4e0717dc4df40bc4e17d88e4677))
 # ------------------------------------------------------------------------------
     #   Failed test 'XOF: Check digest value is as expected (SHAKE-128(..\..\test\data.bin)= 71172feb7b33100998bad01684a58cb0aeca07f8ef4517c750ee193fff0f4377ac113db39136b591ccb768c34d96568dcca018862569fad668896c00b131b647) vs ((?^:SHAKE-128\(\.\.\\\.\.\\test\\data\.bin\)= bb565dac72640109e1c926ef441d3fa64ffd0b3e2bf8cd73d5182dfba19b6a8a2eab96d2df854b647b3795ef090582abe41ba4e0717dc4df40bc4e17d88e4677))'
     #   at test\recipes\20-test_dgst.t line 177.
     not ok 2 - XOF: Check second digest value is consistent with the first (SHAKE-128(..\..\test\data.bin)= 71172feb7b33100998bad01684a58cb0aeca07f8ef4517c750ee193fff0f4377ac113db39136b591ccb768c34d96568dcca018862569fad668896c00b131b647) vs ((?^:SHAKE-128\(\.\.\\\.\.\\test\\data\.bin\)= bb565dac72640109e1c926ef441d3fa64ffd0b3e2bf8cd73d5182dfba19b6a8a2eab96d2df854b647b3795ef090582abe41ba4e0717dc4df40bc4e17d88e4677))
 # ------------------------------------------------------------------------------
     #   Failed test 'XOF: Check second digest value is consistent with the first (SHAKE-128(..\..\test\data.bin)= 71172feb7b33100998bad01684a58cb0aeca07f8ef4517c750ee193fff0f4377ac113db39136b591ccb768c34d96568dcca018862569fad668896c00b131b647) vs ((?^:SHAKE-128\(\.\.\\\.\.\\test\\data\.bin\)= bb565dac72640109e1c926ef441d3fa64ffd0b3e2bf8cd73d5182dfba19b6a8a2eab96d2df854b647b3795ef090582abe41ba4e0717dc4df40bc4e17d88e4677))'
     #   at test\recipes\20-test_dgst.t line 178.
     # Looks like you failed 2 tests of 2.
 not ok 10 - Custom length XOF digest generation with `dgst` CLI
 # ------------------------------------------------------------------------------
 #   Failed test 'Custom length XOF digest generation with `dgst` CLI'
 #   at C:\openssl\util\perl/OpenSSL/Test.pm line 1296.
 # Looks like you failed 4 tests of 10.20-test_dgst.t ..................... 
 Dubious, test returned 4 (wstat 1024, 0x400)
 Failed 4/10 subtests 
 	(less 2 skipped subtests: 4 okay)
 20-test_dhparam.t .................. ok
 20-test_dhparam_check.t ............ ok
 20-test_enc.t ...................... ok
 20-test_enc_more.t ................. ok
 20-test_kdf.t ...................... ok
 20-test_mac.t ...................... ok
 20-test_passwd.t ................... ok
 20-test_pkeyutl.t .................. ok
 20-test_rand_config.t .............. ok
 20-test_spkac.t .................... ok
 25-test_crl.t ...................... ok
 25-test_d2i.t ...................... ok
 25-test_eai_data.t ................. ok
 25-test_pkcs7.t .................... ok
 25-test_req.t ...................... ok
 25-test_rusext.t ................... ok
 25-test_sid.t ...................... ok
 25-test_verify.t ................... ok
 25-test_verify_store.t ............. ok
 25-test_x509.t ..................... ok
 30-test_acvp.t ..................... ok
 30-test_aesgcm.t ................... ok
 30-test_afalg.t .................... skipped: test_afalg not supported for this build
 30-test_defltfips.t ................ ok
 30-test_engine.t ................... ok
 30-test_evp.t ...................... ok
 30-test_evp_extra.t ................ ok
 30-test_evp_fetch_prov.t ........... ok
 30-test_evp_kdf.t .................. ok
 30-test_evp_libctx.t ............... ok
 30-test_evp_pkey_dparam.t .......... ok
 30-test_evp_pkey_provided.t ........ ok
 30-test_pbelu.t .................... ok
 30-test_pkey_meth.t ................ ok
 30-test_pkey_meth_kdf.t ............ ok
 30-test_prov_config.t .............. ok
 30-test_provider_status.t .......... ok
 40-test_rehash.t ................... skipped: test_rehash is not available on this platform
 60-test_x509_check_cert_pkey.t ..... ok
 60-test_x509_dup_cert.t ............ ok
 60-test_x509_store.t ............... skipped: test_rehash is not available on this platform
 60-test_x509_time.t ................ ok
 61-test_bio_prefix.t ............... ok
 61-test_bio_readbuffer.t ........... ok
 65-test_cmp_asn.t .................. ok
 65-test_cmp_client.t ............... ok
 65-test_cmp_ctx.t .................. ok
 65-test_cmp_hdr.t .................. ok
 65-test_cmp_msg.t .................. ok
 65-test_cmp_protect.t .............. skipped: This test is not supported in a shared library build on Windows
 65-test_cmp_server.t ............... ok
 65-test_cmp_status.t ............... ok
 65-test_cmp_vfy.t .................. ok
 66-test_ossl_store.t ............... ok
 70-test_asyncio.t .................. ok
 70-test_bad_dtls.t ................. ok
 70-test_clienthello.t .............. ok
 70-test_comp.t ..................... ok
 70-test_key_share.t ................ ok
 70-test_packet.t ................... ok
 70-test_recordlen.t ................ ok
 70-test_renegotiation.t ............ ok
 70-test_servername.t ............... ok
 70-test_sslcbcpadding.t ............ ok
 70-test_sslcertstatus.t ............ ok
 70-test_sslextension.t ............. ok
 70-test_sslmessages.t .............. ok
 70-test_sslrecords.t ............... ok
 70-test_sslsessiontick.t ........... ok
 70-test_sslsigalgs.t ............... ok
 70-test_sslsignature.t ............. ok
 70-test_sslskewith0p.t ............. ok
 70-test_sslversions.t .............. ok
 70-test_sslvertol.t ................ ok
 70-test_tls13alerts.t .............. ok
 70-test_tls13cookie.t .............. ok
 70-test_tls13downgrade.t ........... ok
 70-test_tls13hrr.t ................. ok
 70-test_tls13kexmodes.t ............ ok
 70-test_tls13messages.t ............ ok
 70-test_tls13psk.t ................. ok
 70-test_tlsextms.t ................. ok
 70-test_verify_extra.t ............. ok
 70-test_wpacket.t .................. skipped: Test disabled in this configuration
 71-test_ssl_ctx.t .................. ok
 79-test_http.t ..................... ok
 80-test_ca.t ....................... ok
 80-test_cipherbytes.t .............. ok
 80-test_cipherlist.t ............... ok
 80-test_ciphername.t ............... ok
 80-test_cmp_http.t ................. skipped: Tests involving local HTTP server not available on Windows or VMS
 
 # 80-test_cms.t ...................... ok
 80-test_cmsapi.t ................... ok
 80-test_ct.t ....................... ok
 80-test_dane.t ..................... ok
 80-test_dtls.t ..................... ok
 80-test_dtls_mtu.t ................. ok
 80-test_dtlsv1listen.t ............. ok
 80-test_ocsp.t ..................... ok
 80-test_pkcs12.t ................... skipped: Non-Greek system locale
 
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [2] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got ClientFail.
             # 34120000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780537
             not ok 2 - iteration 2
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [2] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got ClientFail.
             # 34120000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780537
             not ok 4 - iteration 4
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [4] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got FirstHandshakeFailed.
             # 34120000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780537
             not ok 5 - iteration 5
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [4] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got FirstHandshakeFailed.
             # 34120000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780537
             not ok 6 - iteration 6
 # ------------------------------------------------------------------------------
         # OPENSSL_TEST_RAND_ORDER=1660780537
         not ok 1 - test_handshake
 # ------------------------------------------------------------------------------
 C:\perl64\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\test\ssl_test.exe 12-ct.cnf.none none => 1
     not ok 3 - running ssl_test 12-ct.cnf
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [2] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got ClientFail.
             # 88200000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780538
             not ok 2 - iteration 2
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [2] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got ClientFail.
             # 88200000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780538
             not ok 4 - iteration 4
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [4] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got FirstHandshakeFailed.
             # 88200000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780538
             not ok 5 - iteration 5
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [4] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got FirstHandshakeFailed.
             # 88200000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780538
             not ok 6 - iteration 6
 # ------------------------------------------------------------------------------
         # OPENSSL_TEST_RAND_ORDER=1660780538
         not ok 1 - test_handshake
 # ------------------------------------------------------------------------------
 C:\perl64\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\test\ssl_test.exe 12-ct.cnf.default default => 1
     not ok 6 - running ssl_test 12-ct.cnf
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [2] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got ClientFail.
             # 08140000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780538
             not ok 2 - iteration 2
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [2] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got ClientFail.
             # 08140000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780538
             not ok 4 - iteration 4
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [4] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got FirstHandshakeFailed.
             # 08140000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780538
             not ok 5 - iteration 5
 # ------------------------------------------------------------------------------
             # ERROR: (int) 'result->result == test_ctx->expected_result' failed @ test\ssl_test.c:36
             # [4] compared to [0]
             # INFO: 
             # ExpectedResult mismatch: expected Success, got FirstHandshakeFailed.
             # 08140000:error:0A000415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:ssl\record\rec_layer_s3.c:1584:SSL alert number 45
             # OPENSSL_TEST_RAND_ORDER=1660780538
             not ok 6 - iteration 6
 # ------------------------------------------------------------------------------
         # OPENSSL_TEST_RAND_ORDER=1660780538
         not ok 1 - test_handshake
 # ------------------------------------------------------------------------------
 C:\perl64\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\test\ssl_test.exe 12-ct.cnf.fips fips ..\..\test\fips-and-base.cnf => 1
     not ok 9 - running ssl_test 12-ct.cnf
 # ------------------------------------------------------------------------------
     #   Failed test 'running ssl_test 12-ct.cnf'
     #   at test\recipes\80-test_ssl_new.t line 167.
     # Looks like you failed 3 tests of 9.
 not ok 12 - Test configuration 12-ct.cnf
 # ------------------------------------------------------------------------------
 # Looks like you failed 1 test of 30.80-test_ssl_new.t .................. 
 Dubious, test returned 1 (wstat 256, 0x100)
 Failed 1/30 subtests 
 80-test_ssl_old.t .................. ok
 80-test_ssl_test_ctx.t ............. ok
 80-test_sslcorrupt.t ............... ok
 80-test_tsa.t ...................... ok
 80-test_x509aux.t .................. ok
 81-test_cmp_cli.t .................. ok
 90-test_asn1_time.t ................ ok
 90-test_async.t .................... ok
 90-test_bio_enc.t .................. ok
 90-test_bio_memleak.t .............. ok
 90-test_constant_time.t ............ ok
 90-test_fatalerr.t ................. ok
 90-test_fipsload.t ................. ok
 90-test_gmdiff.t ................... ok
 90-test_ige.t ...................... ok
 90-test_includes.t ................. ok
 90-test_memleak.t .................. ok
 90-test_overhead.t ................. ok
 90-test_secmem.t ................... ok
 90-test_shlibload.t ................ ok
 90-test_srp.t ...................... ok
 90-test_sslapi.t ................... ok
 90-test_sslbuffers.t ............... ok
 90-test_store.t .................... ok
 90-test_sysdefault.t ............... ok
 90-test_threads.t .................. ok
 90-test_time_offset.t .............. ok
 90-test_tls13ccs.t ................. ok
 90-test_tls13encryption.t .......... ok
 90-test_tls13secrets.t ............. ok
 90-test_v3name.t ................... ok
 91-test_pkey_check.t ............... ok
 95-test_external_gost_engine.t ..... skipped: No external tests in this configuration
 95-test_external_krb5.t ............ skipped: No external tests in this configuration
 95-test_external_pyca.t ............ skipped: No external tests in this configuration
 99-test_ecstress.t ................. ok
 99-test_fuzz_asn1.t ................ ok
 99-test_fuzz_asn1parse.t ........... ok
 99-test_fuzz_bignum.t .............. ok
 99-test_fuzz_bndiv.t ............... ok
 99-test_fuzz_client.t .............. ok
 99-test_fuzz_cmp.t ................. ok
 99-test_fuzz_cms.t ................. ok
 99-test_fuzz_conf.t ................ ok
 99-test_fuzz_crl.t ................. ok
 99-test_fuzz_ct.t .................. ok
 99-test_fuzz_server.t .............. ok
 99-test_fuzz_x509.t ................ ok
 
 Test Summary Report
 -------------------
 01-test_test.t                   (Wstat: 256 Tests: 1 Failed: 1)
   Failed test:  1
   Non-zero exit status: 1
 20-test_dgst.t                   (Wstat: 1024 Tests: 10 Failed: 4)
   Failed tests:  7-10
   Non-zero exit status: 4
 80-test_ssl_new.t                (Wstat: 256 Tests: 30 Failed: 1)
   Failed test:  12
   Non-zero exit status: 1
 Files=242, Tests=3179, 1350 wallclock secs ( 6.25 usr +  0.97 sys =  7.22 CPU)
 Result: FAIL

Activity

  1. added
    issue: bug report
    on Aug 18, 2022
  2. t8m commented on Aug 19, 2022

    @t8m
    Member

    The openssl-3.0.1 release is quite old, could you please try the latest (i.e. 3.0.5 release)?

  3. t8m commented on Aug 19, 2022

    @t8m
    Member

    Please note that you might have to pass -Wno-error=implicit-function-declaration on the configure command line on Mac with 3.0.5 release.

  4. added
    triaged: bug
    and removed
    issue: bug report
    on Aug 19, 2022
  5. wxt commented on Aug 19, 2022

    @wxt
    Author

    Can give the 3.0.5 release a try to see if the failed test cases are still happening on my side.

  6. wxt commented on Aug 22, 2022

    @wxt
    Author

    Tried out the 3.0.5 release in Windows and am still experiencing two of the same failed test cases, 01-test_test.t and 20-test_dgst.t Please see the 01-test_test_verbose_output.txt and 20-test_dgst_verbose_output.txt

    01-test_test_verbose_output.txt
    20-test_dgst_verbose_output.txt
    unit_test_run.txt

  7. changed the title [-]Consistent OpenSSL 3.0.1 unit test cases failure.[/-] [+]Consistent OpenSSL 3.0.5 unit test cases failure.[/+] on Aug 22, 2022
  8. wxt commented on Aug 22, 2022

    @wxt
    Author

    I notice the the hash value in the failed test 20-test_dgst.t '53bf88b80462d52356ba3b017b86014edbfb38763319276e60e404614e238b94' is also mentioned in this issue with fixed commit. #13474

  9. t8m commented on Aug 23, 2022

    @t8m
    Member

    This means you have somehow incorrectly checked-out or unpacked the 3.0.5 tarball in a way that corrupts the line-endings on some test files that should be treated as binary.

  10. added
    triaged: question
    and removed
    triaged: bug
    on Aug 23, 2022
  11. t8m commented on Aug 23, 2022

    @t8m
    Member

    The failing test_ssl_new in older releases is due to expired certificates in some of the test cases. This should be fixed with 3.0.5 already.

  12. added
    resolved: answered
    on Aug 23, 2022
  13. xtkoba commented on Aug 23, 2022

    @xtkoba
    Contributor

    The remaining 01-test_test.t case could be fixed by the commit 6162a24 which is not yet backported to openssl-3.0 branch. Note that in C | does not form a sequence point whereas || does.

  14. paulidale commented on Aug 23, 2022

    @paulidale
    Contributor

    6162a24 was address compiler warnings, it shouldn't have a difference to the outcome of the test. There could be more spurious output using | instead of || but it shouldn't change the test result.

  15. xtkoba commented on Aug 23, 2022

    @xtkoba
    Contributor

    The use of | is causing "out-of-order" evaluation; in the case of this test failure the line

    | !TEST(1, TEST_BN_eq(b, c))

    is evaluated after

    | !TEST(1, TEST_int_eq(BN_dec2bn(&c, "-334739439"), 10))

    which cannot happen when using || instead.

  16. paulidale commented on Aug 23, 2022

    @paulidale
    Contributor

    Okay, that makes sense....

  17. added 2 commits that reference this issue on Aug 23, 2022
    03703f4
    cf55186
  18. added a commit that references this issue on Aug 24, 2022
    76b0b76
  19. wxt commented on Aug 25, 2022

    @wxt
    Author

    Tried out 6162a24 and the unit test case is now passing.

    Made 20-test_dgst.t test case passing by having a .gitattribute file to have the .bin file as binary type so git will not have the windows line feed characters after checkout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolved: answeredtriaged: question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions