LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [SOLVED] current update causes segfaults on nm-appelt when used with NetworkManager-openvpn (https://www.linuxquestions.org/questions/slackware-14/%5Bsolved%5D-current-update-causes-segfaults-on-nm-appelt-when-used-with-networkmanager-openvpn-4175619953/)

bsd1101 12-20-2017 03:50 AM

[SOLVED] current update causes segfaults on nm-appelt when used with NetworkManager-openvpn
 
just updated to the latest current; which included updates to NetworkManager-1.10.2-x86_64-1 and network-manager-applet-1.8.10-x86_64-1

after getting the update I rebuilt the SBo package of NetworkManager-openvpn

When I start X (xfce) I have nm-applet running in the system tray. If I try and connect to my vpn, or even edit a vpn connection nm-applet crashes. Running nm-applet from terminal and doing either of these things causes a segfault. Doing anything non-vpn related in nm-applet does not cause any issues.

If nm-applet crashes while connecting to a vpn, when I log out of x and come back the icon appears in the system tray showing a vpn connection. If I try doing anything vpn related it will crash again.

edit: decided to downgrade network-manager-applet to fix the issue for now. version 1.8.8 had the same issue. Had to revert to 1.8.6. Kept NetworkManager 1.10.2 and openvpn 1.8.0, so the problem seems to be with the applet.

ponce 12-20-2017 04:27 AM

does this still happen if you version-bump NetworkManager-openvpn to version 1.8.0?
Code:

# diff -Naur NetworkManager-openvpn.orig NetworkManager-openvpn
diff -Naur NetworkManager-openvpn.orig/NetworkManager-openvpn.SlackBuild NetworkManager-openvpn/NetworkManager-openvpn.SlackBuild
--- NetworkManager-openvpn.orig/NetworkManager-openvpn.SlackBuild      2017-12-20 09:45:52.016824398 +0100
+++ NetworkManager-openvpn/NetworkManager-openvpn.SlackBuild    2017-12-20 11:23:14.973337509 +0100
@@ -23,7 +23,7 @@
 #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 PRGNAM=NetworkManager-openvpn
-VERSION=${VERSION:-1.2.10}
+VERSION=${VERSION:-1.8.0}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
diff -Naur NetworkManager-openvpn.orig/NetworkManager-openvpn.info NetworkManager-openvpn/NetworkManager-openvpn.info
--- NetworkManager-openvpn.orig/NetworkManager-openvpn.info    2017-12-20 09:45:52.016824398 +0100
+++ NetworkManager-openvpn/NetworkManager-openvpn.info  2017-12-20 11:23:01.230338251 +0100
@@ -1,8 +1,8 @@
 PRGNAM="NetworkManager-openvpn"
-VERSION="1.2.10"
+VERSION="1.8.0"
 HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
-DOWNLOAD="https://download.gnome.org/sources/NetworkManager-openvpn/1.2/NetworkManager-openvpn-1.2.10.tar.xz"
-MD5SUM="f118226ed2bfbacfd64ac4d1e0bd0383"
+DOWNLOAD="https://download.gnome.org/sources/NetworkManager-openvpn/1.8/NetworkManager-openvpn-1.8.0.tar.xz"
+MD5SUM="4bea2010b8264d51f5ee08ad2f32cec5"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
 REQUIRES=""


bsd1101 12-20-2017 04:32 AM

yes. I've been using 1.8.0 for a little while now.

ponce 12-20-2017 04:54 AM

Quote:

Originally Posted by bsd1101 (Post 5795362)
yes. I've been using 1.8.0 for a little while now.

sorry, I didn't understood that from your previous message...

can you please also try this script that includes some little mods I took from the fedora build?

http://ponce.cc/slackware/testing/Ne...nager-openvpn/

bsd1101 12-20-2017 05:00 AM

didn't help. Segfaults in the same manner.

brobr 12-20-2017 12:21 PM

I can confirm this; it relates to the nm-applet-update

1) Both the openvpn-plugin and the vnc-plugin cause the nm-applet to crash when activating the vpn (i.e. clicking on the box to get the tick-mark).

As bsd1101 observed above, the vpn connection gets established:
After restarting nm-applet from the command-line I get the lock symbol on the connection and also my vpn connection is confirmed by the provider.

(I only cannot get it easily unlocked; I found that always be very unresponsive...)

Other methods to crash the nm-applet all go via vpn-entries:

2) click on configure vpn-connections; double click on a connection-entry: the applet crashes but you still have the Network Connections screen

or

3) right-click and choose Edit-connections, double click on a vpn-entry: the applet crashes as above;
but, when in Edit-connections, double-click on an ethernet - or wifi-entry: NO crash

In the terminal I get these messages:
Quote:

bash-4.4$ *** Error in `nm-applet': munmap_chunk(): invalid pointer: 0x00000000012efc10 ***

-rebuild nm-applet

bash-4.4$ nm-applet
Segmentation fault
bash-4.4$ nm-applet
bash-4.4$ nm-applet
*** Error in `nm-applet': double free or corruption (out): 0x0000000001f474a0 ***
Aborted
*** Error in `nm-applet': double free or corruption (out): 0x0000000001f474a0 ***
Aborted
*** Error in `nm-applet': double free or corruption (!prev): 0x0000000001d371f0 ***
Aborted
*** Error in `nm-applet': double free or corruption (out): 0x0000000002189350 ***
*** Error in `nm-applet': free(): invalid pointer: 0x00007f2d2c6c50a0 ***
Aborted
networkmanager-openvpn 1.2.10 or 1.8.0 does not make a difference
rebuilding networkmanager-applet-1.8.10 does not help
rebuilding NetworkManager-1.10.2 does not help

downgrading to nm-applet-1.8.6 helps in my case

EDIT: just noticed that OP had edited his/her post with the same conclusion
We need autorefresh for LQ-pages .....

USUARIONUEVO 12-20-2017 03:58 PM

archlinux apply a patch on network-manager-applet

https://git.archlinux.org/svntogit/p...manager-applet

brobr 12-20-2017 04:40 PM

Hi USARIONUEVO, thanks,

But that did NOT work for me (i.e. adding the following line before 'configure' in the network-manager-applet.SlackBuild after saving the patch-page in the source/xap/network-manager-applet folder):
Code:

patch -p 1 < $CWD/0001-shared-compat-Fix-memory-handling-of-nm_setting_vpn_.txt
still segfaulting with a rebuilt patched applet

EDIT: it appeared to work earlier but I had still the 1.8.6 version active

bsd1101 12-20-2017 06:50 PM

Quote:

Originally Posted by brobr (Post 5795759)
Hi USARIONUEVO, thanks,

But that did NOT work for me (i.e. adding the following line before 'configure' in the network-manager-applet.SlackBuild after saving the patch-page in the source/xap/network-manager-applet folder):
Code:

patch -p 1 < $CWD/0001-shared-compat-Fix-memory-handling-of-nm_setting_vpn_.txt
still segfaulting with a rebuilt patched applet

EDIT: it appeared to work earlier but I had still the 1.8.6 version active

same. Patch does not fix issue.

cwizardone 12-20-2017 07:57 PM

Among the -current updates for 20 December 2017,

Quote:

Wed Dec 20 22:56:42 UTC 2017
a/util-linux-2.31.1-x86_64-1.txz: Upgraded.
l/ffmpeg-3.4.1-x86_64-1.txz: Upgraded.
x/xorg-server-1.19.6-x86_64-1.txz: Upgraded.
x/xorg-server-xephyr-1.19.6-x86_64-1.txz: Upgraded.
x/xorg-server-xnest-1.19.6-x86_64-1.txz: Upgraded.
x/xorg-server-xvfb-1.19.6-x86_64-1.txz: Upgraded.
xap/network-manager-applet-1.8.10-x86_64-2.txz: Rebuilt.
Patched to fix crash with NetworkManager-openvpn. Thanks to USUARIONUEVO.

bsd1101 12-20-2017 08:01 PM

that update has the same patch as the one above. Issue remains

brobr 12-22-2017 07:48 AM

This issue with the network-manager plugin seems to be resolved only in the arch-linux release from yesterday; they are on version 1.8.10-5 now; above patch also tested negative at their end. See https://bugs.archlinux.org/task/56772

hth

EDIT: I tested their new patch and at least the rebuilt applet no longer crashes upon choosing a vpn-connection.

bsd1101 12-22-2017 05:32 PM

todays update fixes it :D

tazza 12-23-2017 04:36 AM

Quote:

Originally Posted by bsd1101 (Post 5796620)
todays update fixes it :D

On a sort of related note, the openvpn plugin was still dying on me. Network would connect but I was unable to get the VPN to work out.

After removepkg and reinstalling again from the one provided on slackbuilds it works again now.

For some reason I still can't spoof mac address - it keeps disconnecting.


All times are GMT -5. The time now is 06:04 AM.