public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/9954] New: getaddrinfo assertion triggered without reason
@ 2009-03-15 15:31 aurelien at aurel32 dot net
  2009-03-15 15:32 ` [Bug libc/9954] " aurelien at aurel32 dot net
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: aurelien at aurel32 dot net @ 2009-03-15 15:31 UTC (permalink / raw)
  To: glibc-bugs

With the following /etc/hosts:
127.0.0.1       www.my-domain.es
127.0.1.1       www.my-domain.es
192.168.0.1     www.my-domain.es

Using getaddrinfo() on www.my-domain.es, trigger the following assertion:
../sysdeps/posix/getaddrinfo.c:1473: rfc3484_sort: Assertion 
`src->results[i].native == -1 || src->results[i].native == a1_native' failed.

This is due to two different bugs:
- In rfc3484_sort() rule 7, src->results[i].native is assigned even if 
src->results[i].index is -1, meaning that no interface is associated.
- In getaddrinfo() the source IP address used with the lo interface needs a 
special case, as it can be any IP within 127.X.Y.Z.

Patch fixing both problems will follow shortly.

-- 
           Summary: getaddrinfo assertion triggered without reason
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2010-06-01  3:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-15 15:31 [Bug libc/9954] New: getaddrinfo assertion triggered without reason aurelien at aurel32 dot net
2009-03-15 15:32 ` [Bug libc/9954] " aurelien at aurel32 dot net
2009-03-15 18:39 ` drepper at redhat dot com
2009-03-15 20:19 ` aurelien at aurel32 dot net
2009-03-15 20:50 ` aurelien at aurel32 dot net
2009-03-15 20:51 ` aurelien at aurel32 dot net
2009-03-15 20:52 ` aurelien at aurel32 dot net
2009-07-17 18:14 ` list at phuk dot ath dot cx
2010-06-01  3:44 ` pasky at suse dot cz

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).