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
I am also getting a similar segmentation fault on 17.04:
tblong@linux:~$ sudo gufw get_for_ display: assertion 'GDK_IS_DISPLAY (display)' failed gufw-pkexec: line 13: 14107 Segmentation fault (core dumped) python3 ${LOCATIONS[${i}]} $1
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_
...the seg fault
/usr/bin/
tblong@linux:~$ whereis python3 lib/python3. 5 /usr/include/ python3. 5m /usr/share/python3 /usr/share/ man/man1/ python3. 1.gz
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/