You are not logged in.

#1 2018-01-04 02:58:22

Soulboy
Member
Registered: 2013-02-24
Posts: 8

[SOLVED] Xorg segmentation fault - Intel graphics card

*Disclaimer* I've never used linux a day in my life, always used windows so please bear with me if I don't understand what you're saying, thanks!

https://bbs.archlinux.org/viewtopic.php?id=230607 I found this thread where the person has a similar issue and they solved it by adding a kernel parameter intel_iommu=off, I use systemd boot am I understanding it correctly from the wiki that to add a kernel parameter I simply add that line to arch.conf for bootup? (That's what I tried and it didn't work for me if it is the correct way)
I also have intel ucode installed

[   615.352] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[   615.353] X Protocol Version 11, Revision 0
[   615.353] Build Operating System: Linux 4.9.71-1-lts x86_64 
[   615.353] Current Operating System: Linux adi 4.14.10-1-ARCH #1 SMP PREEMPT Fri Dec 29 20:17:35 UTC 2017 x86_64
[   615.353] Kernel command line: initrd=\Intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=6dd30149-8662-cd41-b806-9e235f42a424 rw nvidia-drm.modeset=1
[   615.353] Build Date: 25 December 2017  02:02:38PM
[   615.354]  
[   615.354] Current version of pixman: 0.34.0
[   615.354] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   615.354] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   615.355] (==) Log file: "/home/adi/.local/share/xorg/Xorg.0.log", Time: Tue Jan  2 23:27:46 2018
[   615.355] (II) Loader magic: 0x55a29646dd60
[   615.355] (II) Module ABI versions:
[   615.355] 	X.Org ANSI C Emulation: 0.4
[   615.355] 	X.Org Video Driver: 23.0
[   615.355] 	X.Org XInput driver : 24.1
[   615.355] 	X.Org Server Extension : 10.0
[   615.357] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   615.357] (II) xfree86: Adding drm device (/dev/dri/card0)
[   615.357] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[   615.358] (EE) 
[   615.358] (EE) Backtrace:
[   615.358] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x55a2961ea169]
[   615.358] (EE) 1: /usr/lib/libpthread.so.0 (funlockfile+0x50) [0x7fa0df495def]
[   615.358] (EE) 2: /usr/lib/xorg-server/Xorg (xf86PlatformMatchDriver+0x2b4) [0x55a2960e3684]
[   615.358] (EE) 3: /usr/lib/xorg-server/Xorg (xf86BusProbe+0x9) [0x55a2960bb4f9]
[   615.358] (EE) 4: /usr/lib/xorg-server/Xorg (InitOutput+0x7ff) [0x55a2960ca19f]
[   615.358] (EE) 5: /usr/lib/xorg-server/Xorg (InitFonts+0x213) [0x55a2960880b3]
[   615.358] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7fa0df0ecf4a]
[   615.358] (EE) 7: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x55a296071f2a]
[   615.358] (EE) 
[   615.358] (EE) Segmentation fault at address 0x50
[   615.358] (EE) 
Fatal server error:
[   615.358] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   615.358] (EE) 
[   615.358] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   615.358] (EE) Please also check the log file at "/home/adi/.local/share/xorg/Xorg.0.log" for additional information.
[   615.358] (EE) 
[   615.411] (EE) Server terminated with error (1). Closing log file.

Here's the output of lspci | grep VGA

00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)

Side note: I'm trying to install it on the Asus rog gl553 which hosts intel integrated graphics and a nvidia gtx 1050 setup
Thank you for all your help!

Edit: I forgot to mention, when I run startx it just says, xinit giving up and that it failed to connect to the server

Last edited by Soulboy (2018-01-05 23:50:17)

Offline

#2 2018-01-04 14:40:05

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

How did you setup X? (please post any relevant configuration - e.g. what's inside /etc/X11/xorg.conf.d - within code tags).

[   615.353] Kernel command line: initrd=\Intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=6dd30149-8662-cd41-b806-9e235f42a424 rw nvidia-drm.modeset=1

Most importantly I'm not seeing the "intel_iommu=off" parameter, please post what you did step by step to add it to the kernel cmd line (posting your arch.conf would be better still).

P.S. You may want to have a good read at https://wiki.archlinux.org/index.php/Bumblebee, not sure if related but you'll find it useful once you're done with this.

Offline

#3 2018-01-04 15:52:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,849

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

Also that initrd=Intel-ucode.img is definitely incorrect, it should be lowercase. So you likely aren't loading the  microcode update and are running into the related crash with the microcode update.

Offline

#4 2018-01-04 18:05:04

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

@lo1
If I'm not mistaken intel_iommu is off by default, you have to turn it on explicitly and at least for some generations of CPUs you want to turn the iommu off for the integrated GPU, otherwise there may be a power consumption penalty.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2018-01-04 19:50:28

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

R00KIE wrote:

@lo1
If I'm not mistaken intel_iommu is off by default, you have to turn it on explicitly and at least for some generations of CPUs you want to turn the iommu off for the integrated GPU, otherwise there may be a power consumption penalty.

Yup, and the OP is running Linux LTS 4.9 (seen from the Xorg log), (misread, sorry, he's actually running the latest) which didn't include the changes yet, but thanks anyway for the catch-up wink

P.S. even if this was not relevant, my point was making the OP note that something went wrong when trying to set a kernel parameter (most likely, it has been set in the wrong place...)

Last edited by lo1 (2018-01-04 19:53:53)

Offline

#6 2018-01-04 20:21:23

Soulboy
Member
Registered: 2013-02-24
Posts: 8

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

As per request, I haven't really configured xorg that much other than add one file in xorg.conf.d which is the 20-intel.conf and it contains the following:

Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option 	 "AccelMethod"  "uxa"
EndSection

The option line was just a line I added after browsing for solutions on my issue.

Here is my arch.conf file

title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
intel_iommu = off
initrd /initramfs-linux.img
options root=PARTUUID=6dd30149-8662-cd41-b806-9e235f42a424 rw nvidia-drm.modeset=1

I have a feeling I'm not setting intel_iommu correctly here.

Here's some extra information on the VGA and 3D controller

00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

And this is the list of all xf86 related drivers I have installed

local/lib32-libxxf86vm 1.1.4-1
    X11 XFree86 video mode extension library (32-bit)
local/libxxf86dga 1.1.4-1
    X11 Direct Graphics Access extension library
local/libxxf86vm 1.1.4-1
    X11 XFree86 video mode extension library
local/xf86-input-libinput 0.26.0-1 (xorg-drivers)
    Generic input driver for the X.Org server based on libinput
local/xf86-input-mouse 1.9.2-3 (xorg-drivers)
    X.org mouse input driver
local/xf86-input-synaptics 1.9.0-1 (xorg-drivers)
    Synaptics driver for notebook touchpads
local/xf86-video-vesa 2.3.4-4 (xorg-drivers xorg)
    X.org vesa video driver
local/xf86dgaproto 2.1-3
    X11 Direct Graphics Access extension wire protocol
local/xf86driproto 2.1.1-3
    X11 DRI extension wire protocol
local/xf86vidmodeproto 2.3.1-3
    X11 Video Mode extension wire protocol

I removed nouveau and fbdev to see if it would make a difference, unfortunately it did not.

I fixed the issue with the capital in Intel_ucode, that didn't fix it either sadly.

On a side note: I tried deleting the log file in ~/.share/local/xorg/Xorg.0.log and ran startx again, it didn't generate a new log file for me only displayed the following messages:

startx

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Thank you all for your replies and help so far.

Offline

#7 2018-01-04 20:25:42

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

Soulboy wrote:

Here is my arch.conf file

title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
intel_iommu = off
initrd /initramfs-linux.img
options root=PARTUUID=6dd30149-8662-cd41-b806-9e235f42a424 rw nvidia-drm.modeset=1

I have a feeling I'm not setting intel_iommu correctly here.

Your feeling is correct, you're supposed to add intel_iommu=off to the options line...

title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=PARTUUID=6dd30149-8662-cd41-b806-9e235f42a424 rw nvidia-drm.modeset=1 intel_iommu=off

But as stated above, this is the default option so is unneeded.

Last edited by Slithery (2018-01-04 20:28:01)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2018-01-04 20:29:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

You have a hybrid graphics setup: https://wiki.archlinux.org/index.php/NVIDIA_Optimus

How did you install Arch?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2018-01-04 20:36:39

Soulboy
Member
Registered: 2013-02-24
Posts: 8

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

I have only installed nvidia drivers through pacman -S nvidia, I assumed only my intel graphics card was being loaded. Apart from that I just followed the installation guide on the wiki all the way down.

Edit: I followed the guide on the wiki and created a ~/.xinitrc file which didn't exist for some reason and added the required nvidia stuff in there for the optimus system.

Last edited by Soulboy (2018-01-04 20:47:09)

Offline

#10 2018-01-04 20:41:00

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

In addition to all the above, I'm not seeing xf86-video-intel along with the packages you posted.

Offline

#11 2018-01-04 20:47:45

Soulboy
Member
Registered: 2013-02-24
Posts: 8

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

lo1 wrote:

In addition to all the above, I'm not seeing xf86-video-intel along with the packages you posted.

The wiki recommends not to install xf86-video-intel driver, I'll try installing it and running startx to see if it helps

Edit: xf86-video-intel couldn't solve it unfortunately.

Last edited by Soulboy (2018-01-04 20:54:17)

Offline

#12 2018-01-04 20:55:23

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

Soulboy wrote:

The wiki recommends not to install xf86-video-intel driver

That's right, but you're left with no video drivers and Xorg relying on "intel" driver to start, according to 20-intel.conf, so it couldn't start anyway.

Do not ignore the fact that you're running a dual graphics system (I'm not sure if this is going to be fixed by just adding the necessary drivers) so please read the wiki page that jasonwryan posted above.

Offline

#13 2018-01-04 21:05:20

seth
Member
Registered: 2012-09-03
Posts: 52,058

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

Please paste /home/adi/.local/share/xorg/Xorg.0.log

Offline

#14 2018-01-04 21:57:43

Soulboy
Member
Registered: 2013-02-24
Posts: 8

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

seth wrote:

Please paste /home/adi/.local/share/xorg/Xorg.0.log

Here's the newest one I could get it to generate, kernel parameter seems to be set properly now.

[   812.341] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[   812.342] X Protocol Version 11, Revision 0
[   812.342] Build Operating System: Linux 4.9.71-1-lts x86_64 
[   812.342] Current Operating System: Linux adi 4.14.11-1-ARCH #1 SMP PREEMPT Wed Jan 3 07:02:42 UTC 2018 x86_64
[   812.342] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=6dd30149-8662-cd41-b806-9e235f42a424 rw nvidia-drm.modeset=1 intel_iommu=off
[   812.343] Build Date: 25 December 2017  02:02:38PM
[   812.343]  
[   812.343] Current version of pixman: 0.34.0
[   812.344] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   812.344] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   812.345] (==) Log file: "/home/adi/.local/share/xorg/Xorg.0.log", Time: Thu Jan  4 13:10:21 2018
[   812.345] (II) Loader magic: 0x5579ae8a2d60
[   812.345] (II) Module ABI versions:
[   812.345] 	X.Org ANSI C Emulation: 0.4
[   812.345] 	X.Org Video Driver: 23.0
[   812.345] 	X.Org XInput driver : 24.1
[   812.345] 	X.Org Server Extension : 10.0
[   812.347] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   812.347] (II) xfree86: Adding drm device (/dev/dri/card0)
[   812.347] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[   812.348] (EE) 
[   812.348] (EE) Backtrace:
[   812.348] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x5579ae61f169]
[   812.348] (EE) 1: /usr/lib/libpthread.so.0 (funlockfile+0x50) [0x7f41942c4def]
[   812.348] (EE) 2: /usr/lib/xorg-server/Xorg (xf86PlatformMatchDriver+0x2b4) [0x5579ae518684]
[   812.348] (EE) 3: /usr/lib/xorg-server/Xorg (xf86BusProbe+0x9) [0x5579ae4f04f9]
[   812.348] (EE) 4: /usr/lib/xorg-server/Xorg (InitOutput+0x7ff) [0x5579ae4ff19f]
[   812.348] (EE) 5: /usr/lib/xorg-server/Xorg (InitFonts+0x213) [0x5579ae4bd0b3]
[   812.348] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7f4193f1bf4a]
[   812.348] (EE) 7: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x5579ae4a6f2a]
[   812.348] (EE) 
[   812.348] (EE) Segmentation fault at address 0x50
[   812.348] (EE) 
Fatal server error:
[   812.348] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   812.348] (EE) 
[   812.348] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   812.348] (EE) Please also check the log file at "/home/adi/.local/share/xorg/Xorg.0.log" for additional information.
[   812.348] (EE) 
[   812.395] (EE) Server terminated with error (1). Closing log file.

Offline

#15 2018-01-04 22:03:50

seth
Member
Registered: 2012-09-03
Posts: 52,058

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

THis looks more like the direct output than the log file. The log file includes far more relevant information (notably what config files and modules are loaded etcetc.)

Offline

#16 2018-01-05 03:34:22

Soulboy
Member
Registered: 2013-02-24
Posts: 8

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

seth wrote:

THis looks more like the direct output than the log file. The log file includes far more relevant information (notably what config files and modules are loaded etcetc.)

Is there a journalctl command I can execute for this? This is the only log file that's being generated I checked both ~/.local/share/Xorg/Xorg.0.log and under /var/log and this is the only one I could find.
Thank you to all of you for your help thus far.

Edit: I managed to make get a more comprehensive log file for startx using startx -- -verbose 6 -logverbose 6 &> ~/x.log

It produced the following log file: https://pastebin.com/7azMVvFL
It's peculiar in that it has an (EE) line

 
(EE) Screen 1 deleted because of no matching config section.
(II) UnloadModule: "nvidia"
(II) UnloadSubModule: "wfb"
(II) UnloadSubModule: "fb"

EDIT: I have no idea how or why this happened but I just installed plasma and added exec startkde to .xinit and .xinitrc
startx still fails to load kde but when I run startx -- -verbose 6 -logverbose 6 &> ~/x.log my kde desktop environment loads up.

Last edited by Soulboy (2018-01-05 05:07:01)

Offline

#17 2018-01-05 10:25:14

seth
Member
Registered: 2012-09-03
Posts: 52,058

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

Why is there a "/etc/X11/xorg.conf" and what does it look like?
The xorg "log" you pasted constitutes a successful X session (the nvidia module is unloaded because you have no nvidia VGA device, it's a 3D accelerator - read the optimus link jason posted)

For some weird reason it contains no timestamps (it's still the direct output and not the actual log file, is it?) but it looks like you're trying to set the output provider and then nothing else happens, so the server can close. This suggests a broken xinitrc (which you'll please paste next in addition to the xorg.conf file) what is somewhat supported by the KDE experiences (the xinitrc is likely still broken)

I'll be blunt on this: I don't think that you installed Arch yourself by following the wiki but you at least have to read and understand the wiki articles, esp. when dealing with low level methods like startx. Nothing, I repeat: NOTHING! is pre-fabbed or done for you. You *have* to really understand what you're doing. You said that you had no linux experience so far. Using Arch is still possible, but constitues a really steep learning curve in this case. Be prepared that this is going to be hard, frustrating at times - and that whenever you don't do it "right" and informed in the beginning, you'll be doing it several times.

Offline

#18 2018-01-05 18:22:31

Soulboy
Member
Registered: 2013-02-24
Posts: 8

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

I've read the optimus article several times I guess I'm just not understanding as much as I should be and I'll definitely look into it more.
As of this moment I currently have KDE working I'm actually posting this off my Arch setup now (I still believe startx is broken as I didn't do anything to change it, simply enabled sddm.service)

Here is the xorg.conf file just in case

Section "Module"
        Load "modesetting"
        Load "dri"
        Load "glx"
        Load "drm"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "1:0:0"
        Option "AllowEmptyInitialConfiguration"
EndSection

Here is my .xinitrc

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startkde

Again I'm sorry if I come off as ignorant, but I promise I am trying my best to learn, and thank you for helping me thus far!

Offline

#19 2018-01-05 18:25:42

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

Where did you get that ~/.xinitrc from?
It's nothing like the correct one covered in the wiki.

How did you install Arch?

Last edited by Slithery (2018-01-05 18:26:14)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#20 2018-01-05 18:33:29

Soulboy
Member
Registered: 2013-02-24
Posts: 8

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

slithery wrote:

Where did you get that ~/.xinitrc from?
It's nothing like the correct one covered in the wiki.

How did you install Arch?

I pulled that xinitrc from the nvidia optimus wiki, I didn't have an xinitrc originally I had to create one manually.

Edit: I believe this can be marked as solved now since kde is up and running

Last edited by Soulboy (2018-01-05 18:35:51)

Offline

#21 2018-01-05 18:37:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

slithery wrote:

How did you install Arch?

Also read the xinitrc wiki page to see what it should contain.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#22 2018-01-05 20:09:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,849

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

You should mark as [SOLVED] if you think that it is so, by editing the title in your first post. I don't know where you got all these loads from, the optimus page only explicitly mentions the modesetting load, but these won't have any negative impact anyway so whatever.

If you use SDDM anyway the .xinitrc is irrelevant, but yeah if you ever intend to boot with startx there's a missing block.

Offline

#23 2018-01-05 21:27:48

brianbaligad
Member
Registered: 2013-08-12
Posts: 22

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

I'm grappling with what seems to be the same issue, but I'm not seeing a specific solution here.  Should I open a new thread or start posting details here?

Offline

#24 2018-01-05 21:31:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,849

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

Always a new thread for your own problems. This one is technically solved and introducing a potentially unrelated issue into such a thread only leads to misunderstandings and a mess.

Offline

#25 2018-01-08 15:19:31

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] Xorg segmentation fault - Intel graphics card

And unless I am way off, if you're using SDDM, you're not using the .xinitrc at all.


Matt

"It is very difficult to educate the educated."

Offline

Board footer

Powered by FluxBB