public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/15339] New: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down
@ 2013-04-04 9:33 siddhesh at redhat dot com
2013-04-04 9:35 ` [Bug network/15339] " siddhesh at redhat dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: siddhesh at redhat dot com @ 2013-04-04 9:33 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15339
Bug #: 15339
Summary: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME
when the network is down
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: network
AssignedTo: siddhesh@redhat.com
ReportedBy: siddhesh@redhat.com
Classification: Unclassified
Due to the fix to bug 14719, getaddrinfo incorrectly returns EAI_SYSTEM instead
of EAI_NONAME when the network is down.
Steps to Reproduce:
$ cat t.c
#include <stdio.h>
#include <netdb.h>
int main(void) {
struct addrinfo *ai;
int res = getaddrinfo ("example.net", "http", 0, &ai);
if (res)
printf("%s: %m\n", gai_strerror(res));
return res && res != EAI_NONAME;
}
$ gcc -Wall -O2 t.c -o t
$ sudo unshare -n ./t
Actual Result:
System error: Connection refused
Expected Result:
Name or service not known: Connection refused
--
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 network/15339] getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down
2013-04-04 9:33 [Bug network/15339] New: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down siddhesh at redhat dot com
@ 2013-04-04 9:35 ` siddhesh at redhat dot com
2013-05-21 16:26 ` siddhesh at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: siddhesh at redhat dot com @ 2013-04-04 9:35 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15339
Siddhesh Poyarekar <siddhesh at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--
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 network/15339] getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down
2013-04-04 9:33 [Bug network/15339] New: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down siddhesh at redhat dot com
2013-04-04 9:35 ` [Bug network/15339] " siddhesh at redhat dot com
@ 2013-05-21 16:26 ` siddhesh at redhat dot com
2013-06-16 3:57 ` siddhesh at redhat dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: siddhesh at redhat dot com @ 2013-05-21 16:26 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15339
Siddhesh Poyarekar <siddhesh at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #1 from Siddhesh Poyarekar <siddhesh at redhat dot com> 2013-05-21 16:26:07 UTC ---
Fixed in master.
commit 3d04f5db20c8f0d1ba3881b5f5373586a18cf188
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Tue May 21 21:54:41 2013 +0530
Set EAI_SYSTEM only when h_errno is NETDB_INTERNAL
Fixes BZ #15339.
NSS_STATUS_UNAVAIL may mean that a necessary input resource is not
available. This could occur in a number of cases including when the
network is down, system runs out of file descriptors, etc. The
correct differentiator in such a case is the h_errno, which gives the
nature of failure. In case of failures other than a simple 'not
found', we set h_errno as NETDB_INTERNAL and let errno be the
identifier for the exact error.
--
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 network/15339] getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down
2013-04-04 9:33 [Bug network/15339] New: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down siddhesh at redhat dot com
2013-04-04 9:35 ` [Bug network/15339] " siddhesh at redhat dot com
2013-05-21 16:26 ` siddhesh at redhat dot com
@ 2013-06-16 3:57 ` siddhesh at redhat dot com
2014-02-16 19:43 ` jackie.rosen at hushmail dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: siddhesh at redhat dot com @ 2013-06-16 3:57 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15339
Siddhesh Poyarekar <siddhesh at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ludo at gnu dot org
--- Comment #2 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---
*** Bug 15635 has been marked as a duplicate of this bug. ***
--
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 network/15339] getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down
2013-04-04 9:33 [Bug network/15339] New: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down siddhesh at redhat dot com
` (2 preceding siblings ...)
2013-06-16 3:57 ` siddhesh at redhat dot com
@ 2014-02-16 19:43 ` jackie.rosen at hushmail dot com
2014-05-28 19:42 ` schwab at sourceware dot org
2014-06-13 18:30 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 19:43 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15339
Jackie Rosen <jackie.rosen at hushmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jackie.rosen at hushmail dot com
--- Comment #3 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
--
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 network/15339] getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down
2013-04-04 9:33 [Bug network/15339] New: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down siddhesh at redhat dot com
` (3 preceding siblings ...)
2014-02-16 19:43 ` jackie.rosen at hushmail dot com
@ 2014-05-28 19:42 ` schwab at sourceware dot org
2014-06-13 18:30 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:42 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15339
Andreas Schwab <schwab at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|jackie.rosen at hushmail dot com |
--
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 network/15339] getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down
2013-04-04 9:33 [Bug network/15339] New: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down siddhesh at redhat dot com
` (4 preceding siblings ...)
2014-05-28 19:42 ` schwab at sourceware dot org
@ 2014-06-13 18:30 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 18:30 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15339
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
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-13 18:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04 9:33 [Bug network/15339] New: getaddrinfo returns EAI_SYSTEM instead of EAI_NONAME when the network is down siddhesh at redhat dot com
2013-04-04 9:35 ` [Bug network/15339] " siddhesh at redhat dot com
2013-05-21 16:26 ` siddhesh at redhat dot com
2013-06-16 3:57 ` siddhesh at redhat dot com
2014-02-16 19:43 ` jackie.rosen at hushmail dot com
2014-05-28 19:42 ` schwab at sourceware dot org
2014-06-13 18:30 ` 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).