Nmap Development mailing list archives

Re: zenmap as root error


From: David Fifield <david () bamsoftware com>
Date: Tue, 22 Apr 2008 12:39:58 -0600

On Tue, Apr 01, 2008 at 10:52:02PM -0300, Guilherme Polo wrote:
For PyGtk 2.10 and newer, ImportError is actually a warning so the
code changes a bit:

import warnings
warnings.filterwarnings('error', module='gtk')
try:
    import gtk
except Warning, w:
    print w
warnings.resetwarnings()

Thanks, Guilherme, I've committed something to this effect. The
segmentation fault seems to have been in PyGTK or GTK itself, and was
somehow caused by creating a bunch of widgets without having a display
to show them on.

David Fifield

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


Current thread: