Skip Menu |

This queue is for tickets about the IO-Socket-SSL CPAN distribution.

Report information
The Basics
Id: 66502
Status: resolved
Priority: 0/
Queue: IO-Socket-SSL

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
RCAPUTO [...] cpan.org
Cc:
AdminCc:

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



Subject: Test failure for nonblock.t on OS X
I have same error and similar OS and Perl version as this test report: http://www.cpantesters.org/cpan/report/ec0c07e0-47d7-11e0-9a8f-0f40037050c1
Subject: test falure - errstr() not part of IO::Socket::INET
t/nonblock.t ............... 18/27 Can't locate object method "errstr" via package "IO::Socket::INET" at t/nonblock.t line 317. Can't locate object method "errstr" via package "IO::Socket::INET" at t/nonblock.t line 152. t/nonblock.t ............... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 9/27 subtests ... cpan[2]> install IO IO is up to date (1.25).
Hi, since most test for IO::Socket::SSL pass (see http://www.cpantesters.org/distro/I/IO-Socket-SSL.html#IO-Socket-SSL-1.39) there must be something special on your system. To find out what's wrong I need your help. the best way would be to somehow get access to the system and debug the issue there. If this is not possible could you at least check the following dependencies: - do you have IO::Socket::INET6 installed (and which version). And if you have it installed, does it work (e.g. is your system IPv6 enabled)? - which version of Net::SSLeay are you using - which version of openssl is linked against Net::SSLeay Regards, Steffen
From: justincase [...] yopmail.com
On Mon Mar 21 08:12:21 2011, SULLR wrote: Show quoted text
> since most test for IO::Socket::SSL pass (see > http://www.cpantesters.org/distro/I/IO-Socket-SSL.html#IO-Socket-SSL-1.39) > there must be something special on your system. > To find out what's wrong I need your help. > > the best way would be to somehow get access to the system and debug the > issue there. If this is not possible could you at least check the > following dependencies: > - do you have IO::Socket::INET6 installed (and which version). And if > you have it installed, does it work (e.g. is your system IPv6 enabled)?
$ perl -MIO::Socket::INET6 -e 'print $IO::Socket::INET6::VERSION' 2.67 ipv6 appears to be functional on my system. Show quoted text
> - which version of Net::SSLeay are you using
$ perl -MNet::SSLeay -e 'print $Net::SSLeay::VERSION' 1.36 Show quoted text
> - which version of openssl is linked against Net::SSLeay
$ openssl version OpenSSL 1.0.0d 8 Feb 2011 - Note: the problem is not consistent- I repeatedly ran the following and it occasionally (4/10) installed successfully. pm-uninstall -f IO::Socket::SSl; cpanm IO::Socket::SSL I received the similar stats after uninstalling IO::Socket::INET6.
I'm seeing the exact same issue. Here are my answers to the same questions. No I don't have IO::Socket::INET6 installed. Net::SSLeay 1.36 I'm using the openssl that came with Snow Leopard, which is OpenSSL 0.9.8l 5 Nov 2009.
should hopefully be fixed with 1.43
1.43 still failing t/nonblock.t on darwin prove -v -Iblib/lib t/nonblock.t t/nonblock.t .. 1..27 ok # [server] Server Initialization ok # [client] client tcp connect ok # [client] write plain text ok # [client] upgrade client to IO::Socket::SSL # SSL wants a read first ok # [server] tcp accept ok # [server] received plain text ok # [server] upgrade to_client to IO::Socket::SSL # SSL wants a read first ok # [server] ssl accept handshake done ok # [client] connected ok # [client] nonblocking connect with 2 attempts # sndbuf=8192 ok # [server] received client message # $!=Resource temporarily unavailable $SSL_ERROR=SSL wants a write first send=147880 # wait for write # read 30000 (1 r/w attempts) # $!=Broken pipe $SSL_ERROR=SSL write errorerror:00000000:lib(0):func(0):reason(0) send=153560 # connection closed hard ok # [client] syswrite ok # [client] multiple write attempts ok # [client] 30000 bytes send ok # [client] client tcp connect not ok # [client] write plain text ok # [server] tcp accept ok # [client] upgrade client to IO::Socket::SSL # SSL wants a read first not ok # [server] received plain text ok # [server] upgrade to_client to IO::Socket::SSL # failed to ssl accept (fast): SSL accept attempt failed with unknown errorerror:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number not ok # [server] ssl accept handshake done not ok # [server] nonblocking accept_SSL with 0 attempts ok # [server] received client message # $!=Resource temporarily unavailable $SSL_ERROR=SSL accept attempt failed with unknown errorerror:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number # failed to connect: not ok # [client] connected # sndbuf=8192 # read 30000 (0 r/w attempts) # $!=Broken pipe $SSL_ERROR=SSL wants a read first send=51630 # connection closed hard ok # [client] syswrite not ok # [client] multiple write attempts ok # [client] 30000 bytes send Failed 6/27 subtests Test Summary Report ------------------- t/nonblock.t (Wstat: 0 Tests: 27 Failed: 6) Failed tests: 16, 19, 21-22, 24, 26 Files=1, Tests=27, 45 wallclock secs ( 0.03 usr 0.01 sys + 0.51 cusr 0.15 csys = 0.70 CPU) Result: FAIL
Subject: Re: [rt.cpan.org #66502] Test failure for nonblock.t on OS X
Date: Thu, 12 May 2011 21:44:25 +0200
To: Simon Elliott via RT <bug-IO-Socket-SSL [...] rt.cpan.org>
From: Steffen Ullrich <Steffen_Ullrich [...] genua.de>
Hi, I've tried to make some stability changes to nonblock.t. Please let me know, if it still fails for you - if it still fails it should at least produce more verbose outout so that I can see what's wrong. You can get the latest version from CPAN (just uploaded, might take a while to propagate to all mirrors) or from https://github.com/noxxi/p5-io-socket-ssl Regards, Steffen On Wed, May 11, 2011 at 08:37:35AM -0400, Simon Elliott via RT <bug-IO-Socket-SSL@rt.cpan.org> wrote: Show quoted text
> Queue: IO-Socket-SSL > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=66502 > > > 1.43 still failing t/nonblock.t on darwin > ...
-- GeNUA Gesellschaft für Netzwerk - und Unix-Administration mbH Domagkstr. 7, D-85551 Kirchheim. http://www.genua.de Tel: (089) 99 19 50-0, Fax: (089) 99 10 50 - 999 Geschäftsführer: Dr. Magnus Harlander, Dr. Michaela Harlander, Bernhard Schneck. Amtsgericht München HRB 98238
Hi Steffen - This has resolved the issue, thank you very much for your work on this.
Hi Steffen, The test seems to still fail randomly on OS X. (about 30% of the time under Perl 5.14.0) Here's the verbose output, hope it helps. ----------8<----------8<---------- odyssey:IO-Socket-SSL-1.43 sri$ prove -v -Ilib t/nonblock.t t/nonblock.t .. 1..27 ok # [server] Server Initialization ok # [client] client tcp connect ok # [client] write plain text ok # [server] tcp accept ok # [server] received plain text ok # [client] upgrade client to IO::Socket::SSL ok # [server] upgrade to_client to IO::Socket::SSL # SSL wants a read first # SSL wants a read first ok # [server] ssl accept handshake done ok # [client] connected ok # [client] nonblocking connect with 2 attempts # sndbuf=8192 ok # [server] received client message # $!=Resource temporarily unavailable $SSL_ERROR=SSL wants a write first send=147880 # wait for write # read 30000 (1 r/w attempts) # $!=Broken pipe $SSL_ERROR=SSL write errorerror:00000000:lib(0):func(0):reason(0) send=154520 # connection closed hard ok # [client] syswrite ok # [client] multiple write attempts ok # [client] 30000 bytes send ok # [client] client tcp connect not ok # [client] write plain text ok # [server] tcp accept ok # [client] upgrade client to IO::Socket::SSL # SSL wants a read first not ok # [server] received plain text ok # [server] upgrade to_client to IO::Socket::SSL # failed to ssl accept (fast): SSL accept attempt failed with unknown errorerror:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number not ok # [server] ssl accept handshake done not ok # [server] nonblocking accept_SSL with 0 attempts ok # [server] received client message # $!=Resource temporarily unavailable $SSL_ERROR=SSL accept attempt failed with unknown errorerror:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number # failed to connect: not ok # [client] connected # sndbuf=8192 # read 30000 (0 r/w attempts) # $!=Broken pipe $SSL_ERROR=SSL wants a read first send=59700 # connection closed hard ok # [client] syswrite not ok # [client] multiple write attempts ok # [client] 30000 bytes send Failed 6/27 subtests Test Summary Report ------------------- t/nonblock.t (Wstat: 0 Tests: 27 Failed: 6) Failed tests: 16, 19, 21-22, 24, 26 Files=1, Tests=27, 45 wallclock secs ( 0.04 usr 0.00 sys + 0.50 cusr 0.15 csys = 0.69 CPU) Result: FAIL
On Sat May 14 09:27:35 2011, ELLIOTT wrote: Show quoted text
> Hi Steffen - This has resolved the issue, thank you very much for your > work on this.
Just thought to say for what it is worth this also fixed the problem for me as well --Johnn
I can also confirm that 1.43_1 seems to have fixed the problem.
On Mon May 16 16:02:19 2011, JJNAPIORK wrote: Show quoted text
> On Sat May 14 09:27:35 2011, ELLIOTT wrote:
> > Hi Steffen - This has resolved the issue, thank you very much for your > > work on this.
> > Just thought to say for what it is worth this also fixed the problem for > me as well --Johnn > >
Just as a quick followup, I just tried installing this 10 times in a row on my 10.6 Macbook Pro, using Perl 5.14.0 and it installed with all tests passed all ten times. Just FYI. --Johnn
The issue seems to be resolved, so the bug will be closed