noxxi / p5-io-socket-ssl

IO::Socket::SSL Perl Module
36 stars 59 forks source link

IO::Socket::SSL test/compile takes forever #100

Closed noxxi closed 3 years ago

noxxi commented 3 years ago

Migrated from rt.cpan.org #133123 (status was 'open')

Requestors:

From fithox@gmail.com on 2020-08-06 11:47:46 :

I'm trying to install IO::Socket::SSL 2.068 using Strawberry Perl v5.30.2. Testing hangs on t/sni_verify.t and never ends. Building without testing is successful.

C:\Users\Administrator>cpan -v install IO::Socket::SSL
Loading internal logger. Log::Log4perl recommended for better logging
 >(info): [v] Printing version -- ignoring other arguments
 >(info): C:\Strawberry\perl\bin/cpan script version 1.675, CPAN.pm 
version 2.27

C:\Users\Administrator>cpanm -v install IO::Socket::SSL
cpanm (App::cpanminus) 1.7044 on perl 5.030002 built for 
MSWin32-x64-multi-threa
d
Work directory is C:\Users\ADMINI~1/.cpanm/work/1596713684.4476
You have make C:\Strawberry\c\bin\gmake.exe
You have LWP 6.43
Falling back to Archive::Tar 2.36
Searching install () on cpanmetadb ...
--> Working on install
Fetching 
http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install-0.01.tar.gz ... OK

Unpacking install-0.01.tar.gz
Entering install-0.01
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.44)
Running Makefile.PL
Configuring install-0.01 ... Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for install
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.44)
Building and testing install-0.01 ... cp lib/install.pm 
blib\lib\install.pm
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" 
"-MTest::Harness" "-
e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 
'blib\arch')" t/
*.t
t/install.t .. ok
All tests successful.
Files=1, Tests=1,  0 wallclock secs ( 0.02 usr +  0.03 sys =  0.05 CPU)
Result: PASS
Installing C:\STRAWB~1\perl\site\lib\install.pm
Appending installation info to C:\STRAWB~1\perl\lib/perllocal.pod
OK
Successfully installed install-0.01
Installing 
C:\STRAWB~1\perl\site\lib\MSWin32-x64-multi-thread\.meta\install-0.01
\install.json
Installing 
C:\STRAWB~1\perl\site\lib\MSWin32-x64-multi-thread\.meta\install-0.01
\MYMETA.json
Searching IO::Socket::SSL () on cpanmetadb ...
--> Working on IO::Socket::SSL
Fetching 
http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz ..
. OK
Unpacking IO-Socket-SSL-2.068.tar.gz
Entering IO-Socket-SSL-2.068
Checking configure dependencies from META.json
Checking if you have Net::SSLeay 1.46 ... Yes (1.88)
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.44)
Running Makefile.PL
Configuring IO-Socket-SSL-2.068 ... Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for IO::Socket::SSL
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have Net::SSLeay 1.46 ... Yes (1.88)
Checking if you have Scalar::Util 0 ... Yes (1.54)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.44)
Checking if you have Mozilla::CA 0 ... Yes (20180117)
Building and testing IO-Socket-SSL-2.068 ... cp lib/IO/Socket/SSL.pm 
blib\lib\IO
\Socket\SSL.pm
cp lib/IO/Socket/SSL/Intercept.pm blib\lib\IO\Socket\SSL\Intercept.pm
cp lib/IO/Socket/SSL/Utils.pm blib\lib\IO\Socket\SSL\Utils.pm
cp lib/IO/Socket/SSL/PublicSuffix.pm 
blib\lib\IO\Socket\SSL\PublicSuffix.pm
cp lib/IO/Socket/SSL.pod blib\lib\IO\Socket\SSL.pod
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" 
"-MTest::Harness" "-
e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 
'blib\arch')" t/
*.t t/external/*.t
t/01loadmodule.t .................. 1/3 # openssl version 
compiled=0x1010104f li
nked=0x1010104f -- OpenSSL 1.1.1d  10 Sep 2019
# Net::SSLeay version=1.88
# parent IO::Socket::IP version=0.39
t/01loadmodule.t .................. ok
t/acceptSSL-timeout.t ............. ok
t/alpn.t .......................... ok
t/auto_verify_hostname.t .......... ok
t/cert_formats.t .................. ok
t/cert_no_file.t .................. ok
t/compatibility.t ................. ok
t/connectSSL-timeout.t ............ ok
t/core.t .......................... ok
t/dhe.t ........................... ok
t/ecdhe.t ......................... Failed 1/4 subtests
t/external/ocsp.t ................. # tcp connect to www.chksum.de:443 
ok
# fingerprint matches
# validation with default CA w/o OCSP ok
# got stapled response as expected
# validation with default CA with OCSP defaults ok
# validation with default CA with OCSP full chain ok
t/external/ocsp.t ................. 1/3 # tcp connect to www.bild.de:443 
ok
# tcp connect to revoked.grc.com:443 ok
# fingerprint matches
t/external/ocsp.t ................. ok
t/external/usable_ca.t ............ # found 138 CA certs
# have root CA for www.bild.de in store
# 5 connections to www.bild.de ok
t/external/usable_ca.t ............ 1/21 # have root CA for 
www.yahoo.com in sto
re
# 5 connections to www.yahoo.com ok
# have root CA for www.comdirect.de in store
# 5 connections to www.comdirect.de ok
# have root CA for meine.deutsche-bank.de in store
# 5 connections to meine.deutsche-bank.de ok
t/external/usable_ca.t ............ 10/21 # have root CA for 
www.twitter.com in
store
# 5 connections to www.twitter.com ok
# have root CA for www.facebook.com in store
# 5 connections to www.facebook.com ok
# have root CA for www.live.com in store
# 5 connections to www.live.com ok
t/external/usable_ca.t ............ ok
t/io-socket-inet6.t ............... ok
t/io-socket-ip.t .................. ok
t/memleak_bad_handshake.t ......... skipped: ps not implemented on this 
platform

t/mitm.t .......................... ok
t/multiple-cert-rsa-ecc.t ......... ok
t/nonblock.t ...................... ok
t/npn.t ........................... ok
t/plain_upgrade_downgrade.t ....... # -- test: newINET start_SSL 
stop_SSL start_
SSL
# server accepted new client
# wait for initial data from client
# got 0x666f6f from client
# server: got plain data at start of connection
# server: TLS upgrade
t/plain_upgrade_downgrade.t ....... 1/15 # server: TLS downgrade
# server: TLS upgrade#2
# -- test: newSSL stop_SSL connect_SSL
# server accepted new client
# wait for initial data from client
# got 0x160301 from client
# server: TLS upgrade
# server: TLS downgrade
# server: TLS upgrade#2
# -- test: newSSL:0 connect_SSL stop_SSL connect_SSL
# server accepted new client
# wait for initial data from client
# got 0x666f6f from client
# server: got plain data at start of connection
# server: TLS upgrade
# server: TLS downgrade
# server: TLS upgrade#2
# -- test: newSSL:0 start_SSL stop_SSL connect_SSL
# server accepted new client
# wait for initial data from client
# got 0x666f6f from client
# server: got plain data at start of connection
# server: TLS upgrade
# server: TLS downgrade
# server: TLS upgrade#2
# server accepted new client
# wait for initial data from client
# got 0x656e64 from client
# client requested end of tests
t/plain_upgrade_downgrade.t ....... ok
t/protocol_version.t .............. 1/? # looks like OpenSSL was 
compiled withou
t SSLv3 support
t/protocol_version.t .............. ok
t/public_suffix_lib_encode_idn.t .. ok
t/public_suffix_lib_libidn.t ...... ok
t/public_suffix_lib_uri.t ......... ok
t/public_suffix_ssl.t ............. ok
t/readline.t ...................... ok
t/session_cache.t ................. ok
t/session_ticket.t ................ # listen at 127.0.0.1:64008
# listen at 127.0.0.1:64009
# connect to 0: success reuse=0 version=TLSv1_3
t/session_ticket.t ................ 1/6 # connect to 0: success reuse=1 
version=
TLSv1_3
# connect to 1: success reuse=1 version=TLSv1_3
# connect to 1: success reuse=0 version=TLSv1_3
# connect to 0: success reuse=0 version=TLSv1_3
# connect to 0: success reuse=1 version=TLSv1_3
t/session_ticket.t ................ ok
t/sessions.t ...................... ok
t/set_curves.t .................... ok
t/signal-readline.t ............... skipped: signals not relevant on 
this platfo
rm
t/sni.t ........................... ok
t/sni_verify.t .................... 1/17
noxxi commented 3 years ago

From twata_1@yahoo.co.jp on 2021-01-23 13:27:39 :

Hello,

Same here. Windows 8.1, Strawberry Perl v5.30.2 64 bit. I'm trying to install IO::Socket::SSL 2.069.

In case of Strawberry Perl v5.28.2 64 bit, Testing was passed when I manually downloaded IO-Socket-SSL 2.069.tar.gz and eventually run gmake test. But, In case of Strawberry Perl v5.30.2 64 bit, It seems to me that testing hangs on t/sni_verify.t even if I run gmake test manually.

Thank you,

twata

noxxi commented 3 years ago

Duplicate of #97. Progress will be tracked there.