You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/08/17 16:18:40 UTC

[Bug 52884] "localhost" leads to start failure

https://issues.apache.org/bugzilla/show_bug.cgi?id=52884

--- Comment #3 from Joe Orton <jo...@redhat.com> ---
I can reproduce this, it is another weird AI_ADDRCONFIG getaddinfo() thing.

Using people.apache.org/~jorton/gai.c

$ ./gai localhost
getaddrinfo("localhost", NULL, {.family=AF_UNSPEC, .hints=0}) = 0:
 family=10, proto= 6 inet6: addr=::1, port=0, flowinfo=0
 family= 2, proto= 6 inet4: addr=127.0.0.1, port=0
$ ./gai -a localhost
getaddrinfo("localhost", NULL, {.family=AF_UNSPEC, .hints=0|AI_ADDRCONFIG}) =
0:
 family= 2, proto= 6 inet4: addr=127.0.0.1, port=0
 family= 2, proto= 6 inet4: addr=127.0.0.1, port=0

... where /etc/hosts has both "localhost" and "localhost.domain" mapping to
127.0.0.1.

Google says there is some... "disagreement" about whether this is
app/libc/distro problem.  Sigh.  I guess we could work around it in APR by
ignoring duplicate addresses.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org