Nmap Development mailing list archives

Re: many scripts with output cause abort


From: Brandon Enright <bmenrigh () ucsd edu>
Date: Tue, 17 Mar 2009 00:15:57 +0000

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

On Mon, 16 Mar 2009 17:46:10 -0600
Patrick Donnelly <batrick.donnelly () gmail com> wrote:

Hello list,

I've run into a problem that causes an ABORT for all the branches I'm
doing performance testing on for NSE. The problem appears to be
unrelated to NSE except having huge numbers of scripts with output
seems to cause it. Sometime while the output table is being printed
the code will mess the heap up. I've attached example output and the
shell script that creates the scripts.

This code should reproduce the issue:

batrick:~/nmap/svn/nmap$ rm scripts/*
batrick:~/nmap/svn/nmap$ sdb_test2.sh scripts
batrick:~/nmap/svn/nmap$ ./nmap --script-updatedb

Starting Nmap 4.85BETA4 ( http://nmap.org ) at 2009-03-16 02:16 MDT
NSE script database updated successfully.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.13 seconds
batrick:~/nmap/svn/nmap$ ./nmap --script all localhost
[...]

I truncated the rest.

Hopefully someone should be able to locate the issue as I am currently
unable to investigate this.


Patrick,

I haven't seen this but I probably wasn't running enough scripts.

I've noticed that with a large --min-parallelism and a large
- --min-hostgroup NSE seems to overload Nsock and causes Nmap to corrupt
mammary.  David and I looked at it a little but never really pursued it
as a bug.

Brandon

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

iEYEARECAAYFAkm+68MACgkQqaGPzAsl94KQ+gCcC+raqERZXVezQldgaQk8gGe5
rqcAnRPTldikbJVuKQrCMcnklKtCBkuf
=k0IV
-----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: