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

Bug #1592380 reported by Marcin
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gui-ufw (Ubuntu)
Confirmed
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)
description: updated
Revision history for this message
glubsy (greob) wrote :

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gui-ufw (Ubuntu):
status: New → Confirmed
Revision history for this message
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

Revision history for this message
costales (costales) wrote : Re: [Bug 1592380] Re: GUFW can't start /usr/bin/gufw-pkexec: line 15: 8787 Segmentation fault (core dumped) python ${LOCATIONS[${i}]} $1

Hi,
Could you run this command?

$ whereis python3

Thanks in advance!

Revision history for this message
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

Revision history for this message
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.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.