Client (snap) crashes when update is failing+connect
snap 0.21.11 On an IPv6 only network Debian 11
Hit 'Turn on' in the main window, then hit 'connect' in the systray (next to battery indicator and such). Also reproduceable if you hit connect in the systray before hitting the turn on in the main window
Crashing it this way is not possible when you have a working ipv4 network.
➜ ~ /snap/bin/riseup-vpn.launcher --start-vpn on
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qml: flavor: riseup-vpn
2022/06/09 17:04:12 -start-vpn should be 'on' or 'off'
2022/06/09 17:04:12 Client expects anon auth
2022/06/09 17:04:12 Fetching MOTD for riseup.net
2022/06/09 17:04:13 There are 1 pending messages
2022/06/09 17:04:13 firewall stop
2022/06/09 17:04:13 Fetching gateways...
2022/06/09 17:04:13 Error fetching eip v3 json:https://api.black.riseup.net/3/config/eip-service.json
2022/06/09 17:04:13 Error again fetching eip v3 json: Post https://198.252.153.107/3/config/eip-service.json: dial tcp 198.252.153.107:443: connect: network is unreachable
qml: show motd
qml: configured locale: en
qml: platform: linux
2022/06/09 17:04:22 Getting certificate...
2022/06/09 17:04:22 Fetching certificate to /tmp/leap-589022533/openvpn.pem
2022/06/09 17:04:22 Post https://api.black.riseup.net/3/cert: dial tcp 198.252.153.107:443: connect: network is unreachable
2022/06/09 17:04:22 From here, api.black.riseup.net resolves to:
2022/06/09 17:04:22 198.252.153.107
2022/06/09 17:04:22 Error fetching eip v3 json:https://api.black.riseup.net/3/config/eip-service.json
2022/06/09 17:04:22 Error again fetching eip v3 json: Post https://198.252.153.107/3/config/eip-service.json: dial tcp 198.252.153.107:443: connect: network is unreachable
qml: status off
2022/06/09 17:04:28 Error fetching eip v3 json:https://api.black.riseup.net/3/config/eip-service.json
2022/06/09 17:04:28 Error again fetching eip v3 json: Post https://198.252.153.107/3/config/eip-service.json: dial tcp 198.252.153.107:443: connect: network is unreachable
2022/06/09 17:04:30 Getting certificate...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x563d71e67840]
goroutine 30 [running]:
0xacab.org/leap/bitmask-vpn/pkg/vpn.isValidCert(0xc000134a40, 0x1f, 0x563d72386d00)
/build/riseup-vpn/parts/bitmask-vpn/build/pkg/vpn/certs.go:23 +0xb0
0xacab.org/leap/bitmask-vpn/pkg/vpn.(*Bitmask).getCert(0xc000174000, 0x563d72394d00, 0xc000174000, 0x563d72389e20, 0x563d7268baa8)
/build/riseup-vpn/parts/bitmask-vpn/build/pkg/vpn/openvpn.go:225 +0x33c
0xacab.org/leap/bitmask-vpn/pkg/vpn.(*Bitmask).StartVPN(0xc000174000, 0xc00002a786, 0x6, 0x8, 0x563d71ad47e8)
/build/riseup-vpn/parts/bitmask-vpn/build/pkg/vpn/openvpn.go:45 +0x51
0xacab.org/leap/bitmask-vpn/pkg/backend.startVPN()
/build/riseup-vpn/parts/bitmask-vpn/build/pkg/backend/actions.go:9 +0x63
created by 0xacab.org/leap/bitmask-vpn/pkg/backend.SwitchOn
/build/riseup-vpn/parts/bitmask-vpn/build/pkg/backend/api.go:51 +0x58
[1] 149101 abort /snap/bin/riseup-vpn.launcher --start-vpn on
(maybe related to #531 ?)