You are not logged in.

#1 2010-05-20 12:52:13

SkyTod
Member
Registered: 2009-09-01
Posts: 226

[Solved] Segmentation fault

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

#2 2010-05-20 12:54:21

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [Solved] Segmentation fault

Cut the red wire and push the green button.

Really, with that much of information nobody can help you.

http://www.catb.org/~esr/faqs/smart-questions.html

Offline

#3 2010-05-20 12:55:12

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: [Solved] Segmentation fault

We need some details...   is it one particular program?  Multiple programs?

Offline

#4 2010-05-20 13:03:51

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: [Solved] Segmentation fault

Allan wrote:

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

#5 2010-05-20 13:43:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

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

#6 2010-05-20 13:45:13

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [Solved] Segmentation fault

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

#7 2010-05-20 14:12:30

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: [Solved] Segmentation fault

karol wrote:

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.

lifeafter2am wrote:

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

#8 2010-05-20 14:40:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

> 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?

SkyTod wrote:

[root@myhost ~]# ls /var/log/

Offline

#9 2010-05-20 14:49:31

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: [Solved] Segmentation fault

karol wrote:

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

#10 2010-05-20 14:55:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

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

#11 2010-05-20 15:16:57

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: [Solved] Segmentation fault

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?

karol wrote:

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

#12 2010-05-20 15:22:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

[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

#13 2010-05-20 18:22:07

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: [Solved] Segmentation fault

karol wrote:
[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

#14 2010-05-20 18:29:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

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

#15 2010-05-20 18:36:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [Solved] Segmentation fault

karol wrote:

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

#16 2010-05-20 18:41:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

> 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

#17 2010-05-20 19:04:40

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: [Solved] Segmentation fault

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

#18 2010-05-20 19:22:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

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

#19 2010-05-20 19:28:06

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] Segmentation fault

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

#20 2010-05-20 19:41:25

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: [Solved] Segmentation fault

wonder wrote:

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?

wonder wrote:

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

#21 2010-05-20 19:46:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

> 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

#22 2010-05-20 19:48:58

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] Segmentation fault

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

#23 2010-05-20 20:13:42

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: [Solved] Segmentation fault

karol wrote:

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.

wonder wrote:

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

#24 2010-05-20 20:16:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Segmentation fault

> 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

#25 2010-05-20 20:30:15

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [Solved] Segmentation fault

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

Board footer

Powered by FluxBB