Nmap Development mailing list archives

Segfault in latest SVN


From: Ron <ron () skullsecurity net>
Date: Wed, 18 Nov 2009 19:21:10 -0600

I'm not sure when this was introduced, and I'm currently on the clock
and can't troubleshoot, but here's the output:

ron@carrot:~/tools/nmap$ gdb ./nmap
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...
(gdb) run  -PN -p4567 -sV --script=http-* x.x.x.x
Starting program: /home/ron/tools/nmap/nmap -PN -p4567 -sV
--script=http-* x.x.x.x

Starting Nmap 5.05BETA1 ( http://nmap.org ) at 2009-11-04 14:13 EST

Program received signal SIGSEGV, Segmentation fault.
nsock_connect_tcp (nsp=0x83b8b38, ms_iod=0x0, handler=0x80b5cf0
<l_nsock_connect_handler(void*, void*, void*)>, timeout_msecs=10000,
userdata=0x8729308, saddr=0x871a6f8, sslen=16, port=4567)
    at nsock_connect.c:154
154       assert(nsi->state == NSIOD_STATE_INITIAL || nsi->state ==
NSIOD_STATE_UNKNOWN);
Current language:  auto; currently c
(gdb) backtrace
#0  nsock_connect_tcp (nsp=0x83b8b38, ms_iod=0x0, handler=0x80b5cf0
<l_nsock_connect_handler(void*, void*, void*)>, timeout_msecs=10000,
userdata=0x8729308, saddr=0x871a6f8, sslen=16, port=4567)
    at nsock_connect.c:154
#1  0x080b6dfa in l_nsock_connect (L=0x8712338) at nse_nsock.cc:688
#2  0x080e6b7c in luaD_precall (L=0x8712338, func=0x8714900,
nresults=-1) at ldo.c:319
#3  0x080ef3fc in luaV_execute (L=0x8712338, nexeccalls=3) at lvm.c:608
#4  0x080e6726 in luaD_rawrunprotected (L=0x8712338, f=0x80e6f30
<resume>, ud=0x87148c4) at ldo.c:116
#5  0x080e68ca in lua_resume (L=0x8712338, nargs=141666008) at ldo.c:427
#6  0x080f512d in auxresume (L=0x83aaef8, co=0x8712338, narg=2) at
lbaselib.c:528
#7  0x080f53a1 in luaB_coresume (L=0x83aaef8) at lbaselib.c:547
#8  0x080e6b7c in luaD_precall (L=0x83aaef8, func=0x83dfbc8, nresults=2)
at ldo.c:319
#9  0x080ef6e8 in luaV_execute (L=0x83aaef8, nexeccalls=2) at lvm.c:587
#10 0x080e705b in luaD_call (L=0x83aaef8, func=0x83dfa84, nResults=0) at
ldo.c:377
#11 0x080e41e9 in f_call (L=0x83aaef8, ud=0xbfed1f54) at lapi.c:800
#12 0x080e6726 in luaD_rawrunprotected (L=0x83aaef8, f=0x80e41d0
<f_call>, ud=0xbfed1f54) at ldo.c:116
#13 0x080e677f in luaD_pcall (L=0x83aaef8, func=0x80e41d0 <f_call>,
u=0xbfed1f54, old_top=36, ef=24) at ldo.c:463
#14 0x080e400a in lua_pcall (L=0x83aaef8, nargs=1, nresults=0,
errfunc=1) at lapi.c:821
#15 0x080b3560 in run_main (L=0x83aaef8) at nse_main.cc:466
#16 0x080e6b7c in luaD_precall (L=0x83aaef8, func=0x83dfa6c, nresults=0)
at ldo.c:319
#17 0x080e7015 in luaD_call (L=0x83aaef8, func=0x83dfa6c, nResults=0) at
ldo.c:376
#18 0x080e41b4 in f_Ccall (L=0x83aaef8, ud=0xbfed2180) at lapi.c:846
#19 0x080e6726 in luaD_rawrunprotected (L=0x83aaef8, f=0x80e4150
<f_Ccall>, ud=0xbfed2180) at ldo.c:116
#20 0x080e677f in luaD_pcall (L=0x83aaef8, func=0x80e4150 <f_Ccall>,
u=0xbfed2180, old_top=12, ef=0) at ldo.c:463
#21 0x080e3fbd in lua_cpcall (L=0x83aaef8, func=0x80b33c0 <run_main>,
ud=0xbfed4234) at lapi.c:856
#22 0x080b335c in script_scan (targets=@0xbfed4234) at nse_main.cc:605
#23 0x080634bc in nmap_main (argc=6, argv=0xbfed73d4) at nmap.cc:1890
#24 0x0805eb0e in main (argc=6, argv=0xbfed73d4) at main.cc:205

-- 
Ron Bowes
http://www.skullsecurity.org/
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: