Subject: gufw: fails to start with segmentation fault

From: Gary Koskenmaki <[email-masked]>
Date: Thu, 20 Feb 2020 18:51:29 -0800

Package: gufw
Version: 20.04.1-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

Upon installation of gufw, ufw, and iptables packages when attempting to
configure iptables from gufw, gufw fails silently when attempting to start gufw
from the gui.  When calling gufw from the bash prompt it displays the following
errors.

root@lappy:/var/log# gufw
/usr/bin/gufw: line 2: [: =: unary operator expected
ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file
or directory
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.366: _gtk_replace_virtual_modifiers:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
:assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.366: _gtk_replace_virtual_modifiers:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.366: _gtk_replace_virtual_modifiers:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.366: _gtk_replace_virtual_modifiers:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.366: _gtk_replace_virtual_modifiers:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.366: _gtk_replace_virtual_modifiers:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.366: _gtk_replace_virtual_modifiers:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_modifier_mask:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gdk-CRITICAL **: 18:29:13.366: gdk_keymap_get_for_display:
assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.366: _gtk_replace_virtual_modifiers:
assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.367:
_gtk_style_provider_private_get_settings: assertion
'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.367:
_gtk_style_provider_private_get_settings: assertion
'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(gufw.py:1877): Gtk-CRITICAL **: 18:29:13.367:
_gtk_style_provider_private_get_settings: assertion
'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

/usr/bin/gufw-pkexec: line 10:  1877 Segmentation fault      python3
${LOCATIONS[${i}]} $1