GUFW can't start /usr/bin/gufw-pkexec: line 15: 8787 Segmentation fault (core dumped) python ${LOCATIONS[${i}]} $1

Bug #1592380 reported by Marcin on 2016-06-14
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gui-ufw (Ubuntu)
Undecided
Unassigned

Bug Description

when i try to start gufw i have such error
/usr/bin/gufw-pkexec: line 15: 8787 Segmentation fault (core dumped) python ${LOCATIONS[${i}]} $1

python-gobject installed

I've tried to reinstall both, gufw, python-gobject, restarted ufw to default, no success

ufw itself is working, state active

Marcin (ubuntucolors) on 2016-06-14
description: updated
JCF (greob) wrote :

Same issue on Arch Linux (Antergos actually). See bug report there: https://bugs.archlinux.org/task/52599

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gui-ufw (Ubuntu):
status: New → Confirmed
J. Snow (jon.snow) wrote :

On Ubuntu 17.10 Beta 2 I get
usr/bin/gufw-pkexec: line 13: 36927 Segmentation fault python3 ${LOCATIONS[${i}]} $1

Tyler Long (tblong) wrote :

I am also getting a similar segmentation fault on 17.04:

tblong@linux:~$ sudo gufw
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
...a bunch of Gdk errors
(gufw.py:14107): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
...the seg fault
/usr/bin/gufw-pkexec: line 13: 14107 Segmentation fault (core dumped) python3 ${LOCATIONS[${i}]} $1

tblong@linux:~$ whereis python3
python3: /usr/bin/python3 /usr/bin/python3.5m /usr/bin/python3.5 /usr/lib/python3 /usr/lib/python3.6 /usr/lib/python3.5 /etc/python3 /etc/python3.5 /usr/local/lib/python3.5 /usr/include/python3.5m /usr/share/python3 /usr/share/man/man1/python3.1.gz

Death (oliverubuntu) wrote :

Type the following command in a terminal:

echo $XDG_SESSION_TYPE

If it returns Wayland, type:

xhost si:localuser:root

to allow root to start graphical apps under Wayland sessions.

Sander Jonkers (jonkers) wrote :

@oliverubuntu: Thank you, that worked for me on Ubuntu 17.10!

/usr/bin/gufw-pkexec: line 13: 15373 Segmentation fault (core dumped) python3 ${LOCATIONS[${i}]} $1

sander@sammie-1710:~$ echo $XDG_SESSION_TYPE
wayland

sander@sammie-1710:~$ xhost si:localuser:root
localuser:root being added to access control list

sander@sammie-1710:~$ gufw

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers