zenmap crashes in OSX 10.6

View: New views
6 Messages — Rating Filter:   Alert me  

zenmap crashes in OSX 10.6

by Jonathan Nilson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To supplement the activity from
http://seclists.org/nmap-dev/2009/q4/191....  (Crash bins attached as
well.)


valentina:~ nilsonj$ /Applications/Zenmap.app/Contents/MacOS/Zenmap
Xlib:  extension "RANDR" missing on display "/tmp/launch-ZdeUX0/:0".
/Applications/Zenmap.app/Contents/Resources/lib/python2.5/site-packages.zip/zenmapGUI/MainWindow.py:72:
GtkWarning: Default font does not have a positive size


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$ sudo
/Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py
Password:
Xlib:  extension "RANDR" missing on display "/tmp/launch-ZdeUX0/:0".
/Applications/Zenmap.app/Contents/Resources/lib/python2.5/site-packages.zip/zenmapGUI/MainWindow.py:72:
GtkWarning: Default font does not have a positive size
Segmentation fault

./jon






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

zenmap.bin_2009-11-03-215435_localhost.crash (52K) Download Attachment
zenmap.bin_2009-11-03-222959_localhost.crash (50K) Download Attachment
zenmap.bin_2009-11-03-223831_localhost.crash (50K) Download Attachment
zenmap.bin_2009-11-03-224538_localhost.crash (49K) Download Attachment
zenmap.bin_2009-11-03-224624_localhost.crash (49K) Download Attachment

Re: zenmap crashes in OSX 10.6

by David Fifield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 03, 2009 at 10:51:28PM -0500, Jonathan Nilson wrote:

> To supplement the activity from
> http://seclists.org/nmap-dev/2009/q4/191....  (Crash bins attached as
> well.)
>
>
> valentina:~ nilsonj$ /Applications/Zenmap.app/Contents/MacOS/Zenmap
> Xlib:  extension "RANDR" missing on display "/tmp/launch-ZdeUX0/:0".
> /Applications/Zenmap.app/Contents/Resources/lib/python2.5/site-packages.zip/zenmapGUI/MainWindow.py:72:
> GtkWarning: Default font does not have a positive size
>
>
> 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$ sudo
> /Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py
> Password:
> Xlib:  extension "RANDR" missing on display "/tmp/launch-ZdeUX0/:0".
> /Applications/Zenmap.app/Contents/Resources/lib/python2.5/site-packages.zip/zenmapGUI/MainWindow.py:72:
> GtkWarning: Default font does not have a positive size
> Segmentation fault

Thanks for the report. What happens if you edit the file
/Applications/Zenmap.app/Contents/Resources/etc/gtk-2.0/gtkrc, and
change the line

gtk-font-name="Lucida Grande"

to

gtk-font-name="Lucida Grande 10"

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

Re: zenmap crashes in OSX 10.6

by Jonathan Nilson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Let me know what else you would like to try.

./jon


On Fri, Nov 6, 2009 at 11:52 AM, David Fifield <david@...>wrote:

>
> Thanks for the report. What happens if you edit the file
> /Applications/Zenmap.app/Contents/Resources/etc/gtk-2.0/gtkrc, and
> change the line
>
> gtk-font-name="Lucida Grande"
>
> to
>
> gtk-font-name="Lucida Grande 10"
>
> David Fifield
>
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Re: zenmap crashes in OSX 10.6

by David Fifield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

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

Re: zenmap crashes in OSX 10.6

by David Fifield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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/

Re: zenmap crashes in OSX 10.6

by Jonathan Nilson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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/