public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
@ 2011-06-14  6:41 arekm at maven dot pl
  2011-06-14  7:16 ` [Bug libc/12885] " pluto at agmk dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: arekm at maven dot pl @ 2011-06-14  6:41 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12885

           Summary: getaddrinfo with hints.ai_family=AF_INET6 succeeds
                    even if resolving entry with no AAAA record
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: arekm@maven.pl


Created attachment 5792
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5792
test case

glibc 2.14 getaddrinfo succeeds resolving dns entry that has A only record (and
no AAAA) even if hits.ai_family was set to AF_INET6.

glibc 2.14 (invalid behaviour):

$ ./a.out
succeeded - BAD!
Got 209.132.183.81 port 0 family 2
Got 209.132.183.81 port 0 family 2
Got 209.132.183.81 port 0 family 2

glibc 2.13 (correct behaviour):
$ ./a.out
failed - OK!: Name or service not known

Test programs resolves redhat.com which at this moment has no AAAA record.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/12885] getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
  2011-06-14  6:41 [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record arekm at maven dot pl
@ 2011-06-14  7:16 ` pluto at agmk dot net
  2011-06-15 15:52 ` schwab@linux-m68k.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2011-06-14  7:16 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12885

Pawel Sikora <pluto at agmk dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pluto at agmk dot net

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/12885] getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
  2011-06-14  6:41 [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record arekm at maven dot pl
  2011-06-14  7:16 ` [Bug libc/12885] " pluto at agmk dot net
@ 2011-06-15 15:52 ` schwab@linux-m68k.org
  2011-06-21 21:06 ` drepper.fsp at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2011-06-15 15:52 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12885

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mbabinski at google dot com

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2011-06-15 15:51:34 UTC ---
This is broken by bug 12714.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/12885] getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
  2011-06-14  6:41 [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record arekm at maven dot pl
  2011-06-14  7:16 ` [Bug libc/12885] " pluto at agmk dot net
  2011-06-15 15:52 ` schwab@linux-m68k.org
@ 2011-06-21 21:06 ` drepper.fsp at gmail dot com
  2011-06-22 14:01 ` cryptooctoploid at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-06-21 21:06 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12885

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-06-21 21:05:58 UTC ---
I think the patch I applied fixes the problem.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/12885] getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
  2011-06-14  6:41 [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record arekm at maven dot pl
                   ` (2 preceding siblings ...)
  2011-06-21 21:06 ` drepper.fsp at gmail dot com
@ 2011-06-22 14:01 ` cryptooctoploid at gmail dot com
  2011-06-23 10:17 ` cryptooctoploid at gmail dot com
  2014-06-27 13:11 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: cryptooctoploid at gmail dot com @ 2011-06-22 14:01 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12885

Octoploid <cryptooctoploid at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |cryptooctoploid at gmail
                   |                            |dot com
         Resolution|FIXED                       |

--- Comment #3 from Octoploid <cryptooctoploid at gmail dot com> 2011-06-22 14:00:58 UTC ---
> I think the patch I applied fixes the problem.

It may fix the IPv6 problem, but unfortunately it breaks the IPv4 case.

% git pull
fatal: Unable to look up sourceware.org (port 9418) (No address associated with
hostname)
([Errno -5] No address associated with hostname))

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/12885] getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
  2011-06-14  6:41 [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record arekm at maven dot pl
                   ` (3 preceding siblings ...)
  2011-06-22 14:01 ` cryptooctoploid at gmail dot com
@ 2011-06-23 10:17 ` cryptooctoploid at gmail dot com
  2014-06-27 13:11 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: cryptooctoploid at gmail dot com @ 2011-06-23 10:17 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12885

Octoploid <cryptooctoploid at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Octoploid <cryptooctoploid at gmail dot com> 2011-06-23 10:16:10 UTC ---
Fixed by Andreas' commit.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/12885] getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
  2011-06-14  6:41 [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record arekm at maven dot pl
                   ` (4 preceding siblings ...)
  2011-06-23 10:17 ` cryptooctoploid at gmail dot com
@ 2014-06-27 13:11 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:11 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12885

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-27 13:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-14  6:41 [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record arekm at maven dot pl
2011-06-14  7:16 ` [Bug libc/12885] " pluto at agmk dot net
2011-06-15 15:52 ` schwab@linux-m68k.org
2011-06-21 21:06 ` drepper.fsp at gmail dot com
2011-06-22 14:01 ` cryptooctoploid at gmail dot com
2011-06-23 10:17 ` cryptooctoploid at gmail dot com
2014-06-27 13:11 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).