cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2892373 ] self test 241 failed - curl: (6) Could not resolve host: ip6

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 17 Nov 2009 02:38:56 +0000

Bugs item #2892373, was opened at 2009-11-05 14:33
Message generated for change (Comment added) made by grooverdan
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2892373&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: name resolving/DNS
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniel Black (grooverdan)
Assigned to: Daniel Stenberg (bagder)
Summary: self test 241 failed - curl: (6) Could not resolve host: ip6

Initial Comment:
curl-7.19.7
compiled with:

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-ldap --disable-ldaps --with-libidn --with-gssapi=/usr --without-libssh2 --enable-ipv6 --enable-http --enable-ftp --enable-gopher --enable-file --enable-dict --enable-manual --enable-telnet --enable-nonblocking --enable-largefile --enable-maintainer-mode --disable-sspi --without-krb4 --without-spnego --enable-ares --without-ssl --with-gnutls --without-nss --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt

c-ares versions 1.5.0 and 1.6.0 tested with same results.

./runtests.pl -d 241
********* System characteristics ********
* curl 7.19.7 (x86_64-pc-linux-gnu)
* libcurl/7.19.7 GnuTLS/2.8.3 zlib/1.2.3 c-ares/1.6.0 libidn/1.15
* Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
* Host: passivegrunt
* System: Linux passivegrunt 2.6.31-gentoo-r4 #1 SMP Thu Nov 5 00:21:47 EST 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
* Server SSL: ON
* libcurl SSL: ON
* debug build: OFF
* track memory: OFF
* valgrind: ON
* HTTP IPv6 ON
* FTP IPv6 ON
* HTTP port: 8990
* FTP port: 8992
* FTP port 2: 8995
* FTPS port: 8993
* HTTPS port: 8991
* HTTP IPv6 port: 8994
* FTP IPv6 port: 8996
* TFTP port: 8997
* SCP/SFTP port: 8999
* SOCKS port: 9000
* SSL library: GnuTLS
* Libtool lib: OFF
*****************************************
test 241...[HTTP-IPv6 GET (using ip6-localhost)]

 data FAILED:
--- log/check-expected 2009-11-05 14:26:01.000000000 +1100
+++ log/check-generated 2009-11-05 14:26:01.000000000 +1100
@@ -1,6 +0,0 @@
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Content-Length: 6
-
-hello

 - abort tests
TESTDONE: 0 tests out of 1 reported OK: 0%
TESTFAIL: These test cases failed: 241
TESTDONE: 1 tests were considered during 4 seconds.

$ more log/stderr241
16:05:25.796252 * Could not resolve host: ip6-localhost (Misformatted domain name)
16:05:25.853206 * Couldn't resolve host 'ip6-localhost'
16:05:25.861552 * Closing connection #0

curl: (6) Could not resolve host: ip6-localhost (Misformatted domain name)

The pretest worked ok:
$ ./server/resolve --ipv6 ip6-localhost && echo true
true

ip6-localhost is in /etc/hosts and not DNS.

removing name resolution resolution worked as followed resulted in a successful test.
--- data/test241 2008-11-20 08:12:35.000000000 +1100
+++ data/test24111 2009-11-05 14:22:07.000000000 +1100
@@ -33,7 +33,7 @@
 HTTP-IPv6 GET (using ip6-localhost)
  </name>
  <command>
--g "http://ip6-localhost:%HTTP6PORT/241"
+-g "http://::1:%HTTP6PORT/241"
 </command>
 <precheck>
 ./server/resolve --ipv6 ip6-localhost
@@ -48,7 +48,7 @@
 </strip>
 <protocol>
 GET /241 HTTP/1.1
-Host: ip6-localhost:%HTTP6PORT
+Host: ::1:%HTTP6PORT
 Accept: */*

 </protocol>

----------------------------------------------------------------------

>Comment By: Daniel Black (grooverdan)
Date: 2009-11-17 13:38

Message:
from /etc/hosts if this helps:
# IPv4 and IPv6 localhost aliases
127.0.0.1 localhost localhost.localdomain qt-test-server
qt-test-server.qt-test-net
::1 ip6-localhost

I'm happy to try curl/ares patches for further diagnosis.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2009-11-16 21:37

Message:
No, it's not supposed to be that bug as parsing ipv6 addresses from
/etc/hosts is supposed to work in c-ares.

It is however a c-ares bug and not strictly a libcurl one... I haven't yet
been able to research it though so I don't know any further details.

----------------------------------------------------------------------

Comment By: Daniel Black (grooverdan)
Date: 2009-11-05 14:40

Message:
maybe this is the c-ares/ipv6 warning that still exists in ./configure -
looking at the ChangeLog I was assuming most issues were resolved.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2892373&group_id=976
Received on 2009-11-17

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET