You are not logged in.

#1 2014-12-13 10:28:52

Yashka
Member
From: Israel
Registered: 2013-03-26
Posts: 240

[SOLVED] X Segmentation fault

Hi

Yesterday I reinstalled Arch.
The problem with gnome is  when starting some applications the gnome session crashes. Applications like emacs, jdownloader and intellij idea (community version), if started the gnome session crashes to the log in screen. Emacs works fine in terminal

$ emacs -nw



The part from here to the end was solved by runical








I don't now if it is related, but when i start deluge it also doesn't work. If started from the terminal

$ deluge

it prints:

[ERROR   ] 12:10:48 ui:168 No module named gobject
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/ui/ui.py", line 149, in __init__
    from deluge.ui.gtkui.gtkui import GtkUI
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/__init__.py", line 1, in <module>
    from gtkui import start
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 37, in <module>
    import gobject
ImportError: No module named gobject
[ERROR   ] 12:10:48 ui:169 There was an error whilst launching the request UI: gtk
[ERROR   ] 12:10:48 ui:170 Look at the traceback above for more information.

but the gnome session does not crash.

Thanks for the time...

Last edited by Yashka (2014-12-17 04:08:32)


You do not need to leave your room. Remain sitting at your table and listen.
Do not even listen, simply wait, be quiet, still and solitary.
The world will freely offer itself to you to be unmasked, it has no choice, it will roll in ecstasy at your feet.
                   Franz Kafka

Offline

#2 2014-12-13 11:08:38

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED] X Segmentation fault

Can you post the gnome and X logs? The relevant errors should be there.

As for deluge, do you have the optional dependencies for the GTK UI installed?

Offline

#3 2014-12-13 14:00:03

Yashka
Member
From: Israel
Registered: 2013-03-26
Posts: 240

Re: [SOLVED] X Segmentation fault

runical wrote:

Can you post the gnome and X logs? The relevant errors should be there.

As for deluge, do you have the optional dependencies for the GTK UI installed?

Where this logs are?



You where totally wright, it was missing one dependencie (pygtk), and it works fine now. I was sure that pacman supposed to install all of them.

Last edited by Yashka (2014-12-13 14:17:08)


You do not need to leave your room. Remain sitting at your table and listen.
Do not even listen, simply wait, be quiet, still and solitary.
The world will freely offer itself to you to be unmasked, it has no choice, it will roll in ecstasy at your feet.
                   Franz Kafka

Offline

#4 2014-12-13 16:03:38

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED] X Segmentation fault

Yashka wrote:
runical wrote:

Can you post the gnome and X logs? The relevant errors should be there.

As for deluge, do you have the optional dependencies for the GTK UI installed?

Where this logs are?

For X, the log is in /var/logs. For GNOME, the logs are probably in journalctl. I don't run gnome myself, so I can't check.

Yashka wrote:

You where totally wright, it was missing one dependencie (pygtk), and it works fine now. I was sure that pacman supposed to install all of them.

Optional dependencies are never automatically installed by pacman.

Offline

#5 2014-12-13 16:42:42

Yashka
Member
From: Israel
Registered: 2013-03-26
Posts: 240

Re: [SOLVED] X Segmentation fault

There are multiple Xorg log files

$ ls -l /var/log
-rw-r--r--  1 root yashka           40K Dec 13 15:46 Xorg.0.log
-rw-r--r--  1 root yashka           40K Dec 13 15:46 Xorg.0.log.old
-rw-r--r--  1 root yashka           48K Dec 13 13:22 Xorg.1.log
-rw-r--r--  1 root yashka           43K Dec 13 08:41 Xorg.1.log.old
-rw-r--r--  1 root yashka           45K Dec 13 12:14 Xorg.2.log
-rw-r--r--  1 root yashka           40K Dec 13 08:35 Xorg.2.log.old
-rw-r--r--  1 root yashka           40K Dec 13 12:14 Xorg.3.log
-rw-r--r--  1 root yashka           40K Dec 13 08:45 Xorg.3.log.old
...

part of the journalctl short version.

Also the Xorg.0.log

I disabled the gdm. Now starting the gnome with

$ startx

while the ~/.xinitrc is

exec               ghome-ssesion

So when it crashes it is returning to the bash promt. If started

$ startx > stdout.txt 2> stderr.txt

then the stderr.txt is

$ cat stderr.txt


This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.16.2.901 (1.16.3 RC 1)
Release Date: 2014-12-09
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.17.2-1-ARCH x86_64 
Current Operating System: Linux ghost 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014 x86_64
Kernel command line: initrd=\initramfs-linux.img root=/dev/sda2 rw
Build Date: 10 December 2014  02:34:24PM
 
Current version of pixman: 0.32.6
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Dec 14 02:12:16 2014
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
(EE) 
(EE) Backtrace:
(EE) 0: /usr/bin/Xorg.bin (xorg_backtrace+0x56) [0x5942e6]
(EE) 1: /usr/bin/Xorg.bin (0x400000+0x198439) [0x598439]
(EE) 2: /usr/lib/libc.so.6 (0x7f564606e000+0x33b20) [0x7f56460a1b20]
(EE) 
(EE) Segmentation fault at address 0x0
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
(EE) 
(II) AIGLX: Suspending AIGLX clients for VT switch
(EE) Server terminated with error (1). Closing log file.
xinit: connection to X server lost

here is the /var/log/Xorg.1.log Xorg.1.log

Last edited by Yashka (2014-12-14 00:23:11)


You do not need to leave your room. Remain sitting at your table and listen.
Do not even listen, simply wait, be quiet, still and solitary.
The world will freely offer itself to you to be unmasked, it has no choice, it will roll in ecstasy at your feet.
                   Franz Kafka

Offline

#6 2014-12-15 18:44:39

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED] X Segmentation fault

So, X has a segmentation fault. But why? What video driver do you have installed (proprietary or open source?) and does it actually support your video card?

What do you do to crash your X session? Is there a pattern to the crashes? Does this also happen when using a different desktop environment (or wm)?

(sorry, could not make more of the logs)

Offline

#7 2014-12-16 09:09:07

Yashka
Member
From: Israel
Registered: 2013-03-26
Posts: 240

Re: [SOLVED] X Segmentation fault

runical wrote:

So, X has a segmentation fault. But why? What video driver do you have installed (proprietary or open source?) and does it actually support your video card?

I have (unfortionly) to gpus, ati and intel - hybrid graphics. Both of the drivers are free

$ pacman -Q | grep -E "xf86-video-ati|xf86-video-intel"
xf86-video-ati 1:7.5.0-1
xf86-video-intel 2.99.916-3

In privious installetions of Arch this segmentation fault never happened, although the drivers were the same. I followed this wiki Hybrid graphics but it didn't help.

runical wrote:

What do you do to crash your X session? Is there a pattern to the crashes?

I start emacs (or the other software that I mensioned before) regulary, then it starts and apers for less then a second (the welcome buffer) and then come the crash.

runical wrote:

Does this also happen when using a different desktop environment (or wm)?

Yes, after installing Lxde same crashes with the same software. Not a Gnomes fault at all.



Edit: Should I start a new thread with title - "X segmentation fault" or continuing this one?

Last edited by Yashka (2014-12-16 09:12:14)


You do not need to leave your room. Remain sitting at your table and listen.
Do not even listen, simply wait, be quiet, still and solitary.
The world will freely offer itself to you to be unmasked, it has no choice, it will roll in ecstasy at your feet.
                   Franz Kafka

Offline

#8 2014-12-16 10:43:07

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED] X Segmentation fault

Yashka wrote:

Edit: Should I start a new thread with title - "X segmentation fault" or continuing this one?

Just rename the thread (edit the first post) and search a bit for more information on the forum.

How do you manage the GPUs? Do you let the driver handle everything or do you force one of the GPUs off?

I'm going to think about this today, but I'm currently in the dark.

Offline

#9 2014-12-16 20:49:47

Yashka
Member
From: Israel
Registered: 2013-03-26
Posts: 240

Re: [SOLVED] X Segmentation fault

runical wrote:

How do you manage the GPUs? Do you let the driver handle everything or do you force one of the GPUs off?

I do not manage the GPUs at all. I don't even know how to turn the radeon GPU on

# cat /sys/kernel/debug/vgaswitcheroo/switch 
0:DIS: :DynOff:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0

The method from this wiki Manual method

# echo ON > /sys/kernel/debug/vgaswitcheroo/switch

isn't working. The discrete GPU, radeon, stays OFF.
Back to the crashes, after reading this post #8 I checked the directories

$ ls -l /usr/share/X11/xorg.conf.d/
total 16
-rw-r--r-- 1 root root 1099 Dec 10 16:35 10-evdev.conf
-rw-r--r-- 1 root root 1350 Dec 10 16:35 10-quirks.conf
-rw-r--r-- 1 root root 1849 Sep 20 14:54 50-synaptics.conf
-rw-r--r-- 1 root root   98 Dec 10 16:35 nvidia-drm-outputclass.conf

and

$ls -l /etc/X11/xorg.conf.d/
total 4
-rw-r--r-- 1 root root 267 Dec 12 14:08 00-keyboard.conf

and find out  that there are no configuration files for the ati and intel drivers, but for some reason there is a nvidia-drm-outputclass.conf in /usr/share/X11/xorg.conf.d/. If that is what causes the crashes, how do I create this config files?
I found this bug report [xf86-video-ati] X.org segfaults when launching Emacs with hybrid ATI/Intel GPU and did what it said

A workaround is to add modprobe.blacklist=radeon to the kernel boot line, making Emacs run fine.

The problem is fixed now. Emacs and the other ones are working fine.

runical wrote:

I'm going to think about this today, but I'm currently in the dark.

Thank you very much for you time and help smile.
Adding solved

Last edited by Yashka (2014-12-17 04:07:59)


You do not need to leave your room. Remain sitting at your table and listen.
Do not even listen, simply wait, be quiet, still and solitary.
The world will freely offer itself to you to be unmasked, it has no choice, it will roll in ecstasy at your feet.
                   Franz Kafka

Offline

Board footer

Powered by FluxBB