openssl: 80-test_cmp_http breaks at 3.0.9

80-test_cmp is failing on NonStop. This test previously (at 3.0.8) did not fail. I am checking 1.1.1u and 3.1.0. The first subtest is failing:

80-test_cmp_http.t ................. 
# The results of this test will end up in test-runs/test_cmp_http
1..6
Current directory is /home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/test/recipes/80-test_cmp_http_data/Mock
Launching mock server: ../../../../util/wrap.pl ../../../../apps/openssl cmp -config server.cnf
Pid is: 318767136
Server output: cmp_main:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2832:CMP info: using section(s) 'cmp' of OpenSSL configuration file 'server.cnf'
Server output: ACCEPT [::]:61687 PID=1224736923
# Subtest: CMP app CLI Mock connection
    1..37
# cmp_main:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2832:CMP info: using section(s) 'Mock connection' of OpenSSL configuration file '../Mock/test.cnf'
# opt_str:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2316:CMP warning: -proxy option argument is empty string, resetting option
# setup_client_ctx:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2009:CMP info: will contact http://127.0.0.1:61687/pkix/
# CMP info: sending IR
# CMP error: connect timeout
# CMP error: transfer error:request sent: IR, expected response: IP
../../../../util/wrap.pl ../../../../apps/openssl cmp -server '127.0.0.1:61687' -config ../Mock/test.cnf -section 'Mock connection' -certout ../../../../test-runs/test_cmp_http/test.cert.pem -proxy '' -no_proxy 127.0.0.1 => 255
    not ok 1 - default config

    #   Failed test 'default config'
    #   at test/recipes/80-test_cmp_http.t line 136.
    #          got: '0'
    #     expected: '1'

The configuration is:


Command line (with current working directory = .):

    perl ./Configure nonstop-nsx_64 --prefix=/usr/local-ssl3.0 --openssldir=/usr/local-ssl3.0/ssl --with-rand-seed=rdcpu enable-fips no-egd

Perl information:

    perl
    5.30.3 for NSV-D-nonstop_kernel

Enabled features:

    acvp-tests
    aria
    async
    autoalginit
    autoerrinit
    autoload-config
    bf
    blake2
    bulk
    cached-fetch
    camellia
    capieng
    cast
    chacha
    cmac
    cmp
    cms
    comp
    ct
    deprecated
    des
    dgram
    dh
    dsa
    dso
    dtls
    dynamic-engine
    ec
    ec2m
    ecdh
    ecdsa
    engine
    err
    filenames
    fips
    fips-securitychecks
    gost
    idea
    legacy
    loadereng
    md4
    mdc2
    module
    multiblock
    nextprotoneg
    ocb
    ocsp
    padlockeng
    pic
    pinshared
    poly1305
    posix-io
    psk
    rc2
    rc4
    rdrand
    rfc3779
    rmd160
    scrypt
    secure-memory
    seed
    shared
    siphash
    siv
    sm2
    sm3
    sm4
    sock
    srp
    srtp
    sse2
    ssl
    ssl-trace
    static-engine
    stdio
    tests
    tls
    ts
    ui-console
    whirlpool
    tls1
    tls1-method
    tls1_1
    tls1_1-method
    tls1_2
    tls1_2-method
    tls1_3
    dtls1
    dtls1-method
    dtls1_2
    dtls1_2-method

Disabled features:

    afalgeng            [not-linux]      OPENSSL_NO_AFALGENG
    asan                [default]        OPENSSL_NO_ASAN
    asm                 [no asm_arch]    OPENSSL_NO_ASM
    buildtest-c++       [default]
    crypto-mdebug       [default]        OPENSSL_NO_CRYPTO_MDEBUG
    devcryptoeng        [default]        OPENSSL_NO_DEVCRYPTOENG
    ec_nistp_64_gcc_128 [default]        OPENSSL_NO_EC_NISTP_64_GCC_128
    egd                 [option]         OPENSSL_NO_EGD
    external-tests      [default]        OPENSSL_NO_EXTERNAL_TESTS
    fuzz-afl            [default]        OPENSSL_NO_FUZZ_AFL
    fuzz-libfuzzer      [default]        OPENSSL_NO_FUZZ_LIBFUZZER
    ktls                [default]        OPENSSL_NO_KTLS
    makedepend          [unavailable]
    md2                 [default]        OPENSSL_NO_MD2 (skip crypto/md2)
    msan                [default]        OPENSSL_NO_MSAN
    rc5                 [default]        OPENSSL_NO_RC5 (skip crypto/rc5)
    sctp                [default]        OPENSSL_NO_SCTP
    threads             [config]
    trace               [default]        OPENSSL_NO_TRACE
    ubsan               [default]        OPENSSL_NO_UBSAN
    unit-test           [default]        OPENSSL_NO_UNIT_TEST
    uplink              [no uplink_arch] OPENSSL_NO_UPLINK
    weak-ssl-ciphers    [default]        OPENSSL_NO_WEAK_SSL_CIPHERS
    zlib                [default]
    zlib-dynamic        [default]
    ssl3                [default]        OPENSSL_NO_SSL3
    ssl3-method         [default]        OPENSSL_NO_SSL3_METHOD

Config target attributes:

    AR => "ar",
    ARFLAGS => "qc",
    CC => "c99",
    HASHBANGPERL => "/usr/bin/env perl",
    RANLIB => "ranlib",
    RC => "windres",
    bn_ops => "SIXTY_FOUR_BIT",
    build_file => "Makefile",
    build_scheme => [ "unified", "unix" ],
    cflags => "-g -O2 -Wextensions -Wnowarn=203,220,272,734,770,1506 -Wbuild_neutral_library -Wverbose -Wtarget=tns/x -Wsystype=oss -Wlp64 -WIEEE_float",
    cppflags => "",
    defines => [ "OPENSSL_BUILDING_OPENSSL", "OPENSSL_VPROC=\$(OPENSSL_VPROC)", "_XOPEN_SOURCE", "_XOPEN_SOURCE_EXTENDED=1", "_TANDEM_SOURCE", "B_ENDIAN", "_TANDEM_ARCH=3" ],
    disable => [ "threads" ],
    dso_scheme => "DLFCN",
    enable => [ "egd" ],
    ex_libs => "-lrld",
    includes => [  ],
    lflags => "-Wxld=\"-set systype oss\" -Wxld=\"-set data_model lp64\" -Wxld=\"-set floattype ieee_float\"",
    lib_cflags => "",
    lib_cppflags => "",
    lib_defines => [  ],
    module_cflags => "",
    module_cxxflags => undef,
    module_ldflags => "-Wshared",
    multilib => "64",
    perl => "/usr/bin/perl",
    perl_platform => "Unix",
    shared_argfileflag => "-Wxld_obey=",
    shared_cflag => "",
    shared_defflag => "-Wxld_obey=",
    shared_defines => [  ],
    shared_extension => ".so",
    shared_ldflag => "-Wshared",
    shared_rcflag => "",
    shared_target => "nonstop-shared",
    sys_id => "TANDEM",
    thread_defines => [  ],
    thread_scheme => "(unknown)",
    unistd => "<unistd.h>",

Recorded environment:

    AR =
    ARFLAGS =
    AS =
    ASFLAGS =
    BUILDFILE =
    CC =
    CFLAGS =
    CPP =
    CPPDEFINES =
    CPPFLAGS =
    CPPINCLUDES =
    CROSS_COMPILE =
    CXX =
    CXXFLAGS =
    HASHBANGPERL =
    LD =
    LDFLAGS =
    LDLIBS =
    MT =
    MTFLAGS =
    OPENSSL_LOCAL_CONFIG_DIR =
    PERL =
    RANLIB =
    RC =
    RCFLAGS =
    RM =
    WINDRES =
    __CNF_CFLAGS =
    __CNF_CPPDEFINES =
    __CNF_CPPFLAGS =
    __CNF_CPPINCLUDES =
    __CNF_CXXFLAGS =
    __CNF_LDFLAGS =
    __CNF_LDLIBS =

Makevars:

    AR              = ar
    ARFLAGS         = qc
    CC              = c99
    CFLAGS          =
    CPPDEFINES      =
    CPPFLAGS        =
    CPPINCLUDES     =
    CXXFLAGS        =
    HASHBANGPERL    = /usr/bin/env perl
    LDFLAGS         =
    LDLIBS          =
    PERL            = perl
    RANLIB          = ranlib
    RC              = windres
    RCFLAGS         =

NOTE: These variables only represent the configuration view.  The build file
template may have processed these variables further, please have a look at the
build file for more exact data:
    Makefile

build file:

    Makefile

build file templates:

    Configurations/common0.tmpl
    Configurations/unix-Makefile.tmpl

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 21 (21 by maintainers)

Commits related to this issue

Most upvoted comments

Probably rather a question for @DDvO.

I reran the test a few times directly from a shell and it passed. The diagnostics are slightly different, which hints that running tests in Jenkins might be slightly different from a pipes standpoint. I am going to rerun the build/test again when 3.1.1 and 1.1.1u all finish.

80-test_cmp_http.t ..
# The results of this test will end up in test-runs/test_cmp_http
1..6
Current directory is /home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/test/recipes/80-test_cmp_http_data/Mock
Launching mock server: ../../../../util/wrap.pl ../../../../apps/openssl cmp -config server.cnf
Pid is: 2013265946
Server output: cmp_main:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2832:CMP info: using section(s) 'cmp' of OpenSSL configuration file 'server.cnf'
Server output: ACCEPT [::]:61228 PID=1342177520
# Subtest: CMP app CLI Mock connection
    1..37
cmp: Received request, 1st line: POST /pkix/ HTTP/1.0
CMP DEBUG: received IR
CMP DEBUG: validating CMP message
CMP DEBUG: trying to build chain for own CMP signer cert
CMP DEBUG: success building chain for own CMP signer cert
CMP DEBUG: sending IP
cmp: Received request, 1st line: POST /pkix/ HTTP/1.0
CMP DEBUG: received CERTCONF
CMP DEBUG: validating CMP message
CMP DEBUG: sending PKICONF
# cmp_main:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2832:CMP info: using section(s) 'Mock connection' of OpenSSL configuration file '../Mock/test.cnf'
# opt_str:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2316:CMP warning: -proxy option argument is empty string, resetting option
# setup_client_ctx:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2009:CMP info: will contact http://127.0.0.1:61228/pkix/
# CMP info: sending IR
# CMP info: received IP
# CMP info: sending CERTCONF
# CMP info: received PKICONF
# save_free_certs:/home/ituglib/randall/jenkins/.jenkins/workspace/OpenSSL-3.0_Pipeline/apps/cmp.c:2057:CMP info: received 1 enrolled certificate(s), saving to file '../../../../test-runs/test_cmp_http/test.cert.pem'
../../../../util/wrap.pl ../../../../apps/openssl cmp -server '127.0.0.1:61228' -config ../Mock/test.cnf -section 'Mock connection' -certout ../../../../test-runs/test_cmp_http/test.cert.pem -proxy '' -no_proxy 127.0.0.1 => 0
    ok 1 - default config

There does not appear to be a difference running in /bin/ksh vs. /usr/coreutils/bin/bash or redirecting pipes.