Nmap Development mailing list archives

Help needed with two Zenmap bugs


From: David Fifield <david () bamsoftware com>
Date: Mon, 25 Aug 2008 09:23:20 -0600

Hi,

I have two possible Zenmap bugs that I can't reproduce. If you get a
chance, please try them and see if you can reproduce them.

The first is on Mac OS X. I got a bug report that Zenmap crashes at
startup with

        GtkWarning: could not open display

However, it works fine the second time you run it. My guess is that
Zenmap is starting before X11 is fully running, and I suspect it happens
only on 10.4 because the way 10.4 and 10.5 handle X11 startup is
different.

The code that starts X11 is in install_scripts/macosx/zenmap_wrapper.py.
It is essentially

        if os.environ.has_key("DISPLAY"):
            return
        os.system("open -a X11")
        os.environ["DISPLAY"] = ":0"

If anyone can reproduce this please send the version number of your OS
X and any other information you are able to find.

The second bug is on Windows. If your user name has non-ASCII characters
in it you may see

        Traceback (most recent call last):
          File "zenmap", line 156, in <module>
          File "zenmapGUI\App.pyo", line 99, in run
          File "zenmapGUI\App.pyo", line 127, in __run_gui
          File "zenmapGUI\App.pyo", line 54, in __create_show_main_window
          File "zenmapGUI\MainWindow.pyo", line 45, in <module>
          File "zenmapGUI\SearchWindow.pyo", line 24, in <module>
          File "zenmapGUI\SearchGUI.pyo", line 44, in <module>
          File "zenmapCore\SearchResult.pyo", line 32, in <module>
          File "zenmapCore\UmitDB.pyo", line 64, in <module>
        sqlite3.OperationalError: unable to open database file

The reason is that pysqlite is looking in the wrong place for the
database file. It's using some different encoding of the user name than
what the OS uses. A reporter said that various programs had created
three home directories for him. One was his real name, and the other two
were different character set manglings of it. When he copied the .zenmap
directory into all three the crash went away.

If this crash happens to you please try r9720 of Zenmap, which may fix
it by using Unicode strings for certain file names. If it doesn't fix
it, try copying the .zenmap directory into any other "home directories"
you may have, one at a time, and write back with your user name and the
name of the directory that worked.

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: