[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#757941: busybox-static: DNS resolver stopped working in busybox-static version 1.22.0-7

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

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...


Reply to: