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

* [Bug libc/9954] getaddrinfo assertion triggered without reason
  2009-03-15 15:31 [Bug libc/9954] New: getaddrinfo assertion triggered without reason aurelien at aurel32 dot net
@ 2009-03-15 15:32 ` aurelien at aurel32 dot net
  2009-03-15 18:39 ` drepper at redhat dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aurelien at aurel32 dot net @ 2009-03-15 15:32 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-03-15 15:32 -------
Created an attachment (id=3822)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3822&action=view)
Patch to fix the problem.


-- 


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

* [Bug libc/9954] getaddrinfo assertion triggered without reason
  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
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: drepper at redhat dot com @ 2009-03-15 18:39 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-03-15 18:39 -------
None of the change should be needed.

None of the known interfaces should have the index -1 and hence the test should
be unnecessary.  If this is not the case there is a problem elsewhere and you're
hiding it with the change.

For the deprecated addresses the same, the problem is in the configuration and
you're hiding it.

And no, I cannot reproduce any problem with the information you provide.  You
have to be much more detailed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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

* [Bug libc/9954] getaddrinfo assertion triggered without reason
  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
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aurelien at aurel32 dot net @ 2009-03-15 20:19 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-03-15 20:19 -------
> None of the known interfaces should have the index -1 and hence the test
> should be unnecessary.  If this is not the case there is a problem elsewhere
> and you're hiding it with the change.

Entries in /etc/hosts corresponding to IP 127.X.Y.Z, while being different than 
127.0.0.1 are getting index -1, thus triggerring the problem.

-- 


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

* [Bug libc/9954] getaddrinfo assertion triggered without reason
  2009-03-15 15:31 [Bug libc/9954] New: getaddrinfo assertion triggered without reason aurelien at aurel32 dot net
                   ` (2 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aurelien at aurel32 dot net @ 2009-03-15 20:50 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-03-15 20:49 -------
Created an attachment (id=3823)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3823&action=view)
testcase


-- 


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

* [Bug libc/9954] getaddrinfo assertion triggered without reason
  2009-03-15 15:31 [Bug libc/9954] New: getaddrinfo assertion triggered without reason aurelien at aurel32 dot net
                   ` (3 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aurelien at aurel32 dot net @ 2009-03-15 20:51 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-03-15 20:50 -------
Created an attachment (id=3824)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3824&action=view)
/etc/host.conf for testcase


-- 


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

* [Bug libc/9954] getaddrinfo assertion triggered without reason
  2009-03-15 15:31 [Bug libc/9954] New: getaddrinfo assertion triggered without reason aurelien at aurel32 dot net
                   ` (4 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: aurelien at aurel32 dot net @ 2009-03-15 20:52 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-03-15 20:51 -------
Created an attachment (id=3825)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3825&action=view)
/etc/hosts for testcase


-- 


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

* [Bug libc/9954] getaddrinfo assertion triggered without reason
  2009-03-15 15:31 [Bug libc/9954] New: getaddrinfo assertion triggered without reason aurelien at aurel32 dot net
                   ` (5 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: list at phuk dot ath dot cx @ 2009-07-17 18:14 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From list at phuk dot ath dot cx  2009-07-17 18:13 -------
I'm also hitting this and it seems to be due to conflicts between /etc/hosts and
DNS. I've removed everything but localhost from /etc/hosts, and now everything
seems fine. However, this "assertion failed" message is very unclear. It's very
hard to find out what's actually causing it because there's not even the
slightest hint of what we are actually talking about. What is src, what's the
meaning of the results field, what is a1_native...?
Providing just a *little* bit of context would greatly ease the debugging of
this. Right now, the only option of getting *some rough* idea of what this
assertion actually means is reading the code, which is obiously very
time-consuming for anyone not familiar glibc internals.

-- 


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

* [Bug libc/9954] getaddrinfo assertion triggered without reason
  2009-03-15 15:31 [Bug libc/9954] New: getaddrinfo assertion triggered without reason aurelien at aurel32 dot net
                   ` (6 preceding siblings ...)
  2009-07-17 18:14 ` list at phuk dot ath dot cx
@ 2010-06-01  3:44 ` pasky at suse dot cz
  7 siblings, 0 replies; 9+ messages in thread
From: pasky at suse dot cz @ 2010-06-01  3:44 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
   Last reconfirmed|0000-00-00 00:00:00         |2010-06-01 03:44:20
               date|                            |


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