Skip Menu |
 

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

Report information
The Basics
Id: 76574
Status: resolved
Priority: 0/
Queue: IO-Socket-IP

People
Owner: Nobody in particular
Requestors: cpan698301 [...] mstier.de
Cc:
AdminCc:

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



Subject: test fails against perl 5.15.9 - missing Socket version requirement?
Download (untitled) / with headers
text/plain 1.2k
Tests are ok against newer version of Socket (2.001). t/00use.t ........................... ok t/01local-client-v4.t ............... ok t/02local-server-v4.t ............... ok t/03local-cross-v4.t ................ ok t/04local-client-v6.t ............... ok t/05local-server-v6.t ............... ok t/06local-cross-v6.t ................ ok t/10args.t .......................... ok t/11sockopts.t ...................... ok t/12port-fallback.t ................. ok t/13addrinfo.t ...................... ok t/14fileno.t ........................ ok t/15io-socket.t ..................... ok Cannot listen on PF_INET6 - Name or service not known at t/16v6only.t line 19. # Looks like your test exited with 22 before it could output anything. t/16v6only.t ........................ Dubious, test returned 22 (wstat 5632, 0x1600) Failed 6/6 subtests t/20nonblocking-connect.t ........... ok t/21nonblocking-connect-internet.t .. ok t/99pod.t ........................... ok Test Summary Report ------------------- t/16v6only.t (Wstat: 5632 Tests: 0 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 6 tests but ran 0. Files=17, Tests=170, 2 wallclock secs ( 0.13 usr 0.12 sys + 1.96 cusr 0.62 csys = 2.83 CPU) Result: FAIL Failed 1/17 test programs. 0/170 subtests failed.
Download (untitled) / with headers
text/plain 975b
Show quoted text
> Tests are ok against newer version of Socket (2.001).
... Show quoted text
> Cannot listen on PF_INET6 - Name or service not known at t/16v6only.t > line 19. > # Looks like your test exited with 22 before it could output anything. > t/16v6only.t ........................
That looks odd. The failure isn't specific to some version of Socket; it relates to trying to create the initial listen-mode socket: my $listensock = IO::Socket::IP->new( Listen => 1, Family => PF_INET6, LocalPort => 0, Type => SOCK_STREAM, V6Only => 1, ) or die "Cannot listen on PF_INET6 - $@"; I can't think what difference would be made simply using a newer version of Socket here. The failure likely comes from getaddrinfo itself. If this is still repeatable, can you send me two 'strace' outputs from running perl -Mblib t/16v6only.t against each version of Socket? That would let me see the difference in the calls it makes. -- Paul Evans
From: cpan698301 [...] mstier.de
Download (untitled) / with headers
text/plain 285b
Also fails against perl-5.16.0-RC2 on: Debian 6 (i586/x86_64) SLES 10 SP3 (x86_64) SLES 11 SP1 (x86_64) Ubuntu 11.04+11.10 (x86_64) See build and test log: https://build.opensuse.org/package/rawlog?arch=i586&package=optperldev-pkgs&project=home%3Akalium%3Atest&repository=Debian_6.0
Download (untitled) / with headers
text/plain 3.3k
Tested again today: $ perl5.16.0 -MSocket -E 'say $Socket::VERSION' 2.001 $ perl5.16.0 -MSocket -E 'say $INC{"Socket.pm"}' /home/leo/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/x86_64- linux/Socket.pm (so, just the Socket that comes with perl5.16.0) $ perl5.16.0 Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'IO-Socket-IP' version '0.10' $ ./Build * WARNING: Configuration was initially created with Module::Build version '0.3901' but we are now using version '0.38'. If errors occur, you must re-run the Build.PL or Makefile.PL script. Building IO-Socket-IP $ ./Build test * WARNING: Configuration was initially created with Module::Build version '0.3901' but we are now using version '0.38'. If errors occur, you must re-run the Build.PL or Makefile.PL script. t/00use.t ........................... ok t/01local-client-v4.t ............... ok t/02local-server-v4.t ............... ok t/03local-cross-v4.t ................ ok t/04local-client-v6.t ............... ok t/05local-server-v6.t ............... ok t/06local-cross-v6.t ................ ok t/10args.t .......................... ok t/11sockopts.t ...................... ok t/12port-fallback.t ................. ok t/13addrinfo.t ...................... ok t/14fileno.t ........................ ok t/15io-socket.t ..................... ok t/16v6only.t ........................ ok t/17gai-flags.t ..................... ok t/20nonblocking-connect.t ........... ok t/21nonblocking-connect-internet.t .. ok t/99pod.t ........................... skipped: Test::Pod 1.00 required for testing POD All tests successful. Files=18, Tests=181, 1 wallclock secs ( 0.05 usr 0.02 sys + 0.62 cusr 0.06 csys = 0.75 CPU) Result: PASS Also [install Socket 1.97 from BackPAN onto perl5.12.4] $ perl5.12.4 -MSocket -E 'say $Socket::VERSION' 1.97 $ perl5.12.4 -MSocket -E 'say $INC{"Socket.pm"}' /home/leo/perl5/perlbrew/perls/perl-5.12.4/lib/site_perl/5.12.4/x86_64- linux/Socket.pm $ perl5.12.4 Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'IO-Socket-IP' version '0.10' $ ./Build test t/00use.t ........................... ok t/01local-client-v4.t ............... ok t/02local-server-v4.t ............... ok t/03local-cross-v4.t ................ ok t/04local-client-v6.t ............... ok t/05local-server-v6.t ............... ok t/06local-cross-v6.t ................ ok t/10args.t .......................... ok t/11sockopts.t ...................... 1/3 Attempt to free unreferenced scalar: SV 0x1856a98 at t/11sockopts.t line 41. t/11sockopts.t ...................... ok t/12port-fallback.t ................. ok t/13addrinfo.t ...................... ok t/14fileno.t ........................ ok t/15io-socket.t ..................... ok t/16v6only.t ........................ ok t/17gai-flags.t ..................... ok t/20nonblocking-connect.t ........... ok t/21nonblocking-connect-internet.t .. ok t/99pod.t ........................... skipped: Test::Pod 1.00 required for testing POD All tests successful. Files=18, Tests=181, 1 wallclock secs ( 0.04 usr 0.02 sys + 0.44 cusr 0.08 csys = 0.58 CPU) Result: PASS Builds here fine. $ uname -a Linux cel 3.1.0-1-amd64 #1 SMP Fri Dec 23 16:37:11 UTC 2011 x86_64 GNU/Linux So again I'm having trouble reproducing this one at all. -- Paul Evans
Download (untitled) / with headers
text/plain 152b
There have been a number of updates lately; latest version is now 0.16. Can you confirm if it still breaks or if this is now resolved? -- Paul Evans
This seems like it's dead now. Re-open if it's still an issue -- Paul Evans


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.