[openssl-project] [openssl-commits] Build failed in Jenkins: master_noec #574

Matt Caswell matt at openssl.org
Wed Jun 27 10:06:14 UTC 2018


Also - does this only happen with no-ec?

Matt

On 27/06/18 10:32, Matt Caswell wrote:
> I am slightly confused because the code sample below and the commit id
> you gave is for 1.1.0, but the original email seems to be about master.
> 
> Is the same issue affecting both? Note: the pderive_test_run() function
> looks quite different between 1.1.0 and master.
> 
> Matt
> 
> 
> On 26/06/18 19:32, Barry Fussell (bfussell) wrote:
>> The evp_test is failing intermittently because there is an attempt to
>> malloc zero bytes when running the new test that came in with
>> this commit.
>>
>> https://bitbucket-eng-rtp1.cisco.com/bitbucket/projects/TS/repos/ciscossl/commits/7b3e775a6a78650bbd3e8e19a5aa12981880402b#test/evptests.txt
>>
>>
>> static int pderive_test_run(struct evp_test *t)
>> {
>>     struct pkey_data *kdata = t->data;
>>     unsigned char *out = NULL;
>>     size_t out_len;
>>     const char *err = "INTERNAL_ERROR";
>>
>>     out_len = kdata->output_len;
>>     out = OPENSSL_malloc(out_len);  <----- out is zero because there is no SharedSecret
>>     if (!out) {
>>
>> -----Original Message-----
>> From: osslsanity at gmail.com [mailto:osslsanity at gmail.com] 
>> Sent: Tuesday, June 19, 2018 11:28 AM
>> To: Barry Fussell (bfussell) <bfussell at cisco.com>; openssl-commits at openssl.org
>> Subject: Build failed in Jenkins: master_noec #574
>>
>> See <http://ec2-52-37-178-53.us-west-2.compute.amazonaws.com:8080/job/master_noec/574/display/redirect?page=changes>
>>
>> Changes:
>>
>> [Matthias.St.Pierre] Fix & update documentation about RAND_priv_bytes()
>>
>> [Matthias.St.Pierre] Improve the output of `make doc-nits`
>>
>> ------------------------------------------
>> [...truncated 505.72 KB...]
>> rm -f test/v3ext
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/v3ext test/v3ext.o \
>> 		 test/libtestutil.a -lcrypto -ldl -pthread gcc  -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/v3nametest.d.tmp -MT test/v3nametest.o -c -o test/v3nametest.o test/v3nametest.c rm -f test/v3nametest
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/v3nametest test/v3nametest.o \
>> 		 test/libtestutil.a -lcrypto -ldl -pthread gcc  -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/verify_extra_test.d.tmp -MT test/verify_extra_test.o -c -o test/verify_extra_test.o test/verify_extra_test.c rm -f test/verify_extra_test
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/verify_extra_test test/verify_extra_test.o \
>> 		 test/libtestutil.a -lcrypto -ldl -pthread gcc  -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/versions.d.tmp -MT test/versions.o -c -o test/versions.o test/versions.c rm -f test/versions
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/versions test/versions.o \
>> 		 -lcrypto -ldl -pthread
>> gcc  -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/wpackettest.d.tmp -MT test/wpackettest.o -c -o test/wpackettest.o test/wpackettest.c rm -f test/wpackettest
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/wpackettest test/wpackettest.o \
>> 		 libssl.a test/libtestutil.a -lcrypto -ldl -pthread gcc  -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/x509_check_cert_pkey_test.d.tmp -MT test/x509_check_cert_pkey_test.o -c -o test/x509_check_cert_pkey_test.o test/x509_check_cert_pkey_test.c rm -f test/x509_check_cert_pkey_test
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/x509_check_cert_pkey_test test/x509_check_cert_pkey_test.o \
>> 		 test/libtestutil.a -lcrypto -ldl -pthread gcc  -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/x509_dup_cert_test.d.tmp -MT test/x509_dup_cert_test.o -c -o test/x509_dup_cert_test.o test/x509_dup_cert_test.c rm -f test/x509_dup_cert_test
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/x509_dup_cert_test test/x509_dup_cert_test.o \
>> 		 test/libtestutil.a -lcrypto -ldl -pthread gcc  -I. -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/x509_internal_test.d.tmp -MT test/x509_internal_test.o -c -o test/x509_internal_test.o test/x509_internal_test.c rm -f test/x509_internal_test
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/x509_internal_test test/x509_internal_test.o \
>> 		 test/libtestutil.a libcrypto.a -ldl -pthread gcc  -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/x509_time_test.d.tmp -MT test/x509_time_test.o -c -o test/x509_time_test.o test/x509_time_test.c rm -f test/x509_time_test
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/x509_time_test test/x509_time_test.o \
>> 		 test/libtestutil.a -lcrypto -ldl -pthread gcc  -Iinclude -pthread -m64 -Wa,--noexecstack -Wall -O3 -DNDEBUG  -MMD -MF test/x509aux.d.tmp -MT test/x509aux.o -c -o test/x509aux.o test/x509aux.c rm -f test/x509aux
>> ${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -L.   \
>> 		-o test/x509aux test/x509aux.o \
>> 		 test/libtestutil.a -lcrypto -ldl -pthread /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
>> 	    "-oMakefile" apps/CA.pl.in > "apps/CA.pl"
>> chmod a+x apps/CA.pl
>> /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
>> 	    "-oMakefile" apps/tsget.in > "apps/tsget"
>> chmod a+x apps/tsget
>> /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
>> 	    "-oMakefile" tools/c_rehash.in > "tools/c_rehash"
>> chmod a+x tools/c_rehash
>> /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
>> 	    "-oMakefile" util/shlib_wrap.sh.in > "util/shlib_wrap.sh"
>> chmod a+x util/shlib_wrap.sh
>> make[1]: Leaving directory `<http://ec2-52-37-178-53.us-west-2.compute.amazonaws.com:8080/job/master_noec/ws/'>
>> + apps/openssl version -a
>> OpenSSL 1.1.1-pre8-dev  xx XXX xxxx
>> built on: Tue Jun 19 15:22:11 2018 UTC
>> platform: linux-x86_64
>> options:  bn(64,64) rc4(16x,int) des(int) idea(int) blowfish(ptr)
>> compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DNDEBUG
>> OPENSSLDIR: "/usr/local/ssl"
>> ENGINESDIR: "/usr/local/lib/engines-1.1"
>> Seeding source: os-specific
>> + make test
>> make depend && make _tests
>> make[1]: Entering directory `<http://ec2-52-37-178-53.us-west-2.compute.amazonaws.com:8080/job/master_noec/ws/'>
>> make[1]: Leaving directory `<http://ec2-52-37-178-53.us-west-2.compute.amazonaws.com:8080/job/master_noec/ws/'>
>> make[1]: Entering directory `<http://ec2-52-37-178-53.us-west-2.compute.amazonaws.com:8080/job/master_noec/ws/'>
>> ( cd test; \
>> 	  mkdir -p test-runs; \
>> 	  SRCTOP=../. \
>> 	  BLDTOP=../. \
>> 	  RESULT_D=test-runs \
>> 	  PERL="/usr/bin/perl" \
>> 	  EXE_EXT= \
>> 	  OPENSSL_ENGINES=`cd .././engines 2>/dev/null && pwd` \
>> 	  OPENSSL_DEBUG_MEMORY=on \
>> 	    /usr/bin/perl .././test/run_tests.pl  ) ../test/recipes/01-test_abort.t .................... ok ../test/recipes/01-test_sanity.t ................... ok ../test/recipes/01-test_symbol_presence.t .......... skipped: Only useful when building shared libraries ../test/recipes/01-test_test.t ..................... ok ../test/recipes/02-test_internal_ctype.t ........... ok ../test/recipes/02-test_lhash.t .................... ok ../test/recipes/02-test_ordinals.t ................. ok ../test/recipes/02-test_stack.t .................... ok ../test/recipes/03-test_exdata.t ................... ok ../test/recipes/03-test_internal_asn1.t ............ ok ../test/recipes/03-test_internal_chacha.t .......... ok ../test/recipes/03-test_internal_curve448.t ........ skipped: This test is unsupported in a no-ec build ../test/recipes/03-test_internal_mdc2.t ............ ok ../test/recipes/03-test_internal_modes.t ........... ok ../test/recipes/03-test_internal_poly1305.t ........ ok ../test/recipes/03-test_internal_siphash.t ......... ok ../test/recipes/03-test_internal_sm2.t ............. skipped: sm2 is not supported by this OpenSSL build ../test/recipes/03-test_internal_sm4.t ............. ok ../test/recipes/03-test_internal_ssl_cert_table.t .. ok ../test/recipes/03-test_internal_x509.t ............ ok ../test/recipes/03-test_ui.t ....................... ok ../test/recipes/04-test_asn1_encode.t .............. ok ../test/recipes/04-test_asn1_string_table.t ........ ok ../test/recipes/04-test_bio_callback.t ............. ok ../test/recipes/04-test_bioprint.t ................. ok ../test/recipes/04-test_err.t ...................... ok ../test/recipes/04-test_pem.t ...................... ok ../test/recipes/05-test_bf.t ....................... ok ../test/recipes/05-test_cast.t ..................... ok ../test/recipes/05-test_des.t ...................... ok ../test/recipes/05-test_hmac.t ..................... ok ../test/recipes/05-test_idea.t ..................... ok ../test/recipes/05-test_md2.t ...................... skipped: md2 is not supported by this OpenSSL build ../test/recipes/05-test_mdc2.t ..................... ok ../test/recipes/05-test_rand.t ..................... ok ../test/recipes/05-test_rc2.t ...................... ok ../test/recipes/05-test_rc4.t ...................... ok ../test/recipes/05-test_rc5.t ...................... skipped: rc5 is not supported by this OpenSSL build ../test/recipes/06-test-rdrand.t ................... ok ../test/recipes/10-test_bn.t ....................... ok ../test/recipes/10-test_exp.t ...................... ok ../test/recipes/15-test_dh.t ....................... ok ../test/recipes/15-test_dsa.t ...................... ok ../test/recipes/15-test_ec.t ....................... ok ../test/recipes/15-test_ecdsa.t .................... skipped: ec is not supported by this OpenSSL build ../test/recipes/15-test_ecparam.t .................. skipped: EC isn't supported in this build ../test/recipes/15-test_genrsa.t ................... ok ../test/recipes/15-test_mp_rsa.t ................... ok ../test/recipes/15-test_out_option.t ............... ok ../test/recipes/15-test_rsa.t ...................... ok ../test/recipes/15-test_rsapss.t ................... ok ../test/recipes/20-test_enc.t ...................... ok ../test/recipes/20-test_enc_more.t ................. ok ../test/recipes/20-test_passwd.t ................... ok ../test/recipes/25-test_crl.t ...................... ok ../test/recipes/25-test_d2i.t ...................... ok ../test/recipes/25-test_pkcs7.t .................... ok ../test/recipes/25-test_req.t ...................... ok ../test/recipes/25-test_sid.t ...................... skipped: test_sid needs EC to run ../test/recipes/25-test_verify.t ................... ok ../test/recipes/25-test_x509.t ..................... ok ../test/recipes/30-test_afalg.t .................... skipped: test_afalg not supported for this build ../test/recipes/30-test_engine.t ................... ok ../test/recipes/30-test_evp.t ...................... 
>> Dubious, test returned 1 (wstat 256, 0x100) Failed 1/7 subtests ../test/recipes/30-test_evp_extra.t ................ ok ../test/recipes/30-test_pbelu.t .................... ok ../test/recipes/30-test_pkey_meth.t ................ ok ../test/recipes/30-test_pkey_meth_kdf.t ............ ok ../test/recipes/40-test_rehash.t ................... ok ../test/recipes/60-test_x509_check_cert_pkey.t ..... ok ../test/recipes/60-test_x509_dup_cert.t ............ ok ../test/recipes/60-test_x509_store.t ............... ok ../test/recipes/60-test_x509_time.t ................ ok ../test/recipes/70-test_asyncio.t .................. ok ../test/recipes/70-test_bad_dtls.t ................. ok ../test/recipes/70-test_clienthello.t .............. ok ../test/recipes/70-test_comp.t ..................... skipped: test_comp needs the dynamic engine feature enabled ../test/recipes/70-test_key_share.t ................ skipped: test_key_share needs the dynamic engine feature enabled ../test/recipes/70-test_packet.t ................... ok ../test/recipes/70-test_recordlen.t ................ ok ../test/recipes/70-test_renegotiation.t ............ skipped: test_renegotiation needs the dynamic engine feature enabled ../test/recipes/70-test_servername.t ............... ok ../test/recipes/70-test_sslcbcpadding.t ............ skipped: test_sslcbcpadding needs the dynamic engine feature enabled ../test/recipes/70-test_sslcertstatus.t ............ skipped: test_sslcertstatus needs the dynamic engine feature enabled ../test/recipes/70-test_sslextension.t ............. skipped: test_sslextension needs the dynamic engine feature enabled ../test/recipes/70-test_sslmessages.t .............. skipped: test_sslmessages needs the dynamic engine feature enabled ../test/recipes/70-test_sslrecords.t ............... skipped: test_sslrecords needs the dynamic engine feature enabled ../test/recipes/70-test_sslsessiontick.t ........... skipped: test_sslsessiontick needs the dynamic engine feature enabled ../test/recipes/70-test_sslsigalgs.t ............... skipped: test_sslsigalgs needs the dynamic engine feature enabled ../test/recipes/70-test_sslsignature.t ............. skipped: test_sslsignature needs the dynamic engine feature enabled ../test/recipes/70-test_sslskewith0p.t ............. skipped: test_sslskewith0p needs the dynamic engine feature enabled ../test/recipes/70-test_sslversions.t .............. skipped: test_sslversions needs the dynamic engine feature enabled ../test/recipes/70-test_sslvertol.t ................ skipped: test_sslextension needs the dynamic engine feature enabled ../test/recipes/70-test_tls13cookie.t .............. skipped: test_tls13cookie needs the dynamic engine feature enabled ../test/recipes/70-test_tls13downgrade.t ........... skipped: test_tls13downgrade needs the dynamic engine feature enabled ../test/recipes/70-test_tls13hrr.t ................. skipped: test_tls13hrr needs the dynamic engine feature enabled ../test/recipes/70-test_tls13kexmodes.t ............ skipped: test_tls13kexmodes needs the dynamic engine feature enabled ../test/recipes/70-test_tls13messages.t ............ skipped: test_tls13messages needs the dynamic engine feature enabled ../test/recipes/70-test_tls13psk.t ................. skipped: test_tls13psk needs the dynamic engine feature enabled ../test/recipes/70-test_tlsextms.t ................. skipped: test_tlsextms needs the dynamic engine feature enabled ../test/recipes/70-test_verify_extra.t ............. ok ../test/recipes/70-test_wpacket.t .................. ok ../test/recipes/80-test_ca.t ....................... ok ../test/recipes/80-test_cipherbytes.t .............. ok ../test/recipes/80-test_cipherlist.t ............... ok ../test/recipes/80-test_ciphername.t ............... ok ../test/recipes/80-test_cms.t ...................... ok ../test/recipes/80-test_cmsapi.t ................... ok ../test/recipes/80-test_ct.t ....................... skipped: ct and ec are not supported by this OpenSSL build ../test/recipes/80-test_dane.t ..................... skipped: test_dane uses ec which is not supported by this OpenSSL build ../test/recipes/80-test_dtls.t ..................... ok ../test/recipes/80-test_dtls_mtu.t ................. ok ../test/recipes/80-test_dtlsv1listen.t ............. ok ../test/recipes/80-test_ocsp.t ..................... ok ../test/recipes/80-test_pkcs12.t ................... ok ../test/recipes/80-test_ssl_new.t .................. ok ../test/recipes/80-test_ssl_old.t .................. ok ../test/recipes/80-test_ssl_test_ctx.t ............. ok ../test/recipes/80-test_sslcorrupt.t ............... ok ../test/recipes/80-test_tsa.t ...................... ok ../test/recipes/80-test_x509aux.t .................. skipped: test_dane uses ec which is not supported by this OpenSSL build ../test/recipes/90-test_asn1_time.t ................ ok ../test/recipes/90-test_async.t .................... ok ../test/recipes/90-test_bio_enc.t .................. ok ../test/recipes/90-test_constant_time.t ............ ok ../test/recipes/90-test_fatalerr.t ................. ok ../test/recipes/90-test_gmdiff.t ................... ok ../test/recipes/90-test_ige.t ...................... ok ../test/recipes/90-test_includes.t ................. ok ../test/recipes/90-test_memleak.t .................. ok ../test/recipes/90-test_overhead.t ................. ok ../test/recipes/90-test_secmem.t ................... ok ../test/recipes/90-test_shlibload.t ................ skipped: Test only supported in a shared build ../test/recipes/90-test_srp.t ...................... ok ../test/recipes/90-test_sslapi.t ................... ok ../test/recipes/90-test_sslbuffers.t ............... ok ../test/recipes/90-test_store.t .................... ok ../test/recipes/90-test_sysdefault.t ............... ok ../test/recipes/90-test_threads.t .................. ok ../test/recipes/90-test_time_offset.t .............. ok ../test/recipes/90-test_tls13ccs.t ................. skipped: test_tls13ccs is not supported in this build ../test/recipes/90-test_tls13encryption.t .......... skipped: tls13encryption is not supported in this build ../test/recipes/90-test_tls13secrets.t ............. skipped: tls13secrets is not supported in this build ../test/recipes/90-test_v3name.t ................... ok ../test/recipes/95-test_external_boringssl.t ....... skipped: No external tests in this configuration ../test/recipes/95-test_external_krb5.t ............ skipped: No external tests in this configuration ../test/recipes/95-test_external_pyca.t ............ skipped: No external tests in this configuration ../test/recipes/99-test_ecstress.t ................. ok ../test/recipes/99-test_fuzz.t ..................... ok
>>
>> Test Summary Report
>> -------------------
>> ../test/recipes/30-test_evp.t                    (Wstat: 256 Tests: 7 Failed: 1)
>>   Failed test:  7
>>   Non-zero exit status: 1
>> Files=149, Tests=1016, 111 wallclock secs ( 0.43 usr  0.11 sys + 40.62 cusr  8.81 csys = 49.97 CPU)
>> Result: FAIL
>> make[1]: *** [_tests] Error 1
>> make[1]: Leaving directory `<http://ec2-52-37-178-53.us-west-2.compute.amazonaws.com:8080/job/master_noec/ws/'>
>> make: *** [tests] Error 2
>> Build step 'Execute shell' marked build as failure
>> _____
>> openssl-commits mailing list
>> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits
>>
> _______________________________________________
> openssl-project mailing list
> openssl-project at openssl.org
> https://mta.openssl.org/mailman/listinfo/openssl-project
> 


More information about the openssl-project mailing list