(gdb) bt full #0 __libc_res_nquery (statp=0xb7fb7b40, name=0xbfffd8f3 "c.ns.blackducksoftware.com.", class=1, type=62321, answer=0xbfffe1a0 "=_\201\202", anslen=2048, answerp=0xbfffe9dc, answerp2=0xbfffe9d8, nanswerp2=0xbfffe9d4, resplen2=0xbfffe9d0) at res_query.c:263 hp = 0xbfffe1a0 n = 0 use_malloc = 0 oflags = 0 bufsize = buf = 0xbfffd682 "" query1 = 0xbfffd650 "w\020\001" nquery1 = query2 = 0xbfffd67c "=_\001" nquery2 = 44 __PRETTY_FUNCTION__ = "__libc_res_nquery" hp2 = 0x0 #1 0xb7e24f8b in __libc_res_nquerydomain (statp=0xb7fb7b40, name=0x2
, domain=0xb7fb7ba0 "", class=1, type=62321, answer=0xbfffe1a0 "=_\201\202", anslen=2048, answerp=0xbfffe9dc, answerp2=0xbfffe9d8, nanswerp2=0xbfffe9d4, resplen2=0xbfffe9d0) at res_query.c:578 nbuf = "c.ns.blackducksoftware.com.\000\267'%\371\267\062(\371\267h\000\000\000<\331\377\277\000\000\000\000\240c\373\267\224\352\377\277\320c\373\267\364O\373\267\240c\373\267\224\352\377\277\\\331\377\277\\\257\354\267`\000\000\000\f\340\364\267\000\000\000\000\364O\373\267`\000\000\000\224\352\377\277\344\352\377\277\f\340\364\267`\000\000\000\224\352\377\277", '\000' , "@\000\000\002\000\000\000\376\200\000\000\000\000\000\000\002\031f\377\376\240)\207\260\331\377\277", '\000' "\344, \352\377\277\364O\373\267\000\200\377\277\001", '\000' , "\001\340\331\377\277", '\000' , "\030\000\000\002", '\000' "\377, \377\300\250\000F\000\332\377\277\000\000\000\000\000\b\377\277\001", '\000' "\377, \377\177\000\000\001", '\000' "\304, \352\377\277\f\000\000\000\000\000\000\000\024\000\000\000\003\000\002\000Hw\372M\364T\000\000\000\000\000\000"... longname = 0xbfffd8f3 "c.ns.blackducksoftware.com." n = #2 0xb7e25219 in __libc_res_nsearch (statp=0xb7fb7b40, name=0x80485bc "c.ns.blackducksoftware.com", class=1, type=62321, answer=0xbfffe1a0 "=_\201\202", anslen=2048, answerp=0xbfffe9dc, answerp2=0xbfffe9d8, nanswerp2=0xbfffe9d4, resplen2=0xbfffe9d0) at res_query.c:416 done = cp = domain = 0xb7fb7b84 hp = 0xbfffe1a0 tmp = '\000' , "&\243\376\267c\332\346\267\061\327\374\267\000\000\000\000\000\000\000\000\070\303\004\b\002\000\000\000\260\005\377\267\377\326\374\267\350\373\377\267\304\357\377\267\070\351\345\267\001\000\000\000h\340\377\277|\251\376\267", '\000' , "\001", '\000' , "\b\356\345\267\060\307\377\267\064\340\377\277\000\000\000\000\b\000\000\000\070m淄\006\376\267\310\325Č\000\000\000\000\003", '\000' , "\001\000\000\000\363\a\000\000\070\303\004\b\320\003\376\267\215\325\374\267x\200\346\267h\323\374\267\001\000\000\000\304\357\377\267H\341\377\277\200\277\004\b \341\377\277\002\254\376\267\020\341\377\277h\323\374\267\004\341\377\277\\\372\377\267\000\000\000\000\070\303\004\b\001\000\000\000\000\000\000\000\001\000\000\000Ƚ\004\b(\000\000\000\003\000\000\000\000\000\000\000\000\020\001\000<\000\001\000<\000\001\000\000\000\000\000\000\000\000\000H\341\377\277\004\341\377\277\020\341\377\277HH\001\000Ƚ\004\b\000\000\000\000\320c\373\267\364O\373\267\215\325\374\267$\277\004\b\000\341\377\277\\\257\354\267w\002\000\000@\300\004\b\300\377\001\000\304\357\377\267H\300\004"... dots = trailing_dot = -1208255612 ret = saved_herrno = 1 got_nodata = 0 got_servfail = 0 root_on_list = 1 tried_as_is = 1 #3 0xb7fcf8e0 in _nss_dns_gethostbyname4_r (name=0x80485bc "c.ns.blackducksoftware.com", pat=0xbfffeb04, buffer=0x8050d98 "\177", buflen=1024, errnop=0xbfffeb00, herrnop=0xbfffeaf4, ttlp=0x0) at nss_dns/dns-host.c:314 host_buffer = {buf = 0xbfffe1a0, ptr = 0xbfffe1a0 "=_\201\202"} ans2p = 0x0 nans2p = 0 resplen2 = 0 olderr = 0 status = n = #4 0xb7f111a3 in gaih_inet (name=, service=, req=0xbfffec4c, pai=0xbfffec14, naddrs=0xbfffec08) at ../sysdeps/posix/getaddrinfo.c:848 herrno = 1 pat = no_inet6_data = 0 nip = 0x804b388 status = no_more = tmpbuflen = 1024 no_data = inet6_status = NSS_STATUS_UNAVAIL tp = st = 0xbfffea50 at = 0xbfffea20 rc = 0 got_ipv6 = false canon = alloca_used = 134548888 port = malloc_name = false malloc_addrmem = false addrmem = 0xffffffff malloc_canonbuf = false canonbuf = 0x0 malloc_tmpbuf = false tmpbuf = result = __PRETTY_FUNCTION__ = "gaih_inet" #5 0xb7f140d5 in getaddrinfo (name=0x80485bc "c.ns.blackducksoftware.com", service=0x0, hints=0xbfffec4c, pai=0xbfffec6c) at ../sysdeps/posix/getaddrinfo.c:2393 i = last_i = nresults = p = 0x0 gaih_service = {name = 0xb7f3ffb9 "\211\302\213E\b\205\300~\006\213\a\203`<\373\203f<\353f\203>", num = -1209653976} pservice = 0x2 local_hints = {ai_flags = 1, ai_family = -1073746928, ai_socktype = -1073746888, ai_protocol = -1207960904, ai_addrlen = 3086878400, ai_addr = 0xbfffec0c, ai_canonname = 0xb7fb4ff4 "|\235\025", ai_next = 0xb7fb54e0} in6ai = 0x804b008 in6ailen = 4 seen_ipv4 = true seen_ipv6 = true naddrs = 0 __PRETTY_FUNCTION__ = "getaddrinfo" #6 0x080484d0 in main (argc=1, argv=0xbfffed34) at nsquerytest.c:17 i = 20 ai = 0x0 hints = {ai_flags = 32, ai_family = 0, ai_socktype = 1, ai_protocol = 0, ai_addrlen = 0, ai_addr = 0x0, ai_canonname = 0x0, ai_next = 0x0}