Nmap Development mailing list archives
Re: NMAP hangs on MIPS
From: Nuno Gonçalves <nunojpg () gmail com>
Date: Tue, 31 Aug 2010 06:04:11 +0100
GDB didn't work for several reasons. I narrowed to static int nmap_services_init() at services.cc. The while cycle that is reading /usr/share/nmap/nmap-services takes something like 10000 more than on my PC. I'm trying to figure where exactly, but I can't add clock_gettime() calls to profile it correctly. Supposedly I need to add the linker flag "-lrt", but couldn't feed that to configure on the env variables. What is the correct way to do that? Thanks, Nuno 2010/8/27 David Fifield <david () bamsoftware com>:
On Fri, Aug 27, 2010 at 07:15:59PM +0100, Nuno Gonçalves wrote:root@OpenWrt:/# nmap -ddddd 127.0.0.1 Starting Nmap 5.35DC18 ( http://nmap.org ) at 1970-01-01 00:04 UTC Fetchfile found /usr/share/nmap/nmap-services After this NMAP hangs for 10 minutes before completing the scan. I'm testing the current SVN release. How can I check exactaly where is it failing?Try running in gdb. # gdb -q ./nmap Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r -ddddd 127.0.0.1 Starting program: /home/david/nmap/nmap -ddddd 127.0.0.1 Starting Nmap 5.35DC18 ( http://nmap.org ) at 2010-08-27 12:47 MDT Fetchfile found ./nmap-services <CTRL-C> (gdb) bt #0 ultra_scan (Targets=@0xbfe14434, ports=0xbfe14368, scantype=SYN_SCAN, to=0x0) at scan_engine.cc:5123 #1 0x0806232e in nmap_main (argc=3, argv=0xbfe14d84) at nmap.cc:1751 #2 0x0805d611 in main (argc=3, argv=0xbfe14d84) at main.cc:191 The output of "bt" will show you where the program is stopped. If gdb doesn't work for you, try adding printf statements in nmap_main to see how far the program is getting. David Fifield
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- NMAP hangs on MIPS Nuno Gonçalves (Aug 27)
- Re: NMAP hangs on MIPS David Fifield (Aug 27)
- Re: NMAP hangs on MIPS Nuno Gonçalves (Aug 30)
- Re: NMAP hangs on MIPS Nuno Gonçalves (Aug 31)
- Re: NMAP hangs on MIPS David Fifield (Sep 04)
- Re: NMAP hangs on MIPS Nuno Gonçalves (Sep 08)
- Re: NMAP hangs on MIPS David Fifield (Sep 08)
- Re: NMAP hangs on MIPS Nuno Gonçalves (Aug 30)
- Re: NMAP hangs on MIPS David Fifield (Aug 27)