Debian Bug report logs - #455762
[libc6] gethostbyname fails on IPv6 addresses

version graph

Package: libc6; Maintainer for libc6 is GNU Libc Maintainers <debian-glibc@lists.debian.org>; Source for libc6 is src:glibc (PTS, buildd, popcon).

Reported by: Adam Majer <adamm@zombino.com>

Date: Tue, 11 Dec 2007 18:18:02 UTC

Severity: normal

Tags: ipv6, upstream, wontfix

Found in version glibc/2.7-4

Forwarded to http://sourceware.org/bugzilla/show_bug.cgi?id=5479

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#455762; Package libc6. (full text, mbox, link).


Acknowledgement sent to Adam Majer <adamm@zombino.com>:
New Bug report received and forwarded. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Adam Majer <adamm@zombino.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: [libc6] gethostbyname fails on IPv6 addresses
Date: Tue, 11 Dec 2007 11:55:59 -0600
Package: libc6
Version: 2.7-4
Severity: normal

The following test case fails for simple ::1 ip address. According to
documentation, IPv6 and IPv4 addresses specified should be returned
without the need to resolve them. This appears to happen when
127.0.0.1 is used.

Furthermore, gethostbyname( "ip6-localhost" ) also seems to work.

No explicit IPv6 address seems to work.



#include <netdb.h>
#include <stdio.h>
int main() 
{
   if( gethostbyname( "::1" ) == NULL )
      printf( "error: %d\n", (int)h_errno );
   else
      printf( "found\n" );
}


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (5, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-k7 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1                       1:4.2.2-4  GCC support library

libc6 recommends no packages.

-- debconf information excluded




Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#455762; Package libc6. (full text, mbox, link).


Acknowledgement sent to Lionel Elie Mamane <lionel@mamane.lu>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #10 received at 455762@bugs.debian.org (full text, mbox, reply):

From: Lionel Elie Mamane <lionel@mamane.lu>
To: 455762@bugs.debian.org, 455762-subscribe@bugs.debian.org
Subject: gethostbyname fails on IPv6 addresses, even with "options inet6"
Date: Sun, 23 Mar 2008 15:22:47 +0100
Adam Majer wrote:

> According to documentation, IPv6 and IPv4 addresses specified should
> be returned without the need to resolve them. No explicit IPv6
> address seems to work.

I reproduced this bug even with "options inet6" in /etc/resolv.conf

With the "options inet6", symbolic names that resolve to an AAAA entry
work, though. As do IPv6 entries in /etc/hosts (such as
"ip6-localhost").

On the other hand, the system seems to have some intelligence, because
(without "options inet6"), ip6-localhost returns 127.0.0.1, and that
ain't from DNS.

-- 
Lionel




Noted your statement that Bug has been forwarded to http://sourceware.org/bugzilla/show_bug.cgi?id=5479. Request was from Aurelien Jarno <aurel32@debian.org> to control@bugs.debian.org. (Mon, 07 Apr 2008 18:45:03 GMT) (full text, mbox, link).


Tags added: upstream, wontfix Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (Sat, 12 Apr 2008 21:48:17 GMT) (full text, mbox, link).


Added tag(s) ipv6. Request was from Simon Paillard <simon.paillard@resel.enst-bretagne.fr> to control@bugs.debian.org. (Sat, 16 Jan 2010 19:48:29 GMT) (full text, mbox, link).


Severity set to 'serious' from 'normal' Request was from Clint Adams <schizo@debian.org> to control@bugs.debian.org. (Tue, 23 Mar 2010 01:04:01 GMT) (full text, mbox, link).


Severity set to 'normal' from 'serious' Request was from Gerfried Fuchs <rhonda@deb.at> to control@bugs.debian.org. (Tue, 23 Mar 2010 08:31:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Mar 9 10:01:45 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.