public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jdthood at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug network/15726] getaddrinfo() returns incorrect status
Date: Fri, 12 Jul 2013 10:03:00 -0000	[thread overview]
Message-ID: <bug-15726-131-PnUuG2YP5l@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-15726-131@http.sourceware.org/bugzilla/>

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

--- Comment #9 from Thomas Hood <jdthood at gmail dot com> ---
(Drat — sorry for the duplicate comment #6. If someone has the rights, please
delete comment #6.)

In general I think we should try to follow the RFC — preferably, if reasonable,
as it has already been interpreted by other significant unixes.

The most important distinction is that between (1) not receiving an answer
(whether this be because the function is not called properly, the network is
down, there are no more file descriptors, whatever); and (2) receiving an
answer (whether it be an answer containing the requested information or an
answer containing the information that the name in question does not exist in
the available sources).

1. No answer received: AGAIN, BADFLAGS, FAIL, FAMILY, MEMORY, SERVICE,
SOCKTYPE, SYSTEM
2. Answer was received: 0

I omit ADDRFAMILY and NODATA which are not mentioned in RFC3493.

The question about NONAME is mainly the question which of these classes it
falls into. 

RFC3493 says very clearly that it must be returned at least in the case when
neither nodename nor servname were supplied.

Zack Weinberg wrote:
> I read that as specifying that EAI_NONAME is the appropriate error
> return *both* when the name does not resolve (== NXDOMAIN at the
> DNS level), *and* when "neither nodename nor servname were supplied".
>
> I think it's kind of unfortunate that EAI_NONAME is overloaded this way

Agreed, although it is true in some sense that there is no such domain name in
DNS as the null name.

> Also, as an application programmer I have no idea how I'm supposed
> to interpret EAI_FAIL.  At least with EAI_SYSTEM there is an errno
> code to give additional guidance.

FAIL means that a remote fault occurred whereas SYSTEM means that a local fault
occurred? I can imagine that for many clients this won't make any difference.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-19121-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri Jul 12 10:25:20 2013
Return-Path: <glibc-bugs-return-19121-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 23430 invoked by alias); 12 Jul 2013 10:25:20 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 22701 invoked by uid 48); 12 Jul 2013 10:25:14 -0000
From: "mattyclarkson at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/15733] New: elf/elf.h duplicate dynamic section tag
Date: Fri, 12 Jul 2013 10:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mattyclarkson at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-15733-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-07/txt/msg00062.txt.bz2
Content-length: 866

http://sourceware.org/bugzilla/show_bug.cgi?id\x15733

            Bug ID: 15733
           Summary: elf/elf.h duplicate dynamic section tag
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: mattyclarkson at gmail dot com

704: #define DT_FLAGS    30        /* Flags for the object being loaded */
705: #define DT_ENCODING    32        /* Start of encoded range */
706: #define DT_PREINIT_ARRAY 32        /* Array with addresses of preinit
fct*/

These are "Legal values for d_tag (dynamic entry type)" but the DT_ENCODING and
DT_PREINIT_ARRAY are the same (32).  Is this a bug or is this by design?

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


  parent reply	other threads:[~2013-07-12 10:03 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-10 18:04 [Bug network/15726] New: getaddrinfo() error codes kurt at roeckx dot be
2013-07-10 21:15 ` [Bug network/15726] " schwab@linux-m68k.org
2013-07-10 21:35 ` kurt at roeckx dot be
2013-07-10 21:44 ` schwab@linux-m68k.org
2013-07-10 21:45 ` kurt at roeckx dot be
2013-07-11 10:04 ` [Bug network/15726] getaddrinfo() returns incorrect status jdthood at gmail dot com
2013-07-11 13:27 ` zackw at panix dot com
2013-07-11 13:37 ` jdthood at gmail dot com
2013-07-11 16:54 ` kurt at roeckx dot be
2013-07-12 10:03 ` jdthood at gmail dot com [this message]
2013-07-14 16:08 ` bugdal at aerifal dot cx
2013-07-18  7:05 ` carlos at redhat dot com
2013-07-18 14:58 ` bugdal at aerifal dot cx
2013-07-18 17:45 ` carlos at redhat dot com
2013-07-30  7:05 ` jdthood at gmail dot com
2013-07-30  7:16 ` siddhesh at redhat dot com
2013-07-30 12:07 ` bugdal at aerifal dot cx
2013-07-31  4:08 ` carlos at redhat dot com
2013-08-09 14:35 ` kurt at roeckx dot be
2013-08-09 16:05 ` carlos at redhat dot com
2013-08-13 15:38 ` kurt at roeckx dot be
2013-08-13 19:25 ` carlos at redhat dot com
2013-08-24 18:08 ` kurt at roeckx dot be
2013-08-28  4:53 ` carlos at redhat dot com
2013-08-28  9:04 ` bugdal at aerifal dot cx
2013-08-28 21:20 ` kurt at roeckx dot be
2013-08-30  1:10 ` bugdal at aerifal dot cx
2013-08-30  7:11 ` kurt at roeckx dot be
2013-09-01  0:46 ` jdthood at gmail dot com
2013-09-01  2:11 ` jdthood at gmail dot com
2014-03-20 16:51 ` jdthood at gmail dot com
2014-03-21 11:26 ` jdthood at gmail dot com
2014-06-13 13:24 ` fweimer at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-15726-131-PnUuG2YP5l@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).