Skip Menu |

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

Report information
The Basics
Id: 75720
Status: resolved
Priority: 0/
Queue: IO-Async

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

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



Subject: 0.46 fails test under darwin 11.3.0
t/52loop-listen.t dies with "Test died early - resolve error closed" after test 4 ($newclient peer is correct). Here is a log: anno@radom> cpanp -z IO::Async anno@radom> ls Build.PL MANIFEST Makefile.PL lib Changes META.json README t LICENSE META.yml examples anno@radom> perl Makefile.PL # running Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'IO-Async' version '0.46' anno@radom> make /usr/local/bin/perl Build --makefile_env_macros 1 Building IO-Async anno@radom> prove -bv t/52loop-listen.t t/52loop-listen.t .. 1..19 ok 1 - on_notifier fired synchronously ok 2 - synchronous on_notifier given a Notifier isa IO::Async::Notifier ok 3 - $clientsock is connected ok 4 - $newclient peer is correct Test died early - resolve error closed # Looks like you planned 19 tests but ran 4. # Looks like your test exited with -1 just after 4. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 15/19 subtests Test Summary Report ------------------- t/52loop-listen.t (Wstat: 65280 Tests: 4 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 19 tests but ran 4. Files=1, Tests=4, 0 wallclock secs ( 0.06 usr 0.00 sys + 0.11 cusr 0.02 csys = 0.19 CPU) Result: FAIL
On Mon Mar 12 16:34:44 2012, ANNO wrote: Show quoted text
> t/52loop-listen.t dies with "Test died early - resolve error closed" > after test 4 ($newclient peer > is correct). Here is a log: > > > anno@radom> cpanp -z IO::Async > anno@radom> ls > Build.PL MANIFEST Makefile.PL lib > Changes META.json README t > LICENSE META.yml examples > anno@radom> perl Makefile.PL > # running Build.PL > Created MYMETA.yml and MYMETA.json > Creating new 'Build' script for 'IO-Async' version '0.46' > anno@radom> make > /usr/local/bin/perl Build --makefile_env_macros 1 > Building IO-Async > anno@radom> prove -bv t/52loop-listen.t > t/52loop-listen.t .. > 1..19 > ok 1 - on_notifier fired synchronously > ok 2 - synchronous on_notifier given a Notifier isa > IO::Async::Notifier > ok 3 - $clientsock is connected > ok 4 - $newclient peer is correct > Test died early - resolve error closed > # Looks like you planned 19 tests but ran 4. > # Looks like your test exited with -1 just after 4. > Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 15/19 subtests > > Test Summary Report > ------------------- > t/52loop-listen.t (Wstat: 65280 Tests: 4 Failed: 0) > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 19 tests but ran 4. > Files=1, Tests=4, 0 wallclock secs ( 0.06 usr 0.00 sys + 0.11 cusr > 0.02 csys = 0.19 CPU) > Result: FAIL
I wonder if it's upset by: $loop->listen( family => "inet", socktype => "stream", service => "", # Ask the kernel to allocate a port for us host => "localhost", ... ); the empty service name. What does the following output for you? $ perl -MSocket=getaddrinfo,AF_INET,SOCK_STREAM -MData::Dumper -E 'say Dumper(getaddrinfo("localhost", "", { family => AF_INET, socktype => SOCK_STREAM }))' I get: $VAR1 = ''; $VAR2 = { 'protocol' => 6, 'canonname' => undef, 'addr' => '', 'socktype' => 1, 'family' => 2 }; -- Paul Evans
Subject: Re: [rt.cpan.org #75720] 0.46 fails test under darwin 11.3.0
Date: Sun, 13 May 2012 19:34:11 +0200
To: bug-IO-Async [...] rt.cpan.org
From: Anno Siegel <anno5 [...] mac.com>
On 11.05.2012, at 23:31, Paul Evans via RT wrote: Show quoted text
> > What does the following output for you? > > $ perl -MSocket=getaddrinfo,AF_INET,SOCK_STREAM -MData::Dumper -E 'say > Dumper(getaddrinfo("localhost", "", { family => AF_INET, socktype => > SOCK_STREAM }))' > > I get: > > $VAR1 = ''; > $VAR2 = { > 'protocol' => 6, > 'canonname' => undef, > 'addr' => '', > 'socktype' => 1, > 'family' => 2 > };
The same: Show quoted text
> perl -MSocket=getaddrinfo,AF_INET,SOCK_STREAM -MData::Dumper -E 'say Dumper(getaddrinfo("localhost", "", { family => AF_INET, socktype => SOCK_STREAM }))'
$VAR1 = ''; $VAR2 = { 'protocol' => 6, 'canonname' => undef, 'addr' => '', 'socktype' => 1, 'family' => 2 }
On Fri May 11 17:31:58 2012, PEVANS wrote: Show quoted text
> $VAR2 = { > 'protocol' => 6, > 'canonname' => undef, > 'addr' => '',
^-- an empty string? Are you quite sure? Show quoted text
> 'socktype' => 1, > 'family' => 2 > };
If that is indeed an empty string that suggests a bug either with getaddrinfo() or the underlying platform. This bug is however rather old - can you confirm if it's still happening with latest IO::Async and Socket from CPAN? -- Paul Evans
Subject: Re: [rt.cpan.org #75720] 0.46 fails test under darwin 11.3.0
Date: Thu, 09 Jan 2014 02:22:35 +0100
To: bug-IO-Async [...] rt.cpan.org
From: Anno Siegel <anno5 [...] me.com>
On 09.01.2014, at 02:08, Paul Evans via RT <bug-IO-Async@rt.cpan.org> wrote: Show quoted text
> This bug is however rather old - can you confirm if it's still happening with latest IO::Async and Socket from CPAN?
It's gone, IO::Async 0.61 passes cleanly on Darwin 13.0.0 Anno
\o/ -- Paul Evans