mozilla-mobile / mozilla-vpn-client

A fast, secure and easy to use VPN. Built by the makers of Firefox.
https://vpn.mozilla.org
Other
446 stars 104 forks source link

Segmentation fault when starting on Arch Linux #7327

Open stuartpb opened 1 year ago

stuartpb commented 1 year ago

Describe the bug

Just installed mozillavpn via paru mozillavpn and am getting a crash error immediately on startup.

VPN version: 2.15.0

Affected Platforms: Arch Linux

Prerequisites: Built from source

Steps to reproduce: Run mozillavpn from terminal.

Expected result: App should launch.

Actual result: Immediate segfault.

Additional notes:

Logs from coredumpctl info:

Stack trace of thread 29346:
                #0  0x00007f0f756927dc n/a (libc.so.6 + 0x1697dc)
                #1  0x00007f0f740e8b3a px_manager_is_ignore (libpxbackend-1.0.so + 0x5b3a)
                #2  0x00007f0f740e927b n/a (libpxbackend-1.0.so + 0x627b)
                #3  0x00007f0f740e9a8f px_manager_get_configuration (libpxbackend-1.0.so + 0x6a8f)
                #4  0x00007f0f740e9fee px_manager_get_proxies_sync (libpxbackend-1.0.so + 0x6fee)
                #5  0x00007f0f7670023e px_proxy_factory_get_proxies (libproxy.so.1 + 0x123e)
                #6  0x00007f0f777682b8 _ZN20QNetworkProxyFactory19systemProxyForQueryERK18QNetworkProxyQuery (libQt6Network.so.6 + 0xfc2b8)
                #7  0x00007f0f77704bc6 n/a (libQt6Network.so.6 + 0x98bc6)
                #8  0x00007f0f77705c1b _ZN20QNetworkProxyFactory13proxyForQueryERK18QNetworkProxyQuery (libQt6Network.so.6 + 0x99c1b)
                #9  0x00007f0f7770f270 n/a (libQt6Network.so.6 + 0xa3270)
                #10 0x00007f0f7770f998 n/a (libQt6Network.so.6 + 0xa3998)
                #11 0x00007f0f77706978 n/a (libQt6Network.so.6 + 0x9a978)
                #12 0x00007f0f77707541 _ZN15QAbstractSocket4bindEt6QFlagsINS_8BindFlagEE (libQt6Network.so.6 + 0x9b541)
                #13 0x0000563f452cf9da n/a (mozillavpn + 0x2ba9da)
                #14 0x0000563f452c02bf n/a (mozillavpn + 0x2ab2bf)
                #15 0x0000563f4530f7e8 n/a (mozillavpn + 0x2fa7e8)
                #16 0x0000563f452ada00 n/a (mozillavpn + 0x298a00)
                #17 0x0000563f452a259f n/a (mozillavpn + 0x28d59f)
                #18 0x0000563f452acf00 n/a (mozillavpn + 0x297f00)
                #19 0x0000563f452a437c n/a (mozillavpn + 0x28f37c)
                #20 0x0000563f4517e6fb n/a (mozillavpn + 0x1696fb)
                #21 0x00007f0f7554c850 n/a (libc.so.6 + 0x23850)
                #22 0x00007f0f7554c90a __libc_start_main (libc.so.6 + 0x2390a)
                #23 0x0000563f45181a25 n/a (mozillavpn + 0x16ca25)

                Stack trace of thread 29347:
                #0  0x0000563f453d7e23 n/a (mozillavpn + 0x3c2e23)
                #1  0x0000563f45381207 n/a (mozillavpn + 0x36c207)
                #2  0x0000563f453af2ac n/a (mozillavpn + 0x39a2ac)
                #3  0x0000563f453b0b09 n/a (mozillavpn + 0x39bb09)
                #4  0x0000563f453b1931 n/a (mozillavpn + 0x39c931)
                #5  0x0000563f453b1e4d n/a (mozillavpn + 0x39ce4d)
                #6  0x0000563f453d3cc5 n/a (mozillavpn + 0x3becc5)
                ELF object binary architecture: AMD x86-64

┆Issue is synchronized with this Jira Bug

stuartpb commented 1 year ago

I checked https://aur.archlinux.org/packages/mozillavpn and have also tried building the package with this PKGBUILD and this one: both of them still trigger the segfault.

stuartpb commented 1 year ago

More investigation in the Arch Linux forums thread for this issue: so far, it's been traced to a null string comparison, looks like something to do with the GNOME proxy configuration...