Nmap Development mailing list archives

Re: 4.85BETA2 posted to Nmap download page - please test


From: Brandon Enright <bmenrigh () ucsd edu>
Date: Sat, 31 Jan 2009 02:59:03 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 30 Jan 2009 19:03:11 -0700
Patrick Donnelly <batrick.donnelly () gmail com> wrote:


This error was caused by datafiles.lua apparently using a legacy
vararg scheme Lua had before Lua 5.1. I'll correct the file.

I don't think the engine hanging is related though. I'm investigating
this.

Cheers,


Thanks Patrick.  Your patch seems to have taken care of the error.
Something else strange is going on now.  There is either a memory leak
or something is holding on to Lua objects and not letting the garbage
collector do it's job.

The hanging issue appears to be some other script eating up all the
memory on the box.  This machine has 8GB of memory but something
manages to use it all.  Here is a line out of 'top' showing 3.5 GB of
memory usage before I killed the process:

 8756 root      20   0 3628m 3.5g 3216 R  100   1:35.44 6 3.5g ./nmap --datadir . -A --script=all -v -p- -T5 -d 
<host>.ucsd.edu

The process manages to go from ~150MB to 250MB during the NSE run and
then a few minutes into the the script engine climbs into the many
gigs in just a few seconds.  If I hadn't killed it at 3.5 it would have
made it's way to ~7GB before the kernel stepped in and started killing
things.

I can set a 'ulimit -v' at around 500 MB and try to get a useful
coredump.  Can you think of any other way to track this down?  My money
is on brute-telnet.nse

Brandon

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkmDvn4ACgkQqaGPzAsl94I4FACcCEirTcDzcNZD04iFr8f/BaLY
5VEAn1M5x5Eq4aPhF/b+jdS0UuVqfpkJ
=oOrP
-----END PGP SIGNATURE-----

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


Current thread: