Your message dated Wed, 06 May 2009 13:47:06 +0000
with message-id <[email protected]>
and subject line Bug#522478: fixed in libio-socket-inet6-perl 2.54-1.1
has caused the Debian Bug report #522478,
regarding libio-socket-inet6-perl: AF_UNSPEC fails for IPv6 hosts
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
522478: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522478
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libio-socket-inet6-perl
Version: 2.54-1
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

While trying to find out why my apt-cacher doesn't connect to
ftp.at.debian.org (which is available both via IPv4 and IPv6) anymore
I stumbled about a weird behaviour in IO::Socket::INET6: If a host is
reachable over IPv6 the socket creation fails if Domain is specified
as AF_UNSPEC (which is the default).

The attached script produces the following output for me:

$ perl sock.pl 
Trying to connect to www.google.com ...
        ... via unspecified ...
                Success!
        ... via IPv6 ...
                Error: IO::Socket::INET6: getaddrinfo: Name or service not known
        ... via IPv4 ...
                Success!
Trying to connect to ipv6.google.com ...
        ... via unspecified ...
                Error: IO::Socket::INET6: bind: Invalid argument
        ... via IPv6 ...
                Success!
        ... via IPv4 ...
                Error: IO::Socket::INET6: getaddrinfo: Name or service not known
Trying to connect to ftp.at.debian.org ...
        ... via unspecified ...
                Error: IO::Socket::INET6: bind: Invalid argument
        ... via IPv6 ...
                Success!
        ... via IPv4 ...
                Success!
Trying to connect to www.sixxs.net ...
        ... via unspecified ...
                Error: IO::Socket::INET6: bind: Invalid argument
        ... via IPv6 ...
                Success!
        ... via IPv4 ...
                Success!

That means:
AF_UNSPEC works for IPv4-only hosts (www.google.com) but fails for both
IPv6-only hosts (ipv6.google.com) and for hosts with both IPv4 and
IPv6 (ftp.at.debian.org and www.sixxs.net). AF_INET and AF_INET6 work
as expected.

Since apt-cacher has worked until ~1 week ago it's possible that this
problem in libio-socket-inet6-perl is triggered by something else,
but still the results are an important bug IMO.

Please tell me if there's anything else I should test or any
information I should provide.


Cheers,
gregor

- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'experimental'), 
(500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.29.200903251719
Locale: LANG=C, lc_ctype=de...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages libio-socket-inet6-perl depends on:
ii  libsocket6-perl               0.20-1     (no description available)
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknWo9wACgkQOzKYnQDzz+S5UwCgoRSl7AHo9YsmXAELuNMGGVz/
3ZoAoJ+B8q+3rXpf+y7wa6ZA4RxCrT2K
=sM35
-----END PGP SIGNATURE-----
#!/usr/bin/perl

use strict;
use warnings;

use IO::Socket::INET6;

my @servers
    = qw/www.google.com ipv6.google.com ftp.at.debian.org www.sixxs.net /;
my %protocols
    = ( AF_INET, 'IPv4', AF_INET6, 'IPv6', AF_UNSPEC, 'unspecified' );
my $sock;

foreach my $server (@servers) {
    print "Trying to connect to $server ...\n";
    foreach my $protocol ( keys %protocols ) {
        print "\t... via $protocols{$protocol} ...\n";
        $sock = IO::Socket::INET6->new(
            Domain     => $protocol,
            PeerAddr   => $server,
            PeerPort   => 80,
            Proto      => 'tcp',
            Multihomed => 1,           # no effect
            ReuseAddr  => 1,           # no effect
        );
        if ($@) {
            print "\t\tError: $...@\n";
        } else {
            print "\t\tSuccess!\n";
        }
    }
}

--- End Message ---
--- Begin Message ---
Source: libio-socket-inet6-perl
Source-Version: 2.54-1.1

We believe that the bug you reported is fixed in the latest version of
libio-socket-inet6-perl, which is due to be installed in the Debian FTP archive:

libio-socket-inet6-perl_2.54-1.1.diff.gz
  to 
pool/main/libi/libio-socket-inet6-perl/libio-socket-inet6-perl_2.54-1.1.diff.gz
libio-socket-inet6-perl_2.54-1.1.dsc
  to pool/main/libi/libio-socket-inet6-perl/libio-socket-inet6-perl_2.54-1.1.dsc
libio-socket-inet6-perl_2.54-1.1_all.deb
  to 
pool/main/libi/libio-socket-inet6-perl/libio-socket-inet6-perl_2.54-1.1_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sean Finney <[email protected]> (supplier of updated libio-socket-inet6-perl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 04 May 2009 15:09:36 +0200
Source: libio-socket-inet6-perl
Binary: libio-socket-inet6-perl
Architecture: source all
Version: 2.54-1.1
Distribution: unstable
Urgency: low
Maintainer: Masahito Omote <[email protected]>
Changed-By: Sean Finney <[email protected]>
Description: 
 libio-socket-inet6-perl - Object interface for AF_INET6 domain sockets
Closes: 522478
Changes: 
 libio-socket-inet6-perl (2.54-1.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Fix for error resolving addresses with AF_UNSPEC (closes: #522478).
Checksums-Sha1: 
 09402a6da56c5f068e6cb20b59b1e7fe6c577923 1100 
libio-socket-inet6-perl_2.54-1.1.dsc
 3caffec70ae63a58e622751eee03698eb82661e3 2460 
libio-socket-inet6-perl_2.54-1.1.diff.gz
 ff7a07a54b11f2deff47e101d81486dba0a198da 15044 
libio-socket-inet6-perl_2.54-1.1_all.deb
Checksums-Sha256: 
 fc16b23cea1945a0fe5ac086fa195088634ae1bd34afbb2baaa91e0d16c0d2cf 1100 
libio-socket-inet6-perl_2.54-1.1.dsc
 95de22ba4b25399bc5db2713a1a583c2d855207c7c3e28093c189c1c1b5b2187 2460 
libio-socket-inet6-perl_2.54-1.1.diff.gz
 1cc799d00b241e171eb65b8681c912fe054e9a06efa0ef4ac90b162777d35c91 15044 
libio-socket-inet6-perl_2.54-1.1_all.deb
Files: 
 aeaf7876c1aa45b0a061d60c7bc2bc7f 1100 perl optional 
libio-socket-inet6-perl_2.54-1.1.dsc
 b42220f9ae61850ef81f67ce7ff22e42 2460 perl optional 
libio-socket-inet6-perl_2.54-1.1.diff.gz
 b29dbc9b7e0fdea16cf476a134836e37 15044 perl optional 
libio-socket-inet6-perl_2.54-1.1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJ/uoaynjLPm522B0RAsa0AJ940qH2UNYjvIdECbQxchk+8hcQdACeKKUy
954KvUIauhN9m85th7wx5rc=
=1ouR
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to