From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.0-0.99.11 i586) #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <netinet/in.h> #include <arpa/inet.h> int main(int argc, char **argv) { char *host; int result; struct addrinfo *res = NULL; if (argc != 2) return 1; host = argv[1]; /* Following line directly copied from dighost.c:2546 from 9.1.0b2 */ result = getaddrinfo(host, NULL, NULL, &res); printf("getaddrinfo returned %d\n", result); if (result) printf("Error was: %s\n", gai_strerror(result)); else printf("IP: %s\n", inet_ntoa(((struct sockaddr_in *)(res->ai_addr)) ->sin_addr)); return 0; } Reproducible: Always Steps to Reproduce: 1.gcc -o test test.c 2.gdb test 3.run anything Actual Results: Program received signal SIGSEGV, Segmentation fault. gaih_inet (name=0xbffffb97 "anything", service=0x0, req=0x4013a380, pai=0xbffff99c) at ../sysdeps/posix/getaddrinfo.c:424 Expected Results: getaddrinfo returned -2 Error was: Name or service not known This bug affects nslookup and dig from the bind-utils package. You can also reproduce it by #nslookup anything - anything or #dig @anything
*** This bug has been marked as a duplicate of 25437 ***