Nmap Development mailing list archives
Re: NMAP hangs on MIPS
From: David Fifield <david () bamsoftware com>
Date: Wed, 8 Sep 2010 18:39:56 -0600
On Thu, Sep 09, 2010 at 12:59:39AM +0100, Nuno Gonçalves wrote:
2010/9/5 David Fifield <david () bamsoftware com>:On Tue, Aug 31, 2010 at 09:59:15AM -0400, Nuno Gonçalves wrote:2010/8/31 Nuno Gonçalves <nunojpg () gmail com>: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.The problem is with the use of class std::nmap<port_spec, service_node> service_table. line 241: i = service_table.find(ps); takes 50% of the time. line 274: service_table[ps] = sn; takes 45% of the time. Any suggestions why is this so slow on MIPS? Do I need optimization flags?Good investigation. These should be pretty fast operations; I don't think optimization would make that much of a difference. What c++ library are you using? Is it different than libstdc++?I was using uClibc++. Changing to libstdcpp solves the problem. I filled the "bug" with uClibc++.
Okay, thanks for checking it out and filing the report. 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)