LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-20-2017, 03:50 AM   #1
bsd1101
Member
 
Registered: Jul 2010
Location: Brooklyn NY
Distribution: Slackware 64
Posts: 31

Rep: Reputation: Disabled
[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.

Last edited by bsd1101; 12-22-2017 at 10:25 PM. Reason: solved
 
Old 12-20-2017, 04:27 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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=""
 
Old 12-20-2017, 04:32 AM   #3
bsd1101
Member
 
Registered: Jul 2010
Location: Brooklyn NY
Distribution: Slackware 64
Posts: 31

Original Poster
Rep: Reputation: Disabled
yes. I've been using 1.8.0 for a little while now.

Last edited by bsd1101; 12-20-2017 at 04:35 AM.
 
Old 12-20-2017, 04:54 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by bsd1101 View Post
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/
 
Old 12-20-2017, 05:00 AM   #5
bsd1101
Member
 
Registered: Jul 2010
Location: Brooklyn NY
Distribution: Slackware 64
Posts: 31

Original Poster
Rep: Reputation: Disabled
didn't help. Segfaults in the same manner.
 
Old 12-20-2017, 12:21 PM   #6
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
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 .....

Last edited by brobr; 12-20-2017 at 12:27 PM.
 
1 members found this post helpful.
Old 12-20-2017, 03:58 PM   #7
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
archlinux apply a patch on network-manager-applet

https://git.archlinux.org/svntogit/p...manager-applet
 
1 members found this post helpful.
Old 12-20-2017, 04:40 PM   #8
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
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

Last edited by brobr; 12-20-2017 at 05:00 PM.
 
Old 12-20-2017, 06:50 PM   #9
bsd1101
Member
 
Registered: Jul 2010
Location: Brooklyn NY
Distribution: Slackware 64
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brobr View Post
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.
 
Old 12-20-2017, 07:57 PM   #10
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,094

Rep: Reputation: 7271Reputation: 7271Reputation: 7271Reputation: 7271Reputation: 7271Reputation: 7271Reputation: 7271Reputation: 7271Reputation: 7271Reputation: 7271Reputation: 7271
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.
 
Old 12-20-2017, 08:01 PM   #11
bsd1101
Member
 
Registered: Jul 2010
Location: Brooklyn NY
Distribution: Slackware 64
Posts: 31

Original Poster
Rep: Reputation: Disabled
that update has the same patch as the one above. Issue remains
 
1 members found this post helpful.
Old 12-22-2017, 07:48 AM   #12
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
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.

Last edited by brobr; 12-22-2017 at 08:15 AM.
 
Old 12-22-2017, 05:32 PM   #13
bsd1101
Member
 
Registered: Jul 2010
Location: Brooklyn NY
Distribution: Slackware 64
Posts: 31

Original Poster
Rep: Reputation: Disabled
todays update fixes it
 
1 members found this post helpful.
Old 12-23-2017, 04:36 AM   #14
tazza
Member
 
Registered: Jul 2005
Distribution: Slackware64 -current
Posts: 114

Rep: Reputation: 31
Quote:
Originally Posted by bsd1101 View Post
todays update fixes it
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Database connection through openvpn broken after latest current update tomtomjkw Slackware 2 11-18-2017 02:03 PM
NetworkManager-1.0.10-x86_64-1 on -current has a bug with openvpn plugin pasquall Slackware 2 01-07-2016 10:04 PM
Program segfaults after 21 April update in -current Jefferson Slackware 12 04-27-2015 05:29 PM
todays update has messed up something in gnome or nautilus soa Debian 5 02-20-2009 10:54 PM
Graphics trouble with 9.1 after todays online-update ... Bikerpete SUSE / openSUSE 2 10-30-2004 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration