From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: getaddrinfo(3) / AI_ADDRCONFIG
Date: Tue, 10 Jul 2018 11:08:54 -0400 [thread overview]
Message-ID: <20180710150854.GU1392@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAF4BF-R_NxtxymsJbO4M9SY5ZhS_Nz0JbcAAXPyZS3SQJ+MEuw@mail.gmail.com>
On Tue, Jul 10, 2018 at 08:05:50AM -0400, Christopher Friedt wrote:
> On Mon, Jul 9, 2018, 9:00 PM Rich Felker, <dalias@libc.org> wrote:
>
> > Can you provide a minimized test case (short single C source file) to
> > reproduce this, or an strace log of the test that fails? The latter is
> > probably actually be better if the behavior is dependent on the Docker
> > network configuration. Assuming the test is attempting to lookup and
> > bind on "localhost" by name, which is what it appears to be doing
> > here:
> >
> >
> > https://github.com/apache/thrift/blob/82ae9575cdc112088771fc7b876f75e1e4d85ebb/lib/cpp/test/TServerSocketTest.cpp
> >
> > the behavior you're experiencing is not what I expect from musl;
> > rather my expectation is that you would get 127.0.0.1 as the first
> > result and ::1 as the second, and this is exactly what I see if I do:
> >
> > ip addr del ::1 dev lo
> >
> > on my laptop running Alpine, then call getaddrinfo for localhost with
> > a small test program.
> >
> > The logic to sort results does gratuitously depend on v4mapped
> > addresses working to do the IPv4 routability probing; if something
> > about the configuration suppresses their ability to work, it will
> > break. This is a known open issue I want to go back and fix. Seeing
> > the strace would show me right away if it's the source of your
> > problem, and even if not chances are very good that it would point out
> > whatever the cause is.
> >
>
> Strange - yeah, I'll write up a small program in C to demonstrate.
OK. Can you also post the results of:
strace -o logfile your_test_prog
This avoids the need for me or someone else to reproduce the full
configuration to see what's going on. strace output is almost
certainly the fastest path to a solution.
Rich
next prev parent reply other threads:[~2018-07-10 15:08 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-09 15:16 Christopher Friedt
2018-07-09 22:38 ` Rich Felker
2018-07-10 0:11 ` Christopher Friedt
2018-07-10 0:59 ` Rich Felker
2018-07-10 12:05 ` Christopher Friedt
2018-07-10 15:08 ` Rich Felker [this message]
2018-07-10 23:21 ` Christopher Friedt
2018-07-10 23:30 ` Christopher Friedt
2018-07-10 23:42 ` Christopher Friedt
2018-07-11 0:38 ` Rich Felker
2018-07-11 1:01 ` Christopher Friedt
2018-07-11 1:26 ` Rich Felker
2018-07-11 10:12 ` Christopher Friedt
2018-07-11 16:44 ` Rich Felker
2018-07-11 16:50 ` Christopher Friedt
2018-07-11 17:00 ` Rich Felker
2018-07-12 1:20 ` Christopher Friedt
2018-07-13 1:49 ` Rich Felker
2018-07-13 2:53 ` Christopher Friedt
2018-07-14 2:31 ` Rich Felker
2018-07-14 23:53 ` Christopher Friedt
2018-07-15 0:07 ` Rich Felker
2018-07-15 0:19 ` Rich Felker
2018-07-15 0:52 ` Rich Felker
2018-07-15 1:17 ` Christopher Friedt
2018-07-19 0:14 ` Christopher Friedt
2018-07-19 0:49 ` Rich Felker
2018-07-19 0:57 ` Christopher Friedt
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=20180710150854.GU1392@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).