You are not logged in.

#1 2016-01-30 20:08:42

Vyre
Member
Registered: 2011-06-18
Posts: 17

[SOLVED] Xorg segmentation fault, apparently involving intel drivers

I hope this is the appropriate subforum to post this.

I've been having an issue for a while now in which when I leave my laptop idle for a while I often come back to find I've been logged out and have lost all of my desktop state.  I use XFCE as my DE and have tried three different DMs yet all have experience the random logouts (currently I'm using xdm-archlinux).  Journalctl logs appears to not be informative, but I think I may have something in the Xorg log.  I'm hoping someone here can help me to interpret it and maybe point me in the right direction of a fix.  Maybe I just need to change display drivers?  If so, which are good alternatives?

Here's the relevant bit from my /var/log/Xorg.0.log.old

[ 29616.051] (EE) intel(0): [DRI2] DRI2SwapComplete: bad drawable
[ 29616.069] (EE)
[ 29616.069] (EE) Backtrace:
[ 29616.070] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x598499]
[ 29616.070] (EE) 1: /usr/lib/libc.so.6 (__restore_rt+0x0) [0x7f9f9857a67f]
[ 29616.070] (EE) 2: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0xf413f) [0x7f9f932dfaaf]
[ 29616.071] (EE) 3: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0xf6727) [0x7f9f932e4637]
[ 29616.071] (EE) 4: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x64e60) [0x7f9f931c1380]
[ 29616.071] (EE) 5: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x68b30) [0x7f9f931c8e20]
[ 29616.071] (EE) 6: /usr/lib/xorg-server/Xorg (WakeupHandler+0xaa) [0x43adca]
[ 29616.071] (EE) 7: /usr/lib/xorg-server/Xorg (WaitForSomething+0x1ef) [0x590caf]
[ 29616.072] (EE) 8: /usr/lib/xorg-server/Xorg (SendErrorToClient+0x10e) [0x43609e]
[ 29616.072] (EE) 9: /usr/lib/xorg-server/Xorg (remove_fs_handlers+0x453) [0x43a293]
[ 29616.072] (EE) 10: /usr/lib/libc.so.6 (__libc_start_main+0xf0) [0x7f9f98567610]
[ 29616.072] (EE) 11: /usr/lib/xorg-server/Xorg (_start+0x29) [0x4245c9]
[ 29616.073] (EE) 12: ? (?+0x29) [0x29]
[ 29616.073] (EE)
[ 29616.073] (EE) Segmentation fault at address 0x0
[ 29616.073] (EE)
Fatal server error:
[ 29616.073] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 29616.073] (EE)
[ 29616.073] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.
[ 29616.073] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 29616.073] (EE)
[ 29616.073] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 29616.465] (EE) Server terminated with error (1). Closing log file.

Here's the VGA part of lspci -v

00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09) (prog-if 00 [VGA controller])
    Subsystem: Lenovo Device 2226
    Flags: bus master, fast devsel, latency 0, IRQ 46
    Memory at f0000000 (64-bit, non-prefetchable) [size=16M]
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 3000 [size=64]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [d0] Power Management version 2
    Capabilities: [a4] PCI Advanced Features
    Kernel driver in use: i915
    Kernel modules: i915

Last edited by Vyre (2016-02-01 13:21:55)

Offline

#2 2016-01-31 08:59:17

Vain
Member
Registered: 2008-10-19
Posts: 179
Website

Re: [SOLVED] Xorg segmentation fault, apparently involving intel drivers

There appears to be a related bug report at Xorg:

https://bugs.freedesktop.org/show_bug.cgi?id=92505

The last comment says it has been fixed. Either you try to apply that patch manually or you wait until a new version of xf86-video-intel is available in Arch. Or try switching to UXA as your issue appears to be SNA related.

Offline

#3 2016-02-01 13:29:03

Vyre
Member
Registered: 2011-06-18
Posts: 17

Re: [SOLVED] Xorg segmentation fault, apparently involving intel drivers

Thanks so much Vain.  Indeed that Xorg bug seems to be what I'm experiencing.  I took your suggestion and switched to UXA, and for over 24 hours the problem hasn't reoccurred.  To be clear for any others stumbling across this post with the same problem, as root I created the file /etc/X11/xorg.conf.d/20-intel.conf containing:

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

Perhaps not needed, but I rebooted after creating this file to make sure the change took hold.  As mentioned, the problem has not reoccurred since.

Offline

#4 2016-03-02 14:36:00

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [SOLVED] Xorg segmentation fault, apparently involving intel drivers

Hello !

I got this problem as you and solved it by creating the file /etc/X11/xorg.conf.d/20-intel.conf containing :

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option "NoAccel" "True"
EndSection

I tryed out uxa and sna but i got the freez with both of them, that why i just disabled accel.

I solved this like 2 weeks ago, and today i got exactly the same problem :'(

The only think i have done it to update packages from pacman (there was an update of the intel driver as i remember).

Do you have any tip please ? Does it append to you too ?

Thanks !

Offline

#5 2016-03-07 16:57:01

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [SOLVED] Xorg segmentation fault, apparently involving intel drivers

I have some news, after trying some different configurations in /etc/X11/xorg.conf.d/20-intel.conf I downgraded the intel display driver to the previous version.
Now i have this error in logs when the freeze happen :

I still have the freezes ! XIO:  fatal IO error 1 (Opération non permise) on X server ":0.0"

I don't know why there is some french in it but the correct translation could be :

I still have the freezes ! XIO:  fatal IO error 1 (Operation not permitted) on X server ":0.0"

I don't know what to do, the freezes happen 2-3 times a day, and it's very very annoying.

Any idea ? Thx !

Offline

#6 2016-03-07 17:09:34

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: [SOLVED] Xorg segmentation fault, apparently involving intel drivers

Well, start by changing the topic title smile


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#7 2016-03-09 10:43:27

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [SOLVED] Xorg segmentation fault, apparently involving intel drivers

This is not my topic by the way.

I'm doing some tests, and i got also the same error due to pulse audio (the is a problem nest, but i'm using it for skype).
Then the downgrade and disabling graphical acceleration seems work for the main issue.

I will post some news for people who got the problem, because this thread is well ranked on google.

Offline

#8 2016-03-16 16:02:24

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [SOLVED] Xorg segmentation fault, apparently involving intel drivers

Hello i got some news.

I solved my problem finally by following this page : https://wiki.archlinux.org/index.php/intel_graphics

If you are using kernel 4.0.X or above on Baytrail architecture and frequently encounter complete system freezes (especially when watching video or using GFX intensivelly), you should try adding the following kernel option as a workaround, until this bug will be fixed permanently.

 intel_idle.max_cstate=1

I you want to know that you are concerned you can do the following commands :
Check Kernel version :

uname -r

Result for me :

4.4.1-2-ARCH

If it's 4.0.X or above then do the following :

grep "model name" /proc/cpuinfo | sort -u

Result for me :

model name	: Intel(R) Pentium(R) CPU  N3540  @ 2.16GHz

The model is N3540 here. You can check on google or directly by using Intel website : http://ark.intel.com/products/codename/ … Trail#@All
Then type ctrl + F to look for a pattern and type your cpu info (N3540 for me). If you find it, your freezes can be fixed by editing your /etc/default/grub :
Find this line :

 4 GRUB_CMDLINE_LINUX_DEFAULT="quiet"

And add at the end of the line intel_idle.max_cstate=1 like this :

4 GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_idle.max_cstate=1"

Apply changes by doing as root

grub-mkconfig -o /boot/grub/grub.cfg

Reboot and enjoy.


EDIT (2016-03-29) : After 2 weeks without any freez, i got an other one today. There is nothing really in logs... i don't get why that kind of problem isnt solved by intel or got any true issue somewhere. What people in this case doing ? All back to windows ?


EDIT2 (2016-07-13) : I'm still having some freezes rarely, but it still can happen.

Last edited by Purgator (2016-07-13 10:10:04)

Offline

Board footer

Powered by FluxBB