Hallo, * Helge Kreutzmann [Sun, Jun 05 2016, 04:37:59PM]: > > > > I have seen a similar report from Ubuntu recently... probably this needs > > > > to be reassigned to glibc ASAP. > > > > > > That is probably beyond my knowledge[1], could you reassign? I'm willing > > > to test and provide information, no problem on that. > > > > > > Greetings > > > > > > Helge > > > > > > [1] Not the commands to reassign, but finding the right package and > > > giving the right information for the bug to be proccessed. > > > > Not sure yet - as said, it smells like a problem of getaddrinfo which > > would be libc6. But first, can you confirm there is no bindaddress > > directive anywhere in other conf files? What does: > > > > $ /usr/lib/apt-cacher-ng/acngtool cfgdump | grep --color bind > > > > print? > > root@samd:/etc# /usr/lib/apt-cacher-ng/acngtool cfgdump | grep --color bind > root@samd:/etc# > > Also unchanged if I reboot.
Sure, this will be unchanged, I just wanted to be sure that it isn't trying to resolve an interface name. Things start getting ugly now. I prepared a minimal test case, could you run it? See attachment, just "g++ addrinfo.cc" to compile, ./a.out to execute. Best Regards, Eduard.
#include <netdb.h>
#include <errno.h>
#include <stdio.h>
int main()
{
// LOGSTART2s("Setup::ConAddr", 0);
addrinfo hints = addrinfo();
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE;
hints.ai_family = 0;
struct addrinfo *res, *p;
if(0!=getaddrinfo(0, "9999", &hints, &res))
{
perror("Error resolving address for binding");
return 1;
}
for(p=res; p; p=p->ai_next)
if(p->ai_family == AF_INET6 || p->ai_family == AF_INET)
printf("Found socket, type: %d\n", p->ai_family);
}
signature.asc
Description: PGP signature

