Nmap Development mailing list archives

Re: NMAP hangs on MIPS


From: David Fifield <david () bamsoftware com>
Date: Fri, 27 Aug 2010 12:49:59 -0600

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: