12.08.2014 21:34, Cyril Brulebois wrote: > Smells like a possible compiler optimization bug? (The relevant code > might be buggy and falling into undefined behaviour; meaning not a > compiler bug.) Should be easy to check by building at -O0.
Nope. This is getaddrinfo() function. So it is glibc, not gcc or optimization. getaddrinfo() does not work in jessie glibc when linked statically. It immediately returns "Name or service not known" (rc=-2) without trying to read /etc/hosts or send dns queries. At link time, there's a warning issued, -- warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking but even if the same library is installed it doesn't work still. This makes it.. interesting... /mjt -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org