Bug#722075: libc6: getaddrinfo() sends DNS queries to random file descriptors
Followup-For: Bug #722075
I was able to reproduce this bug with only calls to getaddrinfo, as my getaddrinfo opens a NETLINK socket.
Here is a "small" c file leading you easily to the problem : http://pastebin.com/cWZphPK7
It also mean that getaddrinfo is not threadsafe, I think it may.
-- System Information:
Debian Release: 7.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libc6 depends on:
ii libc-bin 2.13-38
ii libgcc1 1:4.7.2-5
libc6 recommends no packages.
Versions of packages libc6 suggests:
ii debconf [debconf-2.0] 1.5.49
pn glibc-doc <none>
ii locales 2.13-38
-- debconf information: