theinvisible / openfortigui

VPN-GUI to connect to Fortigate-Hardware, based on openfortivpn
https://hadler.me/linux/openfortigui/
GNU General Public License v3.0
489 stars 54 forks source link

Segfault when attempting connection in Linux Mint Cinnamon 20 (0.9.3) #146

Closed DominicWatson closed 3 years ago

DominicWatson commented 3 years ago

On OpenFortiGui 0.9.3, when trying to connect to a VPN through the GUI, "nothing happens" - connection is not successful, there is no visible change in the UI to indicate "connecting" and there is no output in the VPN's log.

When trying to connect via the command line, I get:

$ sudo openfortigui --start-vpn --vpn-name MyVpnConnection
$ Segmentation fault

The following is the log from /var/log/syslog (I get the same when attempting connection through GUI + also commandline):

[57314.816061] openfortigui[90455]: segfault at 80 ip 00007f82d81125a4 sp 00007ffd4aca5f58 error 4 in libQt5Core.so.5.12.8[7f82d7fe8000+2e0000]
[57314.816077] Code: 48 89 0f 8b 11 83 c2 01 83 fa 01 77 09 c3 0f 1f 84 00 00 00 00 00 f0 83 01 01 c3 90 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa <48> 8b 0e 48 89 f8 48 89 0f 8b 11 83 c2 01 83 fa 01 77 09 c3 0f 1f

Started Process Core Dump (PID 90456/UID 0).
Process 90455 (openfortigui) of user 0 dumped core.

Stack trace of thread 90455:

#0  0x00007f82d81125a4 _ZN4QDir20fromNativeSeparatorsERK7QString (libQt5Core.so.5 + 0x1ad5a4)
#1  0x00007f82d8126347 _ZN9QFileInfoC1ERK7QString (libQt5Core.so.5 + 0x1c1347)
#2  0x00005568888e379b n/a (openfortigui + 0x4e79b)
#3  0x00005568888e3aa4 n/a (openfortigui + 0x4eaa4)
#4  0x00007f82d8217300 _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5 + 0x2b2300)
#5  0x00007f82d82245f3 n/a (libQt5Core.so.5 + 0x2bf5f3)
#6  0x00007f82d8217cf5 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2b2cf5)
#7  0x00007f82d81eb917 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x286917)
#8  0x00007f82d82428b0 _ZN14QTimerInfoList14activateTimersEv (libQt5Core.so.5 + 0x2dd8b0)
#9  0x00007f82d824319c n/a (libQt5Core.so.5 + 0x2de19c)
#10 0x00007f82d7a74fbd g_main_context_dispatch (libglib-2.0.so.0 + 0x51fbd)
#11 0x00007f82d7a75240 n/a (libglib-2.0.so.0 + 0x52240)
#12 0x00007f82d7a752e3 g_main_context_iteration (libglib-2.0.so.0 + 0x522e3)
#13 0x00007f82d8243565 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2de565)
#14 0x00007f82d81ea4db _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2854db)
#15 0x00007f82d81f2246 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x28d246)
#16 0x00005568888b2a91 n/a (openfortigui + 0x1da91)
#17 0x00007f82d7b7b0b3 __libc_start_main (libc.so.6 + 0x270b3)
#18 0x00005568888b324e n/a (openfortigui + 0x1e24e)

OS is Linux Mint Cinnamon 20 - (based on Ubuntu 20.04)

DominicWatson commented 3 years ago

Looking further, I can see this is a duplicate of #99. Closing.

DominicWatson commented 3 years ago

As mentioned in ticket #99, enabling the SUDO Preserve .env option fixed it for me. I enabled in the GUI with File -> Settings:

image