Skip Menu |
 

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

Report information
The Basics
Id: 68282
Status: open
Priority: 0/
Queue: IO-Socket-INET6

People
Owner: Nobody in particular
Requestors: vindex [...] apartia.org
Cc:
AdminCc:

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



Subject: Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28
Download (untitled) / with headers
text/plain 416b
I use LWP::Protocol::socks to add socks support to WWW::Mechanize and when IO::Socket::INET6 is installed I get this error when trying to retrieve https web pages: 500 Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 Which makes the request fail. When uninstalling IO::Socket::INET6 all is good again. This bug is triggered without using directly the module, just having it installed.
Download (untitled) / with headers
text/plain 109b
This appears to be the same bug reported here: http://bugs.debian.org/607674 Any idea of the status here?
Download (untitled) / with headers
text/plain 466b
On Mon Nov 28 00:38:12 2011, DKG wrote: Show quoted text
> This appears to be the same bug reported here: > > http://bugs.debian.org/607674 > > Any idea of the status here?
I don't recall getting the original report, but you can speed things up by creating a reproducing testcase. I'll try to investigate all that soon. I should note that IO::Socket::IP aims to be a better alternative to IO::Socket::INET6 : http://metacpan.org/release/IO-Socket-IP . Regards, -- Shlomi Fish
Subject: Re: [rt.cpan.org #68282] Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28
Date: Mon, 28 Nov 2011 10:01:53 +0100
To: Shlomi Fish via RT <bug-IO-Socket-INET6 [...] rt.cpan.org>
From: Louis-David Mitterrand <vindex [...] apartia.org>
Download (untitled) / with headers
text/plain 963b
On Mon, Nov 28, 2011 at 03:59:54AM -0500, Shlomi Fish via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=68282 > > > On Mon Nov 28 00:38:12 2011, DKG wrote:
> > This appears to be the same bug reported here: > > > > http://bugs.debian.org/607674 > > > > Any idea of the status here?
> > I don't recall getting the original report, but you can speed things up > by creating a reproducing testcase. I'll try to investigate all that soon. > > I should note that IO::Socket::IP aims to be a better alternative to > IO::Socket::INET6 : http://metacpan.org/release/IO-Socket-IP .
Hi, Here is a test case: #!/usr/bin/perl use warnings; use strict; use LWP::UserAgent; use LWP::Protocol::socks; my $m = LWP::UserAgent->new(); ## IMPORTANT: launch "ssh -D9999 localhost" in a terminal before testing $m->proxy(['https'], 'socks://127.0.0.1:9999/'); my $r = $m->get('https://encrypted.google.com/'); print $r->status_line, "\n"; ## EOF
On Mon Nov 28 04:02:06 2011, vindex wrote: Show quoted text
> On Mon, Nov 28, 2011 at 03:59:54AM -0500, Shlomi Fish via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=68282 > > > > > On Mon Nov 28 00:38:12 2011, DKG wrote:
> > > This appears to be the same bug reported here: > > > > > > http://bugs.debian.org/607674 > > > > > > Any idea of the status here?
> > > > I don't recall getting the original report, but you can speed things up > > by creating a reproducing testcase. I'll try to investigate all that
soon. Show quoted text
> > > > I should note that IO::Socket::IP aims to be a better alternative to > > IO::Socket::INET6 : http://metacpan.org/release/IO-Socket-IP .
> > Hi, > > Here is a test case: > > #!/usr/bin/perl > use warnings; > use strict; > use LWP::UserAgent; > use LWP::Protocol::socks; > > my $m = LWP::UserAgent->new(); > ## IMPORTANT: launch "ssh -D9999 localhost" in a terminal before testing > $m->proxy(['https'], 'socks://127.0.0.1:9999/'); > my $r = $m->get('https://encrypted.google.com/'); > print $r->status_line, "\n"; > ## EOF >
Thanks! I'll take a look. Regards, -- Shlomi Fish
Download (untitled) / with headers
text/plain 1.2k
On Mon Nov 28 04:02:06 2011, vindex wrote: Show quoted text
> On Mon, Nov 28, 2011 at 03:59:54AM -0500, Shlomi Fish via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=68282 > > > > > On Mon Nov 28 00:38:12 2011, DKG wrote:
> > > This appears to be the same bug reported here: > > > > > > http://bugs.debian.org/607674 > > > > > > Any idea of the status here?
> > > > I don't recall getting the original report, but you can speed things up > > by creating a reproducing testcase. I'll try to investigate all that
soon. Show quoted text
> > > > I should note that IO::Socket::IP aims to be a better alternative to > > IO::Socket::INET6 : http://metacpan.org/release/IO-Socket-IP .
> > Hi, > > Here is a test case: > > #!/usr/bin/perl > use warnings; > use strict; > use LWP::UserAgent; > use LWP::Protocol::socks; > > my $m = LWP::UserAgent->new(); > ## IMPORTANT: launch "ssh -D9999 localhost" in a terminal before testing > $m->proxy(['https'], 'socks://127.0.0.1:9999/'); > my $r = $m->get('https://encrypted.google.com/'); > print $r->status_line, "\n"; > ## EOF >
After a long investigation, I found out that it was caused by this IO::Socket bug: https://rt.cpan.org/Ticket/Display.html?id=61577 Regards, -- Shlomi Fish
Subject: Re: [rt.cpan.org #68282] Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28
Date: Tue, 6 Mar 2012 08:58:46 +0100
To: Shlomi Fish via RT <bug-IO-Socket-INET6 [...] rt.cpan.org>
From: Louis-David Mitterrand <vindex [...] apartia.org>
Download (untitled) / with headers
text/plain 735b
On Fri, Dec 23, 2011 at 06:26:54AM -0500, Shlomi Fish via RT wrote: Show quoted text
> > > > Hi, > > > > Here is a test case: > > > > #!/usr/bin/perl > > use warnings; > > use strict; > > use LWP::UserAgent; > > use LWP::Protocol::socks; > > > > my $m = LWP::UserAgent->new(); > > ## IMPORTANT: launch "ssh -D9999 localhost" in a terminal before testing > > $m->proxy(['https'], 'socks://127.0.0.1:9999/'); > > my $r = $m->get('https://encrypted.google.com/'); > > print $r->status_line, "\n"; > > ## EOF > >
> > After a long investigation, I found out that it was caused by this > IO::Socket bug: > > https://rt.cpan.org/Ticket/Display.html?id=61577
Hi, Following you link and installing the lastest IO (1.99) doesn't fix the bug.


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.