Bug 73224

Summary: Xorg 1.15.0 segfaults on DPMS standby using Intel+SNA
Product: xorg Reporter: Marti Raudsepp <marti>
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: RESOLVED INVALID QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: medium CC: andyrtr
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg log file with crash none

Description Marti Raudsepp 2014-01-02 13:47:54 UTC
Created attachment 91417 [details]
Xorg log file with crash

Using up-to-date Arch Linux (testing), whenever my screens go into suspend, it causes Xorg to crash with segfault. The bug is triggered immediately when running 'xset dpms force standby'.

This also affects at least 2 other people, see the Arch Linux bug tracker: https://bugs.archlinux.org/task/38335

I'm using xorg 1.15.0, xf86-video-intel 2.21.15, kernel 3.12.6, using Intel HD 4000 graphics on i5-3570K. According to the above bug report, xf86-video-intel 2.99.907 also has this problem.

lspci:
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)

Setting AccelMethod to uxa in Xorg configuration works around this problem: https://wiki.archlinux.org/index.php/Intel_Graphics#Choose_acceleration_method

Until now I have been using Xorg 1.14.5 with SNA enabled, which does not have this problem.

Excerpt from Xorg.0.log:
[ 17043.685] (EE) 
[ 17043.685] (EE) Backtrace:
[ 17043.685] (EE) 0: /usr/bin/Xorg (xorg_backtrace+0x48) [0x5834c8]
[ 17043.685] (EE) 1: /usr/bin/Xorg (0x400000+0x1871a9) [0x5871a9]
[ 17043.686] (EE) 2: /usr/lib/libpthread.so.0 (0x7fd20cdf2000+0xf870) [0x7fd20ce01870]
[ 17043.686] (EE) 3: /usr/bin/Xorg (DamageUnregister+0x1e) [0x50de2e]
[ 17043.686] (EE) 4: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fd208d78000+0x55d46) [0x7fd208dcdd46]
[ 17043.686] (EE) 5: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fd208d78000+0x5b1bc) [0x7fd208dd31bc]
[ 17043.686] (EE) 6: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fd208d78000+0x5c550) [0x7fd208dd4550]
[ 17043.686] (EE) 7: /usr/bin/Xorg (0x400000+0xa7197) [0x4a7197]
[ 17043.686] (EE) 8: /usr/bin/Xorg (0x400000+0xc4306) [0x4c4306]
[ 17043.686] (EE) 9: /usr/bin/Xorg (0x400000+0x107ef4) [0x507ef4]
[ 17043.686] (EE) 10: /usr/bin/Xorg (0x400000+0x109743) [0x509743]
[ 17043.686] (EE) 11: /usr/bin/Xorg (0x400000+0x39917) [0x439917]
[ 17043.686] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0xf5) [0x7fd20bc68b05]
[ 17043.686] (EE) 13: /usr/bin/Xorg (0x400000+0x24dae) [0x424dae]
[ 17043.686] (EE) 
[ 17043.686] (EE) Segmentation fault at address 0x1000000010
[ 17043.686] (EE) 
Fatal server error:
[ 17043.686] (EE) Caught signal 11 (Segmentation fault). Server aborting


Full log attached.
Comment 1 Marti Raudsepp 2014-01-02 13:58:39 UTC
The stack trace provided in Arch bug report has some more symbols decoded than mine:

0: /usr/bin/X (xorg_backtrace+0x48) [0x5834c8]
1: /usr/bin/X (0x400000+0x1871a9) [0x5871a9]
2: /usr/lib/libpthread.so.0 (0x7f4bf4676000+0xf870) [0x7f4bf4685870]
3: /usr/bin/X (DamageUnregister+0x1e) [0x50de2e]
4: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7f4bf05fc000+0x55d46) [0x7f4bf0651d46]
5: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7f4bf05fc000+0x55e3c) [0x7f4bf0651e3c]
6: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7f4bf05fc000+0x58250) [0x7f4bf0654250]
7: /usr/bin/X (xf86DPMSSet+0x6f) [0x4a912f]
8: /usr/bin/X (xf86SaveScreen+0x2a) [0x4a91ea]
9: /usr/bin/X (dixSaveScreens+0x22d) [0x46431d]
10: /usr/bin/X (DPMSSet+0xef) [0x472b3f]
11: /usr/bin/X (0x400000+0x1805d4) [0x5805d4]
12: /usr/bin/X (0x400000+0x1807fb) [0x5807fb]
13: /usr/bin/X (WaitForSomething+0x57b) [0x580e2b]
14: /usr/bin/X (0x400000+0x35751) [0x435751]
15: /usr/bin/X (0x400000+0x3980a) [0x43980a]
16: /usr/lib/libc.so.6 (__libc_start_main+0xf5) [0x7f4bf34ecb05]
17: /usr/bin/X (0x400000+0x24dae) [0x424dae]
Comment 2 Chris Wilson 2014-01-02 14:24:47 UTC
Reverting to xorg-xserver-1.14 will fix that.
Comment 3 Chris Wilson 2014-01-02 14:25:44 UTC
But please attach a gdb "bt full" if possible.
Comment 4 Chris Wilson 2014-01-02 15:08:49 UTC
xf86-video-intel-2.21.15 is incompatible with xorg-1.15. Can you please test with an upstream version?
Comment 5 Chris Wilson 2014-01-02 20:54:22 UTC
[   620.845] 
X.Org X Server 1.15.0
Release Date: 2013-12-27
[   620.845] X Protocol Version 11, Revision 0
...
[   620.967] (II) Loading /opt/xorg/lib/xorg/modules/drivers/intel_drv.so
[   620.968] (II) Module intel: vendor="X.Org Foundation"
[   620.968]    compiled for 1.15.0, module version = 2.99.907
[   620.968]    Module class: X.Org Video Driver
[   620.968]    ABI class: X.Org Video Driver, version 15.0

works for me. I strongly suggest you check your local package and try upstream instead.
Comment 6 Marti Raudsepp 2014-01-02 21:40:03 UTC
Thanks a lot for the quick response!

(In reply to comment #4)
> xf86-video-intel-2.21.15 is incompatible with xorg-1.15.

Well that would explain it. Arch Linux has updated the testing package to version 2.99.907 and I can no longer reproduce this issue. Just to be sure, I downgraded & upgraded 3 times and every time the old version would crash, new version didn't any more.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.