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; 19+ 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] 19+ messages in thread

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

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-9954-131@http.sourceware.org/bugzilla/>
2010-12-14 15:11 ` [Bug libc/9954] getaddrinfo assertion triggered without reason allan at archlinux dot org
2012-02-21  1:51 ` [Bug network/9954] " jsm28 at gcc dot gnu.org
2012-12-19 10:46 ` schwab@linux-m68k.org
2013-06-28  8:56 ` maze+sourceware at strahlungsfrei dot de
2013-10-25  4:29 ` cvs-commit at gcc dot gnu.org
2013-10-25  5:04 ` allan at archlinux dot org
2013-10-25  5:12 ` law at redhat dot com
2013-10-25 14:00 ` cvs-commit at gcc dot gnu.org
2014-02-16 18:23 ` jackie.rosen at hushmail dot com
2014-05-28 19:43 ` schwab at sourceware dot org
2014-06-13 11:15 ` fweimer at redhat dot com
2009-03-15 15:31 [Bug libc/9954] New: " 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).