Skip Menu |
 

This queue is for tickets about the RPC-XML CPAN distribution.

Report information
The Basics
Id: 99578
Status: resolved
Priority: 0/
Queue: RPC-XML

People
Owner: rjray [...] blackperl.com
Requestors: dmacks [...] netspace.org
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=0.433 tagged_above=-99.9 required=10 tests=[AWL=-0.046, BAYES_05=-0.5, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Content-Disposition: inline
X-CTCH-Flags: 0
X-Spam-Flag: NO
X-CTCH-Spam: Unknown
X-CTCH-Rules: C_4847,
content-type: text/plain; charset="utf-8"
Message-ID: <20141019030424.l556whly8k40ws4s [...] webmail.netspace.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-CTCH-Vod: Unknown
X-CTCH-Score: 0.000
X-Spam-Score: 0.433
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 7B71C2400B0 for <cpan-bug+RPC-XML [...] hipster.bestpractical.com>; Sun, 19 Oct 2014 03:04:32 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6praZ4MnZ9F3 for <cpan-bug+RPC-XML [...] hipster.bestpractical.com>; Sun, 19 Oct 2014 03:04:31 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6CD1F240024 for <bug-RPC-XML [...] rt.cpan.org>; Sun, 19 Oct 2014 03:04:31 -0400 (EDT)
Received: (qmail 4148 invoked by alias); 19 Oct 2014 07:04:30 -0000
Received: from mail101c40.carrierzone.com (HELO mail101c40.carrierzone.com) (209.235.156.241) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 19 Oct 2014 00:04:28 -0700
Received: from mail101c40.carrierzone.com (localhost [127.0.0.1]) by mail101c40.carrierzone.com (8.13.6/8.13.1) with ESMTP id s9J74Os2011759 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <bug-RPC-XML [...] rt.cpan.org>; Sun, 19 Oct 2014 07:04:24 +0000
Received: (from webmail [...] localhost) by mail101c40.carrierzone.com (8.13.6/8.12.2/Submit) id s9J74O4R011758 for bug-RPC-XML [...] rt.cpan.org; Sun, 19 Oct 2014 03:04:24 -0400
Received: from pool-96-244-70-141.bltmmd.fios.verizon.net (pool-96-244-70-141.bltmmd.fios.verizon.net [96.244.70.141]) by webmail.netspace.org (Webmail 5.0 V.V.I.) with HTTP for <dmacks [...] netspace.org>; Sun, 19 Oct 2014 03:04:24 -0400
X-CTCH-Refid: str=0001.0A020201.54436278.0157,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0
Delivered-To: cpan-bug+RPC-XML [...] hipster.bestpractical.com
User-Agent: Webmail 6.0
Subject: t/60_net_server.t failure
Return-Path: <dmacks [...] netspace.org>
X-Priority: 3
X-RT-Mail-Extension: rpc-xml
X-Original-To: cpan-bug+RPC-XML [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
X-CTCH-Scorecust: 0.000
Date: Sun, 19 Oct 2014 03:04:24 -0400
X-Spam-Level:
To: bug-RPC-XML [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: "Daniel Macks" <dmacks [...] netspace.org>
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 2473
Download (untitled) / with headers
text/plain 2.4k
On OS X 10.8 using apple's perl-5.12.4, RPC-XML-0.78, with all CPAN dependencies supplied via fink, self-test fails: t/60_net_server.t ............... 2/30 #   Failed test 'system.identity matches $srv->product_tokens' #   at t/60_net_server.t line 60. #          got: undef #     expected: 'RPC::XML::Server/1.73' #   Failed test 'system.listMethods returned ARRAY ref' #   at t/60_net_server.t line 68. #          got: '' #     expected: 'ARRAY' #   Failed test 'system.listMethods returned ARRAY ref' #   at t/60_net_server.t line 80. #          got: '' #     expected: 'ARRAY' #   Failed test 'system.listMethods returned ARRAY ref' #   at t/60_net_server.t line 90. #          got: '' #     expected: 'ARRAY' #   Failed test 'system.listMethods returned HASH ref' #   at t/60_net_server.t line 100. #          got: '' #     expected: 'HASH' #   Failed test 'system.methodHelp returned correct string' #   at t/60_net_server.t line 110. #          got: undef #     expected: 'Return the server name and version as a string' #   Failed test 'system.methodHelp returned ARRAY ref' #   at t/60_net_server.t line 116. #          got: '' #     expected: 'ARRAY' #   Failed test ''system.methodHelp (bad arg) response' isa 'RPC::XML::fault'' #   at t/60_net_server.t line 127. #     'system.methodHelp (bad arg) response' isn't a 'RPC::XML::fault' #   Failed test 'system.methodHelp returned ARRAY ref' #   at t/60_net_server.t line 136. #          got: '' #     expected: 'ARRAY' #   Failed test ''system.methodSignature (bad arg) response' isa 'RPC::XML::fault'' #   at t/60_net_server.t line 146. #     'system.methodSignature (bad arg) response' isn't a 'RPC::XML::fault' #   Failed test 'system.methodHelp returned ARRAY ref' #   at t/60_net_server.t line 193. #          got: '' #     expected: 'ARRAY' # Looks like you planned 30 tests but ran 29. # Looks like you failed 11 tests of 29 run. t/60_net_server.t ............... Dubious, test returned 11 (wstat 2816, 0xb00) Failed 12/30 subtests         (less 16 skipped subtests: 2 okay) It looks like a similar result to: https://rt.cpan.org/Public/Bug/Display.html?id=77992 that was claimed fixed in a previous version. I do have Net::Server (2.008, latest CPAN version) installed. dan -- Daniel Macks dmacks@netspace.org
MIME-Version: 1.0
In-Reply-To: <20141019030424.l556whly8k40ws4s [...] webmail.netspace.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20141019030424.l556whly8k40ws4s [...] webmail.netspace.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-14883-1413732276-1111.99578-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 651
Download (untitled) / with headers
text/plain 651b
On Sun Oct 19 03:04:33 2014, dmacks@netspace.org wrote: Show quoted text
> On OS X 10.8 using apple's perl-5.12.4, RPC-XML-0.78, with all CPAN > dependencies supplied via fink, self-test fails:
I've been seeing this intermittently from CPAN Testers reports, lately. It's been happening under different Perls and different O/S versions (seems to be mostly Macs, though), but happening randomly. That is, I'm not getting regular reports of it, only one or two per month. It doesn't exhibit on my development platform, but I will spin up a 5.12.X installation via perlbrew and see if I can reproduce it. Randy -- Randy J. Ray rjray@blackperl.com randy.j.ray@gmail.com
MIME-Version: 1.0
In-Reply-To: <20141019030424.l556whly8k40ws4s [...] webmail.netspace.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20141019030424.l556whly8k40ws4s [...] webmail.netspace.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-19977-1413765380-524.99578-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 493
Download (untitled) / with headers
text/plain 493b
This one beats me. I've perlbrew'd a 5.12.5 installation and tested it against both my dev version and the 0.78 distribution. All passed. I've tested my system perl (5.16.2 on MacOS 10.9, I don't have access to a 10.8 machine) against both dev and 0.78, again all passed. For completeness' sake I even tested both dev and 0.78 on a Linux box running 5.14.2, and that all passed. I don't know what else I can do at this point. Randy -- Randy J. Ray rjray@blackperl.com randy.j.ray@gmail.com
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-19977-1413765380-524.99578-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20141019030424.l556whly8k40ws4s [...] webmail.netspace.org> <rt-4.0.18-19977-1413765380-524.99578-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-28417-1447704283-1456.99578-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1746
Download (untitled) / with headers
text/plain 1.7k
On 2014-10-19 20:36:20, RJRAY wrote: Show quoted text
> This one beats me. > > I've perlbrew'd a 5.12.5 installation and tested it against both my > dev version and the 0.78 distribution. All passed. I've tested my > system perl (5.16.2 on MacOS 10.9, I don't have access to a 10.8 > machine) against both dev and 0.78, again all passed. For > completeness' sake I even tested both dev and 0.78 on a Linux box > running 5.14.2, and that all passed. > > I don't know what else I can do at this point.
I see the same problem on a FreeBSD 10.1 system. Running 60_net_server.t with ktrace shows the following lines: 72447 perl5.20.3 GIO fd 3 wrote 72 bytes "2015/11/16-20:43:36 CONNECT TCP Peer: "[::1]:10931" Local: "[::1]:9000" " 72447 perl5.20.3 RET write 72/0x48 72447 perl5.20.3 CALL write(0x2,0x80535d000,0x8b) 72447 perl5.20.3 GIO fd 2 wrote 139 bytes "Bad arg length for Socket::unpack_sockaddr_in, length is 28, should be 16 at /usr/perl5.20.3p/lib/5.20.3/amd64-freebsd/Socket.pm line 830. " An IPv6 vs. IPv4 problem maybe? My /etc/hosts has following lines: ::1 localhost localhost.my.domain 127.0.0.1 localhost localhost.my.domain Maybe the IPv6 address for localhost has precedence over the IPv4 address? So I changed: --- a/t/60_net_server.t +++ b/t/60_net_server.t @@ -69,7 +69,7 @@ start_server($srv, log_level => 4, pid_file => $pid_file, port => $port, - host => 'localhost', + host => '127.0.0.1', background => 1); sleep 1; # Allow time for server to spin up # Unless we see "ok 2", we have a problem -> the test runs fine! Maybe this might help for further research...
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-28417-1447704283-1456.99578-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20141019030424.l556whly8k40ws4s [...] webmail.netspace.org> <rt-4.0.18-19977-1413765380-524.99578-0-0 [...] rt.cpan.org> <rt-4.0.18-28417-1447704283-1456.99578-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-5502-1462732283-1428.99578-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 667
Download (untitled) / with headers
text/plain 667b
I have found the cause. The problem stems from the fact that Net::Server will use IO::Socket::IP if it is available. And with that module, this error occurs. But only when the IPv6 def of localhost appears before the IPv4 def. Perplexing. For one thing, this should have worked with IPv6 in the first place. And I seem to recall that I had a problem when I hard-coded localhost as 127.0.0.1, but I can't remember the details. I'll see what I can do with this. Maybe scan/parse /etc/hosts myself, to see if the IPv6 line is before the IPv4. The bigger question is why it fails just because of IPv6... Randy -- Randy J. Ray rjray@blackperl.com randy.j.ray@gmail.com


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.