Subject: bug#398: 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

---

From: Mark Hindley <[email-masked]>
Date: Fri, 21 Feb 2020 09:05:12 +0000

Control: tags -1 debian

Gary,

> from the gui.  When calling gufw from the bash prompt it displays the following

gufw is not a forked package. Devuan uses Debian's package directly. Also the
version you are reporting against was only uploaded into Debian yesterday, I
suggest you would be better reporting this directly in Debian's BTS.

Thanks

Mark

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Wed, 11 Jan 2023 13:32:06 +0000

This is an automatic notification regarding your bug report
which was filed against the gufw package:

#398: gufw: fails to start with segmentation fault

It has been closed by Mark Hindley <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <[email-masked]> by
replying to this email.

-- 
398: https://bugs.devuan.org/cgi/bugreport.cgi?bug=398
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: Fixed in Debian #1000169
From: Mark Hindley <[email-masked]>
To: [email-masked]
Date: Wed, 11 Jan 2023 13:31:14 +0000

Version: 20.04.1-3

Subject: gufw: fails to start with segmentation fault
From: Gary Koskenmaki <[email-masked]>
To: Devuan Bug Tracking System <[email-masked]>
Date: Thu, 20 Feb 2020 18:51:29 -0800

Package: gufw
Version: 20.04.1-1
Severity: grave

Dear Maintainer,