Nmap Development mailing list archives

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


From: bmenrigh () ucsd edu
Date: Mon, 23 Feb 2009 23:38:52 -0800 (PST)

On Tue, Feb 03, 2009 at 12:25:41AM +0000, Brandon Enright wrote:
Okay so I *still* haven't been able to get the memory issue to come
up again.  However, I just run into (for the first time) a infinite
loop(?) issue with NSE.  Basically what happened is the Nmap process
started using 100% of the CPU, NSE stopped making an progress reporting:
...snip...

Are you still hitting this problem? A core dump might be useful. Patrick
is right that it won't help much if the problem is in a Lua thread, but
it might be in a C++ part of the engine. Does it happen with the nse-lua
branch?

David Fifield


I haven’t been able to get either the memory or CPU consumption issue to
come up again this evening.  I did get NSE to hang but it hung in a way
where no work was being done and resources weren’t being used either
(deadlock?).

Here is some example output.  Notice that between 0:36:51 and 0:44:52 not
a single script completed or produced any output.  All the previous host
groups made progress rather steadily:

NSE (2132.643s): Finished whois against x.y.11.116 (thread 0x2789ab0).
NSE (2132.643s): Finished asn-query against x.y.11.116 (thread 0x2d615b0).
NSE Timing: About 23.33% done; ETC: 07:17 (0:01:42 remaining)
NSE Timing: About 23.33% done; ETC: 07:19 (0:03:21 remaining)
Stats: 0:36:51 elapsed; 2677 hosts completed (701 up), 256 undergoing
Script Scan
Active NSE scripts: 1683
NSE Timing: About 23.33% done; ETC: 07:21 (0:04:36 remaining)
NSE Timing: About 23.33% done; ETC: 07:23 (0:06:15 remaining)
NSE Timing: About 23.33% done; ETC: 07:25 (0:07:53 remaining)
NSE Timing: About 23.33% done; ETC: 07:27 (0:09:32 remaining)
Stats: 0:38:23 elapsed; 2677 hosts completed (701 up), 256 undergoing
Script Scan
Active NSE scripts: 1683
NSE Timing: About 23.33% done; ETC: 07:27 (0:09:39 remaining)
NSE Timing: About 23.33% done; ETC: 07:29 (0:11:17 remaining)
NSE Timing: About 23.33% done; ETC: 07:32 (0:12:56 remaining)
Stats: 0:39:30 elapsed; 2677 hosts completed (701 up), 256 undergoing
Script Scan
Active NSE scripts: 1683
NSE Timing: About 23.33% done; ETC: 07:32 (0:13:15 remaining)
NSE Timing: About 23.33% done; ETC: 07:34 (0:14:54 remaining)
NSE Timing: About 23.33% done; ETC: 07:36 (0:16:33 remaining)
Stats: 0:40:48 elapsed; 2677 hosts completed (701 up), 256 undergoing
Script Scan
Active NSE scripts: 1683
NSE Timing: About 23.33% done; ETC: 07:38 (0:17:32 remaining)
NSE Timing: About 23.33% done; ETC: 07:40 (0:19:10 remaining)
NSE Timing: About 23.33% done; ETC: 07:42 (0:20:49 remaining)
Stats: 0:41:58 elapsed; 2677 hosts completed (701 up), 256 undergoing
Script Scan
Active NSE scripts: 1683
NSE Timing: About 23.33% done; ETC: 07:43 (0:21:22 remaining)
Stats: 0:42:21 elapsed; 2677 hosts completed (701 up), 256 undergoing
Script Scan
Active NSE scripts: 1683
NSE Timing: About 23.33% done; ETC: 07:44 (0:22:41 remaining)
NSE Timing: About 23.33% done; ETC: 07:46 (0:24:19 remaining)
NSE Timing: About 23.33% done; ETC: 07:49 (0:25:58 remaining)
NSE Timing: About 23.33% done; ETC: 07:51 (0:27:37 remaining)
Stats: 0:43:58 elapsed; 2677 hosts completed (701 up), 256 undergoing
Script Scan
Active NSE scripts: 1683
NSE Timing: About 23.33% done; ETC: 07:51 (0:28:00 remaining)
NSE Timing: About 23.33% done; ETC: 07:53 (0:29:38 remaining)
Stats: 0:44:52 elapsed; 2677 hosts completed (701 up), 256 undergoing
Script Scan
Active NSE scripts: 1683
NSE Timing: About 23.33% done; ETC: 07:55 (0:30:54 remaining)


Unfortunately I was not able to get a core dump of the issue.

It is easy to get NSE to crash/hang/behave strangely but it is very hard
to get it do to it consistently.  I can’t keep hacking at this tonight but
I’ll resume work trying to get decent information tomorrow.

I will also test the nse-lua branch with the current scripts in SVN.

Brandon



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


Current thread: