Nmap Development mailing list archives

Re: Possible script deadlock while testing in nse-lua-merge


From: Brandon Enright <bmenrigh () ucsd edu>
Date: Thu, 19 Mar 2009 07:26:37 +0000

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

On Thu, 19 Mar 2009 06:55:22 +0000 or thereabouts Brandon Enright
<bmenrigh () ucsd edu> wrote:

My goal now is to find out what script(s) are active to figure out
what script may have a race/deadlock bug.  The way I'm trying to do
that is by attaching GDB and setting a breakpoint on run_main and
script_scan and then continuing.  I hope that when the deadlocked
scripts time out (in about an hour) I'll get a nice long list of what
was running.

The list was not what I was expecting:

NSE: 'robots.txt' (thread: 0x2b2ad50) target timed out
NSE: 'http-trace' (thread: 0x36050f0) target timed out
NSE: 'robots.txt' (thread: 0x2c6cda0) target timed out
NSE: 'smtp-open-relay' (thread: 0x39184d0) target timed out
NSE: 'ssh-hostkey' (thread: 0x43e0810) target timed out
NSE: 'sslv2' (thread: 0x38064b0) target timed out
NSE: 'http-passwd' (thread: 0x4c58de0) target timed out
NSE: 'banner' (thread: 0x345e950) target timed out
NSE: 'sql-injection' (thread: 0x5616170) target timed out
NSE: 'http-trace' (thread: 0x39ebbb0) target timed out
NSE: 'html-title' (thread: 0x3db1820) target timed out
NSE: 'sslv2' (thread: 0x434e400) target timed out
NSE: 'banner' (thread: 0x3a83000) target timed out
NSE: 'smtp-commands' (thread: 0x5c9dcd0) target timed out
NSE: 'http-auth' (thread: 0xdba080) target timed out
NSE: 'http-passwd' (thread: 0x56be190) target timed out
NSE: 'robots.txt' (thread: 0x4080c40) target timed out
NSE: 'http-auth' (thread: 0x2ddaf70) target timed out
NSE: 'http-auth' (thread: 0x4ab50d0) target timed out
NSE: 'sql-injection' (thread: 0x3a8d260) target timed out
NSE: 'http-trace' (thread: 0x29eaba0) target timed out
NSE: 'http-passwd' (thread: 0x3931f70) target timed out
NSE: 'http-passwd' (thread: 0x39670c0) target timed out
NSE: 'banner' (thread: 0x34b4a60) target timed out
NSE: 'robots.txt' (thread: 0x36ac540) target timed out
NSE: 'http-passwd' (thread: 0x5fdc5e0) target timed out
NSE: 'banner' (thread: 0x46ce2e0) target timed out
NSE: 'http-trace' (thread: 0x40b7870) target timed out
NSE: 'sql-injection' (thread: 0x2a7c3c0) target timed out
NSE: 'html-title' (thread: 0x4796410) target timed out

The only deadlock I know of that would be the fault of a script is the
misuse of a mutex.  That wouldn't explain how all of these different
scripts managed to get deadlocked.  This is the first deadlock I've run
into in nse-lua-merge so the odds that I'm able to reproduce it in a
useful way are slim.

Brandon

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

iEYEARECAAYFAknB860ACgkQqaGPzAsl94KjNwCeONlfV1x9ncezUHjFoLHO6+ra
4Q4AoL+BoWkXBTOWYKnVLCJU9mSTfkZo
=jivM
-----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: