Nmap Development mailing list archives

Re: crash report


From: Alexandre C Passos <apassos () bistelecom com br>
Date: Wed, 30 Apr 2014 07:11:50 -0300

Dan/Ryan,

Thank you for this information. As I´m running the pre-compiled Windows version, I´ll wait until the next release. Thanks for your work on such a great tool!

Alexandre C Passos
+55-31-9242-2885

Em 29/04/2014 11:30, Daniel Miller escreveu:
On 04/28/2014 09:17 PM, Ryan Alban wrote:
Hi-
I've encountered the following when trying to open a scan to perform a
comparison between two scans via the GUI. The crash occus on Windows 8.1
update 1 after choosing a file from the file-picker dialogue.

Version: 6.46
Traceback (most recent call last):
   File "zenmapGUI\DiffCompare.pyo", line 201, in show_scan
TypeError: GtkTextBuffer.set_text() argument 1 must be string or read-only
buffer, not NmapParserSAX


log file output is as follows:
C:\Program Files (x86)\Nmap\py2exe\library.zip\zenmapGUI\MainWindow.py:722:
GtkWarning: Could not find the icon 'gtk-file'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
Traceback (most recent call last):
   File "zenmapGUI\DiffCompare.pyo", line 201, in show_scan
TypeError: GtkTextBuffer.set_text() argument 1 must be string or read-only
buffer, not NmapParserSAX
C:\Program Files
(x86)\Nmap\py2exe\library.zip\zenmapGUI\DiffCompare.py:245: GtkWarning:
Could not find the icon '"%1"'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
Traceback (most recent call last):
   File "zenmapGUI\DiffCompare.pyo", line 201, in show_scan
TypeError: GtkTextBuffer.set_text() argument 1 must be string or read-only
buffer, not NmapParserSAX
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Ryan and Alexandre,

Thanks for this crash report. We fixed this in the development branch, but there is currently no release with the fix. Here is the patch (quite simple) if you can edit the Zenmap Python source:

--- a/zenmap/zenmapGUI/DiffCompare.py
+++ b/zenmap/zenmapGUI/DiffCompare.py
@@ -298,7 +298,7 @@ class ScanChooser(HIGVBox):
     def get_nmap_output(self):
"""Return the currently selected scan's output as a string, or None if
         no valid scan is selected."""
-        return self.parsed_scan
+        return self.parsed_scan.get_nmap_output()

     nmap_output = property(get_nmap_output)
     parsed_scan = property(get_parsed_scan)

Dan


_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: