Bug#612896: apt-listbugs: cannot connect over IPv6

2011-02-11 Thread Andrew O. Shadoura
Package: apt-listbugs
Version: 0.1.3

Hello,

I have IPv6-only system, and apt-listbugs doesn't work there:

Reading package fields... Done
Reading package status... Done
Retrieving bug reports... 0% Fail
Error retrieving bug reports from the server with the following error
message:
 W: Network is unreachable - connect(2) (http://bugs.debian.org:80)
It could be because your network is down, or because of broken proxy
servers, or the BTS server itself is down. Check network configuration
and try again Retry downloading bug information?[Y/n]? 

Here's the strace log:

open(/lib/i686/cmov/libresolv.so.2, O_RDONLY) = 3
read(3,
\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\\0\0004\0\0\0...,
512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=71432, ...}) = 0
mmap2(NULL, 79944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb5f5c000 mmap2(0xb5f6c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0xb5f6c000
mmap2(0xb5f6e000, 6216, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb5f6e000
close(3)= 0 mprotect(0xb5f6c000, 4096,
PROT_READ)   = 0 mprotect(0xb6f81000, 4096, PROT_READ)   = 0
munmap(0xb6913000, 137316)  = 0 stat64(/etc/resolv.conf,
{st_mode=S_IFREG|0644, st_size=47, ...}) = 0 open(/etc/resolv.conf,
O_RDONLY)  = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=47, ...})
= 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7371000 read(3, nameserver 2001:470:8af7:bebe::1...,
4096) = 47 read(3, , 4096)   = 0
close(3)= 0 munmap(0xb7371000,
4096)= 0 uname({sys=Linux, node=ileemo, ...}) = 0
socket(PF_INET6, 0x802 /* SOCK_??? */, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET6, sin6_port=htons(53),
inet_pton(AF_INET6, 2001:470:8af7:bebe::1, sin6_addr),
sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 gettimeofday({1297425540,
308101}, NULL) = 0 poll([{fd=3, events=POLLOUT}], 1, 0)= 1 ([{fd=3,
revents=POLLOUT}]) send(3,
j\301\1\0\0\1\0\0\0\0\0\0\4bugs\6debian\3org\0\0\1\0..., 33,
MSG_NOSIGNAL) = 33 poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3,
revents=POLLIN}]) ioctl(3, FIONREAD, [203])   = 0
recvfrom(3,
j\301\201\200\0\1\0\2\0\6\0\0\4bugs\6debian\3org\0\0\1\0..., 1024, 0,
{sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6,
2001:470:8af7:bebe::1, sin6_addr), sin6_flowinfo=0,
sin6_scope_id=0}, [28]) = 203 close(3)=
0 open(/etc/gai.conf, O_RDONLY) = 3 fstat64(3,
{st_mode=S_IFREG|0644, st_size=2940, ...}) = 0 fstat64(3,
{st_mode=S_IFREG|0644, st_size=2940, ...}) = 0 mmap2(NULL, 4096,
PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7371000
read(3, # Configuration for getaddrinfo(..., 4096) = 2940 read(3, ,
4096)   = 0 close(3)
= 0 munmap(0xb7371000, 4096)= 0 futex(0xb7562cd0,
FUTEX_WAKE_PRIVATE, 2147483647) = 0 socket(PF_INET, SOCK_DGRAM,
IPPROTO_IP) = 3 connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr(140.211.15.34)}, 16) = -1 ENETUNREACH (Network is
unreachable) connect(3, {sa_family=AF_UNSPEC,
sa_data=\0\0\0\0\0\0\0\0\0\0\0\0\0\0}, 16) = 0 connect(3,
{sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr(86.59.118.149)}, 16) = -1 ENETUNREACH (Network is
unreachable) close(3)= 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3 fcntl64(3,
F_GETFL) = 0x2 (flags O_RDWR) fcntl64(3, F_SETFL,
O_RDWR|O_NONBLOCK)  = 0 connect(3, {sa_family=AF_INET,
sin_port=htons(80), sin_addr=inet_addr(140.211.15.34)}, 16) = -1
ENETUNREACH (Network is unreachable) fcntl64(3, F_SETFL,
O_RDWR) = 0 close(3)= 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3 fcntl64(3,
F_GETFL) = 0x2 (flags O_RDWR) fcntl64(3, F_SETFL,
O_RDWR|O_NONBLOCK)  = 0 connect(3, {sa_family=AF_INET,
sin_port=htons(80), sin_addr=inet_addr(86.59.118.149)}, 16) = -1
ENETUNREACH (Network is unreachable) fcntl64(3, F_SETFL,
O_RDWR) = 0 close(3)= 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
brk(0x8be9000)  = 0x8be9000
time(NULL)  = 1297425540
gettimeofday({1297425540, 44}, NULL) = 0 gettimeofday({1297425540,
333445}, NULL) = 0 time(NULL)  = 1297425540
clock_gettime(CLOCK_MONOTONIC, {15187, 222139438}) = 0
clock_gettime(CLOCK_MONOTONIC, {15187, 14934}) = 0 select(0, [],
[], [], {0, 0})   = 0 (Timeout) rt_sigprocmask(SIG_SETMASK, [],
NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 fstat64(1,
{st_mode=S_IFCHR|0620, st_rdev=makedev(136, 8), ...}) = 0 mmap2(NULL,
4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7371000 write(1,  Fail\n, 6 Fail )  = 6 write(1,
Error retrieving bug reports fro..., 

Bug#612896: apt-listbugs: cannot connect over IPv6

2011-02-11 Thread Andrew O. Shadoura
Hello,

On Fri, 11 Feb 2011 14:09:18 +0200
Andrew O. Shadoura bugzi...@tut.by wrote:

 Package: apt-listbugs
 Version: 0.1.3

Oops, I see the log is unreadable. Re-attaching.

-- 
WBR, Andrew
open(/lib/i686/cmov/libresolv.so.2, O_RDONLY) = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\\0\0004\0\0\0..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=71432, ...}) = 0
mmap2(NULL, 79944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb5f5c000
mmap2(0xb5f6c000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0xb5f6c000
mmap2(0xb5f6e000, 6216, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb5f6e000
close(3)= 0
mprotect(0xb5f6c000, 4096, PROT_READ)   = 0
mprotect(0xb6f81000, 4096, PROT_READ)   = 0
munmap(0xb6913000, 137316)  = 0
stat64(/etc/resolv.conf, {st_mode=S_IFREG|0644, st_size=47, ...}) = 0
open(/etc/resolv.conf, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=47, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7371000
read(3, nameserver 2001:470:8af7:bebe::1..., 4096) = 47
read(3, , 4096)   = 0
close(3)= 0
munmap(0xb7371000, 4096)= 0
uname({sys=Linux, node=ileemo, ...}) = 0
socket(PF_INET6, 0x802 /* SOCK_??? */, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, 
2001:470:8af7:bebe::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
gettimeofday({1297425540, 308101}, NULL) = 0
poll([{fd=3, events=POLLOUT}], 1, 0)= 1 ([{fd=3, revents=POLLOUT}])
send(3, j\301\1\0\0\1\0\0\0\0\0\0\4bugs\6debian\3org\0\0\1\0..., 33, 
MSG_NOSIGNAL) = 33
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [203])   = 0
recvfrom(3, j\301\201\200\0\1\0\2\0\6\0\0\4bugs\6debian\3org\0\0\1\0..., 
1024, 0, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, 
2001:470:8af7:bebe::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) 
= 203
close(3)= 0
open(/etc/gai.conf, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2940, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=2940, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7371000
read(3, # Configuration for getaddrinfo(..., 4096) = 2940
read(3, , 4096)   = 0
close(3)= 0
munmap(0xb7371000, 4096)= 0
futex(0xb7562cd0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(80), 
sin_addr=inet_addr(140.211.15.34)}, 16) = -1 ENETUNREACH (Network is 
unreachable)
connect(3, {sa_family=AF_UNSPEC, sa_data=\0\0\0\0\0\0\0\0\0\0\0\0\0\0}, 16) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(80), 
sin_addr=inet_addr(86.59.118.149)}, 16) = -1 ENETUNREACH (Network is 
unreachable)
close(3)= 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_INET, sin_port=htons(80), 
sin_addr=inet_addr(140.211.15.34)}, 16) = -1 ENETUNREACH (Network is 
unreachable)
fcntl64(3, F_SETFL, O_RDWR) = 0
close(3)= 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_INET, sin_port=htons(80), 
sin_addr=inet_addr(86.59.118.149)}, 16) = -1 ENETUNREACH (Network is 
unreachable)
fcntl64(3, F_SETFL, O_RDWR) = 0
close(3)= 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
brk(0x8be9000)  = 0x8be9000
time(NULL)  = 1297425540
gettimeofday({1297425540, 44}, NULL) = 0
gettimeofday({1297425540, 333445}, NULL) = 0
time(NULL)  = 1297425540
clock_gettime(CLOCK_MONOTONIC, {15187, 222139438}) = 0
clock_gettime(CLOCK_MONOTONIC, {15187, 14934}) = 0
select(0, [], [], [], {0, 0})   = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 8), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7371000
write(1,  Fail\n, 6 Fail
)  = 6
write(1, Error retrieving bug reports fro..., 79Error retrieving bug reports 
from the server with the following error message:
) = 79
write(1,  W: Network is unreachable - con..., 68 W: Network is unreachable - 
connect(2) (http://bugs.debian.org:80)
) = 68
write(1, It could be because your network..., 154It could be because your 
network is down, or because of broken proxy 

Bug#612896: apt-listbugs: cannot connect over IPv6

2011-02-11 Thread Francesco Poli
tags 612896 + ipv6
reassign 612896 libruby1.8 1.8.7.302-2
affects 612896 + apt-listbugs
thanks



On Fri, 11 Feb 2011 14:09:18 +0200 Andrew O. Shadoura wrote:

 Package: apt-listbugs
 Version: 0.1.3
 
 Hello,

Hello Andrew,
thanks for your bug report!

 
 I have IPv6-only system,

Unfortunately, I don't have access to an IPv6-only system; hence, I am
not able to check whether I can reproduce the bug you reported...

 and apt-listbugs doesn't work there:
 
 Reading package fields... Done
 Reading package status... Done
 Retrieving bug reports... 0% Fail
 Error retrieving bug reports from the server with the following error
 message:
  W: Network is unreachable - connect(2) (http://bugs.debian.org:80)
 It could be because your network is down, or because of broken proxy
 servers, or the BTS server itself is down. Check network configuration
 and try again Retry downloading bug information?[Y/n]?

Since apt-listbugs does not handle networking directly, but relies on
libraries to do that, I think the actual bug is in the responsible
library.
I am reassigning the bug report to the (hopefully) appropriate package.

I hope the bug can be fixed soon.
Bye.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpNK7U0pWIU4.pgp
Description: PGP signature


Bug#612896: apt-listbugs: cannot connect over IPv6

2011-02-11 Thread Andrew O. Shadoura
Hello,

On Fri, 11 Feb 2011 21:32:00 +0100
Francesco Poli f...@firenze.linux.it wrote:

 Since apt-listbugs does not handle networking directly, but relies on
 libraries to do that, I think the actual bug is in the responsible
 library.
 I am reassigning the bug report to the (hopefully) appropriate
 package.

Thanks. I guessed that. I checked apt-listbugs sources and couldn't find
anything about IPv6 or IPv4, but I still decided to report it here as
I'm not familiar with Ruby nor familiar with its runtime libraries.

 I hope the bug can be fixed soon.

I hope too --- it's important to keep network connectivity after the
hour N happens :)

-- 
WBR, Andrew


signature.asc
Description: PGP signature