Skip Menu |

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

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

People
Owner: rjray [...] blackperl.com
Requestors: jimmy [...] loopia.se
Cc:
AdminCc:

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



Subject: Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 at /usr/local/lib/perl5/site_perl/5.8.9/mach/Socket6.pm line 283
Date: Wed, 04 Feb 2009 11:39:35 +0100
To: bug-RPC-XML [...] rt.cpan.org
From: Jimmy Bergman <jimmy [...] loopia.se>
Hi I got the following error (after adding some debug-code to catch the exception and confess to Socket6.pm) right after connecting to an RPC::XML::Server instance using Net::Server. DEBUG: caught exception in sockaddr_in6: Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 at /usr/local/lib/perl5/site_perl/5.8.9/mach/Socket6.pm line 283. at /usr/local/lib/perl5/site_perl/5.8.9/mach/Socket6.pm line 286 Socket6::sockaddr_in6('\x{10}\x{2}\x{fe}6\x{c2}\x{9}^\x{ad}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}') called at /usr/local/lib/perl5/site_perl/5.8.9/IO/Socket/INET6.pm line 406 IO::Socket::INET6::peeraddr('HTTP::Daemon::ClientConn=GLOB(0x8a42550)') called at /usr/local/lib/perl5/site_perl/5.8.9/RPC/XML/Server.pm (autosplit into /usr/local/lib/perl5/site_perl/5.8.9/auto/RPC/XML/Server/process_request.al) line 1396 RPC::XML::Server::process_request('RPC::XML::Server=HASH(0x8698958)') called at /usr/local/lib/perl5/site_perl/5.8.9/Net/Server.pm line 141 Net::Server::run_client_connection('RPC::XML::Server=HASH(0x8698958)') called at /usr/local/lib/perl5/site_perl/5.8.9/Net/Server.pm line 584 Net::Server::loop('RPC::XML::Server=HASH(0x8698958)') called at /usr/local/lib/perl5/site_perl/5.8.9/Net/Server.pm line 116 Net::Server::run('RPC::XML::Server=HASH(0x8698958)', 'syslog_facility', 'user', 'log_file', 'Sys::Syslog', 'port', 9000, 'host', 194.9.94.173, ...) called at /usr/local/lib/perl5/site_perl/5.8.9/Net/Server/MultiType.pm line 108 Net::Server::MultiType::run('RPC::XML::Server=HASH(0x8698958)', 'syslog_facility', 'user', 'log_file', 'Sys::Syslog', 'port', 9000, 'host', 194.9.94.173, ...) called at /usr/local/lib/perl5/site_perl/5.8.9/RPC/XML/Server.pm (autosplit into The offending line in RPC::XML::Server is: $peeraddr = $conn->peeraddr; and when running the server under perl -d the expression $conn->peeraddr and friends looked good until the row unshift @HTTP::Daemon::ClientConn::ISA, 'IO::Socket::SSL'; in the IO_SOCKET_SSL_HACK_NEEDED section after which they all threw errors like the one above. When i added $RPC::XML::Server::IO_SOCKET_SSL_HACK_NEEDED = 0; to my code before executing server_loop everything worked fine. Versions of the modules installed: RPC::XML 0.64 Net::Server 0.97 IO::Socket::SSL 1.19 IO::Socket::INET6 2.56 Socket6 0.23 Regards, Jimmy
Download signature.asc
application/pgp-signature 258b

Message body not shown because it is not plain text.

I've put a small band-aid fix (suppress the line you cited if I detect that either of Socket6 or IO::Socket::INET6 are loaded) in that should address this. I don't suppose you could demonstrate a very simple example that triggers the problem? I don't have a test to add to my unit tests to make sure it actually works... -- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Randy J. Ray Silicon Valley Scale Modelers: http://www.svsm.org rjray@blackperl.com randy.j.ray@gmail.com
-- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Randy J. Ray Silicon Valley Scale Modelers: http://www.svsm.org rjray@blackperl.com randy.j.ray@gmail.com
-- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Randy J. Ray Silicon Valley Scale Modelers: http://www.svsm.org rjray@blackperl.com randy.j.ray@gmail.com
-- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Randy J. Ray Silicon Valley Scale Modelers: http://www.svsm.org rjray@blackperl.com randy.j.ray@gmail.com