You are not logged in.
When I try to start some program from sudo console I see following:
Segmentation fault
How can I solve it?
Last edited by SkyTod (2010-07-16 22:51:52)
Offline
Cut the red wire and push the green button.
Really, with that much of information nobody can help you.
Offline
We need some details... is it one particular program? Multiple programs?
Offline
We need some details... is it one particular program? Multiple programs?
Sorry, just GUI doesn't start. For examples, mc works. I don't know what I can add.:(
Offline
Sorry, SkyTod, I had to sell my crystal ball to get some pungent cheese - yummmm!
> GUI doesn't start
You mean the X? Can you post some logs?
Offline
I think he means that when trying to start a gui app from the console with sudo, it seg faults. Is that correct?
e.g.
sudo firefox
would seg fault.
#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.
Offline
Sorry, SkyTod, I had to sell my crystal ball to get some pungent cheese - yummmm!
> GUI doesn't start
You mean the X? Can you post some logs?
What kind of them? I have following:
[root@myhost ~]# ls /var/log/
acpid.log auth.log.2 crond.2 crond.log.4 dmesg.log everything.log.1 kdm.log messages.log pm-powersave.log syslog.log.4 uucp.log.1 Xorg.0.log
acpid.log.1 auth.log.3 crond.3 cups errors.log everything.log.2 kernel.log messages.log.1 pm-suspend.log user.log uucp.log.2 Xorg.0.log.old
acpid.log.2 auth.log.4 crond.4 daemon.log errors.log.1 everything.log.3 kernel.log.1 messages.log.2 samba user.log.1 uucp.log.3 Xorg.1.log
acpid.log.3 btmp crond.log daemon.log.1 errors.log.2 everything.log.4 kernel.log.2 messages.log.3 syslog.log user.log.2 uucp.log.4 Xorg.1.log.old
acpid.log.4 ConsoleKit crond.log.1 daemon.log.2 errors.log.3 faillog kernel.log.3 messages.log.4 syslog.log.1 user.log.3 vsftpd.log
auth.log crond crond.log.2 daemon.log.3 errors.log.4 gdm kernel.log.4 old syslog.log.2 user.log.4 wtmp
auth.log.1 crond.1 crond.log.3 daemon.log.4 everything.log httpd lastlog pacman.log syslog.log.3 uucp.log wtmp.1
My /var/log/Xorg.1.log You may see here.
I think he means that when trying to start a gui app from the console with sudo, it seg faults. Is that correct?
e.g.
sudo firefox
would seg fault.
That's correct. But I use:
su -
firefox
Because sudo writes that my password is incorrect.:/
Last edited by SkyTod (2010-05-20 14:12:57)
Offline
> sudo writes that my password is incorrect
You can modify group settings so that you don't have to give password for certain users. Are you using root settings?
[root@myhost ~]# ls /var/log/
Offline
You can modify group settings so that you don't have to give password for certain users. Are you using root settings?
I don't need it. I want to start some application as root. It used to work. But now I don't understand what's changed. Nobody faces with something like this?
Last edited by SkyTod (2010-05-20 14:55:06)
Offline
egrep '^\((W|E)' /var/log/Xorg.0.log
would be helpful.
From the log you posted I see some errors
(II) config/hal: Adding input device Macintosh mouse button emulation
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device ImPS/2 Generic Wheel Mouse
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device Power Button
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device Power Button
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) UnloadModule: "kbd"
(II) UnloadModule: "mouse"
> Nobody face with something like this?
I type 'su', give the root password, and I am root. Now I can run htop or whatever as root. Never had any problems.
Offline
Thanks.
egrep '^\((W|E)' /var/log/Xorg.0.log
(WW) The directory "/usr/share/fonts/PEX" does not exist.
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/cyrillic".
(WW) The directory "/usr/share/fonts/ttf/western" does not exist.
(WW) The directory "/usr/share/fonts/ttf/decoratives" does not exist.
(WW) The directory "/usr/share/fonts/truetype" does not exist.
(WW) The directory "/usr/share/fonts/truetype/openoffice" does not exist.
(WW) The directory "/usr/share/fonts/truetype/ttf-bitstream-vera" does not exist.
(WW) The directory "/usr/share/fonts/latex-ttf-fonts" does not exist.
(WW) The directory "/usr/share/fonts/defoma/CID" does not exist.
(WW) The directory "/usr/share/fonts/defoma/TrueType" does not exist.
(EE) config/hal: NewInputDeviceRequest failed (8)
(EE) config/hal: NewInputDeviceRequest failed (8)
(EE) config/hal: NewInputDeviceRequest failed (8)
(EE) config/hal: NewInputDeviceRequest failed (8)
(EE) config/hal: NewInputDeviceRequest failed (8)
Do You mean it's a issues of hal?
I type 'su', give the root password, and I am root. Now I can run htop or whatever as root. Never had any problems.
And I. But we are talking about GUI.
Offline
[karol@black ~]$ su
Password:
[root@black karol]# firefox
Works for me.
I don't know why you can't run it as root. IMHO If you can run an app as a user, hal has nothing to do with it.
Offline
[karol@black ~]$ su Password: [root@black karol]# firefox
Works for me.
I don't know why you can't run it as root. IMHO If you can run an app as a user, hal has nothing to do with it.
I can run it as user. And I used to run it as root into user's environment. But now I can't:
[ted@myhost ~]$ su -
Password:
[root@myhost ~]# firefox
Segmentation fault
[root@myhost ~]#
I have no idea where I may find something about it. Googling didn't help.
Last edited by SkyTod (2010-05-20 18:22:54)
Offline
http://bbs.archlinux.org/viewtopic.php?id=84588
http://bbs.archlinux.org/viewtopic.php?id=96024 :-)
Did you search the forum?
Last edited by karol (2010-05-20 18:34:49)
Offline
I don't know why you can't run it as root.
...
Works for me.
Shudder...
Firefox as root? Scary.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
> Firefox as root? Scary.
Maybe OP likes living on the edge <shrugs>
Q: What's small, yellow and lethal?
A: A canary with your root password.
Offline
http://bbs.archlinux.org/viewtopic.php?id=84588
http://bbs.archlinux.org/viewtopic.php?id=96024 :-)
Did you search the forum?
Second link is not my situation.:P
I guessed it's something happens with my GTK. So I run following:
[root@myhost ~]# systemsettings
systemsettings(3179): Communication problem with "systemsettings" , it probably crashed.
Error message was: "org.freedesktop.DBus.Error.ServiceUnknown" : " "The name org.kde.systemsettings was not provided by any .service files" "
And when I run something based on QT & KDE I see the same as Firefox:
[root@myhost ~]# okular
Segmentation fault
I'm confused.:|
Offline
Nothing really helpful, but I'll post it anyway:
http://bbs.archlinux.org/viewtopic.php?id=95234
http://bbs.archlinux.org/viewtopic.php?id=94585
Maybe you should try updating / reinstalling KDE/Qt? If the problem doesn't go away, please file a bug report.
Offline
post your DAEMONS list from rc.conf. i guess you don't have the needed daemons running such as dbus
ps. why the hell do you want to run apps as root. man adduser
Last edited by wonder (2010-05-20 19:29:11)
Give what you have. To someone, it may be better than you dare to think.
Offline
post your DAEMONS list from rc.conf. i guess you don't have the needed daemons running such as dbus
DAEMONS=(syslog-ng network netfs crond hal alsa httpd mysqld vsftpd)
Is it necessary?
ps. why the hell do you want to run apps as root. man adduser
Sometimes I need to works with root's files by special apps.
Offline
> Sometimes I need to works with root's files by special apps.
Firefox??
Maybe sth is wrong w/ your permissions? In general, root and GUI don't mix.
Offline
i suggest to use kdm as login manager or if you prefer .xinitrc add exec ck-launch-session wm
Give what you have. To someone, it may be better than you dare to think.
Offline
Maybe sth is wrong w/ your permissions? In general, root and GUI don't mix.
Root doesn't have troubles with permissions.;)
I do know about risk using root's account.
i suggest to use kdm as login manager or if you prefer .xinitrc add exec ck-launch-session wm
I use kdm.
P.S. I added dbus to daemons list, but it doesn't help.
Last edited by SkyTod (2010-05-20 20:14:23)
Offline
> P.S. I added dbus to daemons list, but it doesn't help.
Did you put it in the front
DAEMONS=(dbus syslog-ng network netfs crond hal alsa httpd mysqld vsftpd)
Last edited by karol (2010-05-20 20:16:42)
Offline
Root doesn't have troubles with permissions.
Neither does your user, if you keep things like they are supposed to... AFAIK if you randomly run "user" programs as root, this can mess things up. Also, what profile is firefox using under root? Hopefully a different one than normal, or you'll end up with very weird permissions.
Offline