Nmap Development mailing list archives
Re: zenmap crashes in OSX 10.6
From: Jonathan Nilson <nilsonj () gmail com>
Date: Mon, 9 Nov 2009 16:52:32 -0500
Good to know. Here's the result: valentina:~ nilsonj$ rm -r ~/.zenmap-etc ~/.fontconfig override rw-r--r-- root/staff for /Users/nilsonj/.zenmap-etc/gtk-2.0/gdk-pixbuf.loaders? y rm: /Users/nilsonj/.zenmap-etc/gtk-2.0/gdk-pixbuf.loaders: Permission denied override rw-r--r-- root/staff for /Users/nilsonj/.zenmap-etc/gtk-2.0/gtk.immodules? y rm: /Users/nilsonj/.zenmap-etc/gtk-2.0/gtk.immodules: Permission denied override rwxr-xr-x root/staff for /Users/nilsonj/.zenmap-etc/gtk-2.0? y rm: /Users/nilsonj/.zenmap-etc/gtk-2.0: Permission denied override rw-r--r-- root/staff for /Users/nilsonj/.zenmap-etc/pango/pango.modules? y rm: /Users/nilsonj/.zenmap-etc/pango/pango.modules: Permission denied override rw-r--r-- root/staff for /Users/nilsonj/.zenmap-etc/pango/pangorc? y rm: /Users/nilsonj/.zenmap-etc/pango/pangorc: Permission denied override rwxr-xr-x root/staff for /Users/nilsonj/.zenmap-etc/pango? y rm: /Users/nilsonj/.zenmap-etc/pango: Permission denied override rwxr-xr-x root/staff for /Users/nilsonj/.zenmap-etc? y rm: /Users/nilsonj/.zenmap-etc: Directory not empty valentina:~ nilsonj$ sudo rm -r ~/.zenmap-etc ~/.fontconfig Password: rm: /Users/nilsonj/.fontconfig: No such file or directory Run as root .... valentina:~ nilsonj$ sudo /Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py Xlib: extension "RANDR" missing on display "/tmp/launch-ZdeUX0/:0". (Waits about 60 seconds for GTK+ to load) ... SUCCESS! :) Subsequently run as user .... valentina:~ nilsonj$ /Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py Traceback (most recent call last): File "/Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py", line 266, in <module> substitute_key_file(in_file_name, out_file_name, REPLACEMENTS) File "/Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py", line 60, in substitute_key_file out_file = open(out_file_name, "w") IOError: [Errno 13] Permission denied: '/Users/nilsonj/.zenmap-etc/pango/pangorc' valentina:~ nilsonj$ ls -la ~ drwxr-xr-x 8 root staff 272 Nov 9 16:42 .zenmap drwxr-xr-x 4 root staff 136 Nov 9 16:40 .zenmap-etc Should these folders be hosed and permissioned as user? ie, does first run need to occur as a regular user to ensure permissions are correct? valentina:~ nilsonj$ sudo rm -r ~/.zenmap-etc ~/.fontconfig rm: /Users/nilsonj/.fontconfig: No such file or directory valentina:~ nilsonj$ /Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py Xlib: extension "RANDR" missing on display "/tmp/launch-ZdeUX0/:0". /Applications/Zenmap.app/Contents/Resources/lib/python2.5/site-packages.zip/zenmapGUI/App.py:158: GtkWarning: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed ... which loads a GUI just fine and does not crash with a pango error. (However it does complain about root permissions being absent from the current session.) ... now running as root again .... valentina:~ nilsonj$ sudo /Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py Xlib: extension "RANDR" missing on display "/tmp/launch-ZdeUX0/:0". Success and less a GTK assertion error ... valentina:~ nilsonj$ ls -la ~ drwxr-xr-x 8 root staff 272 Nov 9 16:42 .zenmap drwxr-xr-x 4 nilsonj staff 136 Nov 9 16:48 .zenmap-etc ... still some self-awareness problems creating resource files, IMHO. How should these be permissioned idealistically? ./jon On Mon, Nov 9, 2009 at 4:11 PM, David Fifield <david () bamsoftware com> wrote:
On Mon, Nov 09, 2009 at 01:33:45PM -0700, David Fifield wrote:On Fri, Nov 06, 2009 at 02:29:28PM -0500, Jonathan Nilson wrote:Still crashes ... valentina:~ nilsonj$ sudo /Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py Xlib: extension "RANDR" missing on display "/tmp/launch-ZdeUX0/:0". Segmentation fault NB Running the .bin will produce a GUI, but the characters are all off-codepage so they are not rendered. Could be a codepage definition problem?No, you get the boxes when Pango can't find its configuration files. Because the Zenmap.app bundle can be run from anywhere, but GTK+ and Pango require static locations in their configuration files, we write a set of files to ~/.zenmap-etc on startup. Running the .bin directly bypasses the creation of those files and the setting of environment variables that cause them to be used, so Pango rendering doesn't work. Try removing the .zenmap-etc directory (rm -r ~/.zenmap-etc) and let us know if that works.Also delete ~/.fontconfig. I found this Wireshark bug that is relevant: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3969 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:
- zenmap crashes in OSX 10.6 Jonathan Nilson (Nov 05)
- Re: zenmap crashes in OSX 10.6 David Fifield (Nov 06)
- Re: zenmap crashes in OSX 10.6 Jonathan Nilson (Nov 08)
- Re: zenmap crashes in OSX 10.6 David Fifield (Nov 09)
- Re: zenmap crashes in OSX 10.6 David Fifield (Nov 09)
- Re: zenmap crashes in OSX 10.6 Jonathan Nilson (Nov 09)
- Re: zenmap crashes in OSX 10.6 Jonathan Nilson (Nov 08)
- Re: zenmap crashes in OSX 10.6 David Fifield (Nov 06)