Skip Menu |

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 115398
Status: rejected
Priority: 0/
Queue: Net-SSLeay

People
Owner: Nobody in particular
Requestors: CLEACH [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.68
Fixed in: (no value)



Subject: Test script t/local/07_sslecho.t is failing
I'm running Perl 5.10.1 on AIX v7.1 using OpenSSL 1.0.1e (I'll include the perl -V output at the end of this email.) Your module broke after applying the most recent set of AIX patches. I install all modules in an alternate location so that I can easily wipe them and retest/reinstall them from scratch to verify major AIX upgrades don't kill my Perl software. No need to test my code base if the module won't install cleanly any more. The reason I'm opening this ticket on such an old version(1.68) is that v1.74 has compile issues on AIX that I will open a 2nd ticket on. Upgrading to the latest release was my 1st try to fix this issue. The problem in v1.68 is test # 3 in t/local/07_sslecho.t, all other tests in this test suite pass. (this test file is unchanged in v1.74) Below is the output of the 1st 5 tests of this file. So my question is do you have any hints for things to check out on what is causing this test to fail? Thank you for any help you can give me. Curtis ===================================================================== 1..78 ok 1 - CTX_new ok 2 - CTX_set_cipher_list not ok 3 - set_cert_and_key: private key `t/data/key.pem' () 21692506: 1 - error:2606C043:engine routines:ENGINE_FREE_UTIL:passed a null parameter # private key `t/data/key.pem' () 21692506: 2 - error:2606A074:engine routines:ENGINE_by_id:no such engine # private key `t/data/key.pem' () 21692506: 3 - error:2606C043:engine routines:ENGINE_FREE_UTIL:passed a null parameter # private key `t/data/key.pem' () 21692506: 4 - error:2606A074:engine routines:ENGINE_by_id:no such engine # # Failed test 'set_cert_and_key: private key `t/data/key.pem' () 21692506: 1 - error:2606C043:engine routines:ENGINE_FREE_UTIL:passed a null parameter # private key `t/data/key.pem' () 21692506: 2 - error:2606A074:engine routines:ENGINE_by_id:no such engine # private key `t/data/key.pem' () 21692506: 3 - error:2606C043:engine routines:ENGINE_FREE_UTIL:passed a null parameter # private key `t/data/key.pem' () 21692506: 4 - error:2606A074:engine routines:ENGINE_by_id:no such engine # ' # at t/local/07_sslecho.t line 63. ok 4 - new ok 5 - set_fd using fileno ===================================================================== /tmp/build> perl -V Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=aix, osvers=6.1.2.0, archname=aix-thread-multi uname='aix akash79 1 6 00011a85d600 powerpc unknown aix ' config_args='-desr -Dinstallprefix=/usr/opt/perl5 -Dprefix=/usr/opt/perl5 -Dcc=xlc_r -Duseshrplib -Dusethreads' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='xlc_r -q32', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong', optimize='-O', cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -I/usr/local/include' ccversion='10.1.0.9', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='ld', ldflags =' -brtl -bdynamic -L/usr/local/lib -b32' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib /usr/lib64 libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc libc=, so=a, useshrplib=true, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -bE:/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE/perl.exp' cccdlflags=' ', lddlflags='-bhalt:4 -G -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc -lm -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under aix Compiled at May 19 2013 14:28:07 %ENV: PERL5LIB="/usr/opt/perl5/erm_lib/lib/perl5" @INC: /usr/opt/perl5/erm_lib/lib/perl5/aix-thread-multi /usr/opt/perl5/erm_lib/lib/perl5 /usr/opt/perl5/lib/5.10.1/aix-thread-multi /usr/opt/perl5/lib/5.10.1 /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.10.1 /usr/opt/perl5/lib/site_perl/5.8.8 /usr/opt/perl5/lib/site_perl .
Thanks for the report, Curtis. On Fri Jun 17 20:02:59 2016, CLEACH wrote: Show quoted text
> I'm running Perl 5.10.1 on AIX v7.1 using OpenSSL 1.0.1e (I'll > include the perl -V output at the end of this email.) > > Your module broke after applying the most recent set of AIX patches. > I install all modules in an alternate location so that I can easily > wipe them and retest/reinstall them from scratch to verify major AIX > upgrades don't kill my Perl software. No need to test my code base if > the module won't install cleanly any more. > > The reason I'm opening this ticket on such an old version(1.68) is > that v1.74 has compile issues on AIX that I will open a 2nd ticket on. > Upgrading to the latest release was my 1st try to fix this issue. > > The problem in v1.68 is test # 3 in t/local/07_sslecho.t, all other > tests in this test suite pass. (this test file is unchanged in v1.74) > Below is the output of the 1st 5 tests of this file. > > So my question is do you have any hints for things to check out on > what is causing this test to fail?
t/data/key.pem is --- was, since we deleted it in 1.86_10 --- a 1024-bit RSA key. I can't think of why there'd be a particular problem when trying to load it, given that that key was used all over the test suite at the time you filed this report and there didn't seem to be any problems loading it in those other tests. In any case, I just tested the latest stable version of Net-SSLeay (1.88, released today) on AIX 7.2 with Perl 5.20.1 and OpenSSL 1.0.2k, and the test suite passes with no problems (see attached). The best thing I can advise is to try 1.88 on your system and let us know if it still doesn't work for you.
Subject: aix-make-test.txt
l0790p082_pub[/home/u0021466/Net-SSLeay-1.88] > uname -a AIX l0790p082_pub 2 7 00C007904B00 l0790p082_pub[/home/u0021466/Net-SSLeay-1.88] > perl -V Summary of my perl5 (revision 5 version 20 subversion 1) configuration: Platform: osname=aix, osvers=6.1.0.0, archname=aix-thread-multi uname='aix blade08 1 6 00003c3ad100 ' config_args='-d -Dprefix=/usr/opt/perl5 -Dcc=xlc_r -Duseshrplib -Dusethreads' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='xlc_r -q32', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES', optimize='-O', cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT' ccversion='12.1.0.9', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='ld', ldflags =' -brtl -bdynamic -b32' libpth=/lib /usr/lib /usr/ccs/lib libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc libc=, so=a, useshrplib=true, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -bE:/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/perl.exp' cccdlflags=' ', lddlflags='-bhalt:4 -G -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc -lm' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Built under aix Compiled at Feb 6 2015 14:54:29 @INC: /usr/opt/perl5/lib/site_perl/5.20.1/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.20.1 /usr/opt/perl5/lib/5.20.1/aix-thread-multi /usr/opt/perl5/lib/5.20.1 /usr/opt/perl5/lib/site_perl . l0790p082_pub[/home/u0021466/Net-SSLeay-1.88] > openssl version OpenSSL 1.0.2k 26 Jan 2017 l0790p082_pub[/home/u0021466/Net-SSLeay-1.88] > perl Makefile.PL Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [n] *** Found OpenSSL-1.0.2o installed in /usr *** Be sure to use the same compiler and options to compile your OpenSSL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Net::SSLeay Writing MYMETA.yml and MYMETA.json l0790p082_pub[/home/u0021466/Net-SSLeay-1.88] > make cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay) blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters: directory blib/lib/auto/Net/SSLeay: do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ /usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "Net::SSLeay", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);' Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs /usr/bin/perl /usr/opt/perl5/lib/5.20.1/ExtUtils/xsubpp -typemap /usr/opt/perl5/lib/5.20.1/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c xlc_r -q32 -c -I"/usr/include" -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -O -DVERSION=\"1.88\" -DXS_VERSION=\"1.88\" "-I/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE" SSLeay.c "/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/perl.h", line 4198.15: 1506-963 (W) The attribute "deprecated" is not a valid variable attribute and is ignored. "/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/perl.h", line 4200.15: 1506-963 (W) The attribute "deprecated" is not a valid variable attribute and is ignored. "SSLeay.c", line 14361.44: 1506-280 (W) Function argument assignment between types "int(*)(char*,int,int,void*)" and "void*" is not allowed. rm -f blib/arch/auto/Net/SSLeay/SSLeay.so ld -bhalt:4 -G -bI:/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/perl.exp -bE:SSLeay.exp -bnoentry -lpthreads -lc -lm SSLeay.o -o blib/arch/auto/Net/SSLeay/SSLeay.so -L/usr -L/usr/lib64 -L/usr/lib -lssl -lcrypto -lz chmod 755 blib/arch/auto/Net/SSLeay/SSLeay.so /usr/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs 644 Manifying blib/man3/Net::SSLeay.3 Manifying blib/man3/Net::SSLeay::Handle.3 l0790p082_pub[/home/u0021466/Net-SSLeay-1.88] > make test Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/local/*.t t/handle/local/*.t t/handle/local/05_use.t ................ ok t/local/01_pod.t ....................... skipped: Test::Pod 1.00 required for testing POD t/local/02_pod_coverage.t .............. skipped: these tests are for only for release candidate testing. Enable with RELEASE_TESTING=1 t/local/03_use.t ....................... 1/1 # # Testing Net::SSLeay 1.88 # # Perl information: # Version: '5.020001' # Executable path: '/usr/bin/perl' # # libssl information: # SSLEAY_VERSION: 'OpenSSL 1.0.2k 26 Jan 2017' # SSLEAY_CFLAGS: 'compiler: cc -I. -I.. -I../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE -DDSO_DLFCN -DHAVE_DLFCN_H -DSSL_ALLOW_ADH -DAIXSSL_IBM_VERSION=1.0.2.1100 -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DVPAES_ASM' # SSLEAY_BUILT_ON: 'built on: reproducible build, date unspecified' # SSLEAY_PLATFORM: 'platform: aix-xlc_r' # SSLEAY_DIR: 'OPENSSLDIR: "/var/ssl"' t/local/03_use.t ....................... ok t/local/04_basic.t ..................... ok t/local/05_passwd_cb.t ................. ok t/local/06_tcpecho.t ................... ok t/local/07_sslecho.t ................... ok t/local/08_pipe.t ...................... ok t/local/09_ctx_new.t ................... ok t/local/10_rand.t ...................... ok t/local/11_read.t ...................... ok t/local/15_bio.t ....................... ok t/local/20_autoload.t .................. skipped: Some tests need Test::Exception t/local/21_constants.t ................. skipped: Some tests need Test::Exception t/local/30_error.t ..................... skipped: Requires Test::Exception, Test::Warn and Test::NoWarnings t/local/31_rsa_generate_key.t .......... skipped: Test::Exception required t/local/32_x509_get_cert_info.t ........ ok t/local/33_x509_create_cert.t .......... ok t/local/34_x509_crl.t .................. ok t/local/35_ephemeral.t ................. ok t/local/36_verify.t .................... ok t/local/37_asn1_time.t ................. ok t/local/38_priv-key.t .................. ok t/local/39_pkcs12.t .................... ok t/local/40_npn_support.t ............... ok t/local/41_alpn_support.t .............. ok t/local/42_info_callback.t ............. ok t/local/43_misc_functions.t ............ ok t/local/44_sess.t ...................... ok t/local/45_exporter.t .................. ok t/local/50_digest.t .................... ok t/local/61_threads-cb-crash.t .......... ok t/local/62_threads-ctx_new-deadlock.t .. ok t/local/63_ec_key_generate_key.t ....... ok t/local/64_ticket_sharing.t ............ ok t/local/65_security_level.t ............ skipped: openssl-1.1.0 required t/local/65_ticket_sharing_2.t .......... ok t/local/66_curves.t .................... ok t/local/kwalitee.t ..................... skipped: these tests are for only for release candidate testing. Enable with RELEASE_TESTING=1 All tests successful. Files=40, Tests=2025, 11 wallclock secs ( 0.14 usr 0.03 sys + 2.71 cusr 0.23 csys = 3.11 CPU) Result: PASS Target "test" is up to date.