Nmap Development mailing list archives

Re: Bug in Parallel DNS resolution in Nmap 4.50?


From: "Eddie Bell" <ejlbell () gmail com>
Date: Mon, 14 Jan 2008 15:17:35 +0000

Oh dear, someone (me) coded the age and remove caching algorithm so
that in certain circumstances the integer cache counter would overflow
and send nmap into an infinite loop.

Could one of you try out this patch (or svn) and see if it fixes the
problem. I ran the same command as dave and it worked with the
changes.

cheers
 - eddie

On 14/01/2008, kunwon1 <dave.j.moore () gmail com> wrote:
Forgot the backtrace!

(gdb) bt
#0  0x080a54a5 in addto_etchosts (ip=1742928766, hname=0xbfec9278
"softbank126251226103.bbtec.net")
    at /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:188
#1  0x080a6972 in process_result (ia=1742928766, result=0xbfec9278
"softbank126251226103.bbtec.net", action=0, id=44478) at
nmap_dns.cc:546
#2  0x080a6de3 in read_evt_handler (nsp=0x9ffc040, evt=0x9ffd930,
nothing=0x0) at nmap_dns.cc:766
#3  0x080c31c6 in msevent_dispatch_and_delete (nsp=0x9ffc040,
nse=0x9ffd930, notify=1) at nsock_event.c:297
#4  0x080c1539 in nsock_loop (nsp=0x9ffc040, msec_timeout=500) at
nsock_core.c:907
#5  0x080a603e in nmap_mass_rdns_core (targets=0x8166760,
num_targets=4096) at nmap_dns.cc:1234
#6  0x080a66c5 in nmap_mass_rdns (targets=0x8166760, num_targets=4096)
at nmap_dns.cc:1295
#7  0x08065ca6 in nexthost (hs=0x8166300, exclude_group=0x0,
ports=0x81460b0, pingtype=1) at targets.cc:612
#8  0x080611d9 in nmap_main (argc=5, argv=0xbfecf8c4) at nmap.cc:1563
#9  0x0805c96e in main (argc=5, argv=0xbfecf8c4) at main.cc:227


--
==========
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects. -Heinlein

This message copyright (c) 2004-2007 David J Moore

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Attachment: dnscache.patch.gz
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: