Nmap Development mailing list archives

Re: More nsock socket_count_write_dec assert() failures


From: Brandon Enright <bmenrigh () ucsd edu>
Date: Sat, 27 Feb 2010 02:40:02 +0000

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

[...] 
It would help if you recompile with debugging and without
optimization. It looks like calls are getting inlined and it's hard
to tell where under nsock_loop the function is being called.

Can you tell if this particular host is being connected to with SSL?

David Fifield

Okay here is a full backtrace without optimization or stripping:

(gdb) bt
#0  0x00007fd90545a205 in raise () from /lib/libc.so.6
#1  0x00007fd90545b723 in abort () from /lib/libc.so.6
#2  0x00007fd905453229 in __assert_fail () from /lib/libc.so.6
#3  0x00000000005b543e in socket_count_write_dec (iod=<value optimized out>, 
    ms=<value optimized out>) at nsock_core.c:199
#4  0x00000000005b5b4e in handle_write_result (ms=0x196b150, nse=0x248eb80, 
    status=<value optimized out>) at nsock_core.c:536
#5  0x00000000005b727c in nsock_loop (nsp=0x196b150, msec_timeout=50)
    at nsock_core.c:937
#6  0x0000000000593c64 in l_nsock_loop (L=0x1990050) at nse_nsock.cc:551
#7  0x00007fd90613312b in luaD_precall () from /usr/lib/liblua.so.5
#8  0x00007fd906133528 in luaD_call () from /usr/lib/liblua.so.5
#9  0x00007fd90612e8a6 in lua_call () from /usr/lib/liblua.so.5
#10 0x0000000000589a32 in nsock_loop (L=0x1990050) at nse_main.cc:168
#11 0x00007fd90613312b in luaD_precall () from /usr/lib/liblua.so.5
#12 0x00007fd90613de31 in luaV_execute () from /usr/lib/liblua.so.5
#13 0x00007fd906133585 in luaD_call () from /usr/lib/liblua.so.5
#14 0x00007fd906132d27 in luaD_rawrunprotected () from /usr/lib/liblua.so.5
#15 0x00007fd906132da5 in luaD_pcall () from /usr/lib/liblua.so.5
#16 0x00007fd90612e6b4 in lua_pcall () from /usr/lib/liblua.so.5
#17 0x000000000058a4ee in run_main (L=0x1990050) at nse_main.cc:468
#18 0x00007fd90613312b in luaD_precall () from /usr/lib/liblua.so.5
#19 0x00007fd906133528 in luaD_call () from /usr/lib/liblua.so.5
#20 0x00007fd906132d27 in luaD_rawrunprotected () from /usr/lib/liblua.so.5
#21 0x00007fd906132da5 in luaD_pcall () from /usr/lib/liblua.so.5
#22 0x00007fd90612e657 in lua_cpcall () from /usr/lib/liblua.so.5
#23 0x0000000000589423 in script_scan (targets=@0x7fff0efa3f90)
    at nse_main.cc:607
#24 0x000000000046de14 in nmap_main (argc=37, argv=0x7fff0efa7348)
    at nmap.cc:1908
#25 0x0000000000457ed6 in main (argc=37, argv=0x7fff0efa7348) at main.cc:205


The last host to trigger this error was crashing with http-enum.nse
quickly every time I scanned it.  This current host is being really
finicky about crashing and I haven't narrowed it down very well yet.

Brandon

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

iEUEARECAAYFAkuIhggACgkQqaGPzAsl94LmVACWKAvx8+nSjKw13qveOBGaHszH
JACeLsEJyGMth3TlTzC2Cc+k9jnN7rg=
=VzUI
-----END PGP SIGNATURE-----
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: