Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-07-2013, 09:06 PM
|
#1
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
nm-applet segmentation fault
Slackware 14.0, fully patched.
I can't run nm-applet as non-root. I receive the same error message as seen here.
The responses contain the standard useless comments of "solving" the problem by not using NetworkManager, etc. The OP tagged the thread as solved after moving to wicd.
As the thread was started just before 14.0 was officially released, I presume nm-applet is working for others?
I have gnome-keyring installed but even if I didn't I would expect a related failure message rather than a segmentation fault.
I'm presuming the problem is some kind of permissions or policy error as I can run nm-applet as root.
Please note the problem is nm-applet and not NetworkManager.
Any ideas?
Thanks. 
|
|
|
08-07-2013, 09:33 PM
|
#2
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
Try rebuilding it from source and see if it fixes it.
|
|
|
08-07-2013, 09:51 PM
|
#3
|
Member
Registered: Dec 2008
Distribution: slackware64 openbsd
Posts: 105
Rep:
|
Quote:
Originally Posted by Woodsman
Slackware 14.0, fully patched.
I can't run nm-applet as non-root. I receive the same error message as seen here.
The responses contain the standard useless comments of "solving" the problem by not using NetworkManager, etc. The OP tagged the thread as solved after moving to wicd.
As the thread was started just before 14.0 was officially released, I presume nm-applet is working for others?
I have gnome-keyring installed but even if I didn't I would expect a related failure message rather than a segmentation fault.
I'm presuming the problem is some kind of permissions or policy error as I can run nm-applet as root.
Please note the problem is nm-applet and not NetworkManager.
Any ideas?
Thanks. 
|
chmod u+x /etc/rc.d/rc.networkmanager?
|
|
|
08-07-2013, 10:15 PM
|
#4
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
Quote:
Try rebuilding it from source and see if it fixes it.
|
I doubt Pat would have released 14.0 with a broken nm-applet.  Besides, I wrote that I can't run nm-applet as non-root and wrote than I can run nm-applet as root.
Quote:
chmod u+x /etc/rc.d/rc.networkmanager?
|
Well, um, yeah.  I wrote that this is an nm-applet problem, not NM. 
|
|
|
08-07-2013, 10:59 PM
|
#5
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
When running nm-applet as non-root, I see the following in /var/log/messages:
nm-applet[26268]: segfault at ffff3ff0 ip b638f6ae sp bf86afb0 error 5 in libc-2.15.so[b6349000+17e000]
Same as the OP in the other thread. 
|
|
|
08-07-2013, 11:05 PM
|
#6
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
Quote:
Try rebuilding it from source and see if it fixes it.
|
I rebuilt anyway and same result. 
|
|
|
08-07-2013, 11:49 PM
|
#7
|
LQ Newbie
Registered: Apr 2012
Distribution: Gentoo, Arch
Posts: 21
Rep: 
|
I'm having a similar issue, I tried to install newer version of NetworkManager (0.9.8) but I can not get run it. I will try to recompile NetworManager, else I might try a newer version of NetworkManager applet.
|
|
|
08-08-2013, 12:23 AM
|
#8
|
LQ Newbie
Registered: Apr 2012
Distribution: Gentoo, Arch
Posts: 21
Rep: 
|
Quote:
Originally Posted by angel'le
I'm having a similar issue, I tried to install newer version of NetworkManager (0.9.8) but I can not get run it. I will try to recompile NetworManager, else I might try a newer version of NetworkManager applet.
|
Yeahh! Recompiling NetworkManager solved all nm-applet issues I had, I hope you can solve your issue concerning the applet.
By the way my output of error was (maybe someone with the same problem needs find it)
Quote:
nm_client_get_devices: error getting devices: The name org.freedesktop.NetworkManager was not provided by any .service files
|
|
|
|
08-08-2013, 04:58 AM
|
#9
|
Member
Registered: Sep 2012
Distribution: Slackware
Posts: 187
Rep: 
|
@Woodsman
Are you not running Consolekit/Polkit?
I don't start either of them, and get the same segfault message. I assumed it was a permissions issue, and use a script to run nm-applet via sudo on the (rare) occasions I need to add or edit a connection. Otherwise I never start nm-applet.
(Actually, the same thinking and same solution in the case of `suspend' too, as in your other thread - I assumed I couldn't do it out-of-the-box due to lack of Consolekit/Polkit, so use sudo with NOPASSWD)
Last edited by Loomx; 08-08-2013 at 02:45 PM.
Reason: Silly typo
|
|
|
08-08-2013, 05:22 AM
|
#10
|
Senior Member
Registered: Apr 2005
Posts: 2,727
|
Quote:
Originally Posted by Woodsman
Well, um, yeah.  I wrote that this is an nm-applet problem, not NM. 
|
It's a valid suggestion in fact, because nm-applet does segfault if you try to start it without starting the networkmanager init script.
|
|
|
08-08-2013, 07:25 AM
|
#11
|
Senior Member
Registered: Dec 2005
Distribution: Slackware
Posts: 1,135
|
Quote:
Originally Posted by Loomx
@Woodsman
Are you running not running Consolekit/Polkit?
|
+1
I run fluxbox, and this *has* to go in .xinitrc (or similar in .fluxbox/startup)
Code:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session /usr/bin/startfluxbox
else
exec /usr/bin/startfluxbox
fi
There is also a similar line to start d-bus:
Code:
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
As you're running Trinity, I'll hazard a guess that either or both don't get started when your wm runs.
cheers,
|
|
1 members found this post helpful.
|
08-08-2013, 03:20 PM
|
#12
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
Quote:
Yeahh! Recompiling NetworkManager solved all nm-applet issues I had, I hope you can solve your issue concerning the applet.
|
I'm using Slackware 14.0. With respect to this thread, last night I rebuilt NetworkManager using the sources from Current. Then I started rebuilding nm-applet from Current, but that version has an additional dependency of libsecret or something like that. I could have built the dependency package but then decided to hell with that.
Quote:
Are you running not running Consolekit/Polkit?
|
I don't have rc.consolekit enabled. On the laptop only there is a polkit process running (/usr/libexec/polkitd --no-debug). I presume that is caused by running NetworkManager because I don't see that process on any of my other systems.
I enabled rc.consolekit and rebooted. No change in the results.
I noticed when the files in /etc/NetworkManager/system-connections are not chmod 600 that NM will not initialize at all. More Redhat stupidity?
Quote:
I don't start either of them, and get the same segfault message. I assumed it was a permissions issue, and use a script to run nm-applet via sudo on the (rare) occasions I need to add or edit a connection. Otherwise I never start nm-applet.
|
I have been presuming a permissions or policy problem all along, as I noted in my original post that I can run nm-applet as root. As I can run nm-applet as root then sudo would work, but that is not the correct solution.
Quote:
It's a valid suggestion in fact, because nm-applet does segfault if you try to start it without starting the networkmanager init script.
|
That's fine. I just presumed anybody reading this thread would understand that I am already running NetworkManager.
Quote:
I run fluxbox, and this *has* to go in .xinitrc (or similar in .fluxbox/startup)
|
I'm not running fluxbox and am not sure how that applies to Trinity.
Quote:
There is also a similar line to start d-bus:
|
I don't see a $DBUS_SESSION_BUS_ADDRESS environment variable on the laptop.
Regardless, I modified my Trinity xinitrc with the same if/then test used in the stock Slackware xinitrc scripts, which is similar to the previous suggestion for fluxbox.
Damn. nm-applet now starts without the failure. I don't need chmod +x rc.consolekit. I do see that most (all?) of the xinitrc scripts have something like that. I also now see a $DBUS_SESSION_BUS_ADDRESS environment variable.
Where is this all explained or described?
Seems then this was a permissions/policy problem. I don't know what ck-launch-session does but the file does something related to permissions/policies. The ck-launch-session is installed from the consolekit package. My question now is when is ck-launch-session needed? I have been running without using that file for a long time. The only time I seem to need ck-launch-session is to run nm-applet.
Does ck-launch-session also affect the behavior of NetworkManager?
Questions, questions, questions! 
|
|
|
08-08-2013, 11:40 PM
|
#13
|
Member
Registered: Sep 2012
Distribution: Slackware
Posts: 187
Rep: 
|
Quote:
Originally Posted by Woodsman
Where is this all explained or described?
|
The documentation for ConsoleKit is a bit sparse (and it is also now deprecated in favor of systemd...)
Here's a link from the Arch forums which is relevant: https://bbs.archlinux.org/viewtopic.php?pid=637913
tl;dr - Old Way=sudo
New Way=ck-launch-session
Quote:
Originally Posted by Woodsman
I don't know what ck-launch-session does but the file does something related to permissions/policies. The ck-launch-session is installed from the consolekit package. My question now is when is ck-launch-session needed?
|
If you are not using a full DE and want those things that require privileges to "Just Work".
Otherwise you need to set them up manually (with sudo or d-bus or whatever)
With that in mind, maybe you will find suspend now works?
Last edited by Loomx; 08-08-2013 at 11:41 PM.
|
|
|
08-09-2013, 11:49 AM
|
#14
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
Quote:
With that in mind, maybe you will find suspend now works?
|
I haven't yet investigated fully. With the changes to my xinitrc, I discovered the Trinity version of nm-applet, tdenetworkmanager, suddenly now works as non-root.
On a single user laptop, which for laptops probably is 99%, the fact that these applets need super user permissions is asanine. The fact that NetworkManager won't run unless the system-connections scripts are chmod 600 is asanine. I "get" security, but often the concept is pushed too damn far on Linux based systems. More reminders why Linux based systems are not popular on the desktop.
I'll tag this thread as solved.
|
|
|
All times are GMT -5. The time now is 10:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|