Rob Browning <r...@defaultvalue.org> skribis: > $ strace -f -p ./foo > ... > 27725 open("/lib/libnss_mdns4.so.2", O_RDONLY|O_CLOEXEC) = 3 > 27725 read(3, > "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\v\0\0\0\0\0\0"..., 832) = > 832 > 27725 fstat(3, {st_mode=S_IFREG|0644, st_size=10880, ...}) = 0 > 27725 mmap(NULL, 2106096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, > 3, 0) = 0x7f3717b7f000 > 27725 mprotect(0x7f3717b81000, 2097152, PROT_NONE) = 0 > 27725 mmap(0x7f3717d81000, 4096, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f3717d81000 > 27725 close(3) = 0 > 27725 munmap(0x7f3718b48000, 203786) = 0 > 27725 open("/etc/mdns.allow", O_RDONLY) = -1 ENOENT (No such file or > directory) > 27725 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 > 27725 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x7f3718b79000 > 27725 write(1, " err: -11\n", 11) = 11 > 27725 write(1, "errno: 2\n", 9) = 9 > 27725 exit_group(0) = ?
Here requests take place in the program, rather than going through nscd. I just tried (with glibc 2.17) and indeed, I get EAI_SYSTEM when nscd is *not* running, and EAI_NONAME when nscd is running. I believe the former is a bug, and I reported it at <http://sourceware.org/bugzilla/show_bug.cgi?id=15635>. Let’s see... Thanks! Ludo’.