Bug 750309

Summary: Xorg segfaulting for the i915 driver in certain conditions.
Product: [openSUSE] openSUSE 12.2 Reporter: Forgotten User sM9JzehKpy <forgotten_sM9JzehKpy>
Component: X.OrgAssignee: E-mail List <xorg-maintainer-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Critical    
Priority: P5 - None CC: alexandre, jslaby, nettezzaumanaa, seife, toganm, vuntz
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Xorg log

Description Forgotten User sM9JzehKpy 2012-03-03 18:57:34 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.23 (KHTML, like Gecko) Chrome/19.0.1052.0 Safari/535.23 SUSE/19.0.1052.0

The issue was also reported on the Factory-ML. But since 1 week (Last working situation was on Saturday 25 February), I have a segfault in the Xserver when certain actions are executed. 

The backtrace (found in Xorg.0.log.old) is : 


Backtrace:
[   213.517] 0: /usr/bin/Xorg (xorg_backtrace+0x26) [0x462386]
[   213.518] 1: /usr/bin/Xorg (0x400000+0x66b89) [0x466b89]
[   213.518] 2: /lib64/libpthread.so.0 (0x7f6e28dbd000+0xf270) [0x7f6e28dcc270]
[   213.518] 3: /lib64/libc.so.6 (0x7f6e27c4e000+0x126070) [0x7f6e27d74070]
[   213.518] 4: /usr/lib64/xorg/modules/drivers/intel_drv.so
(0x7f6e261f4000+0x353ee) [0x7f6e262293ee]
[   213.518] 5: /usr/lib64/xorg/modules/drivers/intel_drv.so
(0x7f6e261f4000+0x6a59f) [0x7f6e2625e59f]
[   213.518] 6: /usr/lib64/xorg/modules/drivers/intel_drv.so
(0x7f6e261f4000+0x59df3) [0x7f6e2624ddf3]
[   213.518] 7: /usr/lib64/xorg/modules/drivers/intel_drv.so
(0x7f6e261f4000+0x5e4a0) [0x7f6e262524a0]
[   213.518] 8: /usr/bin/Xorg (0x400000+0xdeb46) [0x4deb46]
[   213.518] 9: /usr/bin/Xorg (0x400000+0xaaa88) [0x4aaa88]
[   213.518] 10: /usr/bin/Xorg (0x400000+0x166f4d) [0x566f4d]
[   213.518] 11: /usr/bin/Xorg (BlockHandler+0x4a) [0x43704a]
[   213.518] 12: /usr/bin/Xorg (WaitForSomething+0x11d) [0x45fd8d]
[   213.518] 13: /usr/bin/Xorg (0x400000+0x33052) [0x433052]
[   213.518] 14: /usr/bin/Xorg (0x400000+0x272ee) [0x4272ee]
[   213.518] 15: /lib64/libc.so.6 (__libc_start_main+0xed) [0x7f6e27c6f3bd]
[   213.518] 16: /usr/bin/Xorg (0x400000+0x275dd) [0x4275dd]
[   213.518] Segmentation fault at address 0x308
[   213.518]
Fatal server error:
[   213.518] Caught signal 11 (Segmentation fault). Server aborting


Actions that could cause this behavior include : 

1) Closing a konsole terminal window (it also fails with gnome-terminal)
2) When using KDM, the menu and session options are causing the segfault as soon as they are clicked. (Gnome's GDM is working)

I have already tried several things including using the packages from Xorg:X11, but exactly the same behavior. As that the segfault also occurs with KDM, this segfault can not be caused by using the KDE Desktop Effects. 

I have checked with several people, but it seems to be effecting only the i915 driver. 

Reproducible: Always

Steps to Reproduce:
1. Use an Intel graphics card that utilizes the i915 driver
2. Boot with the latest factory and use KDM as Displaymanager
3. Click on Menu or Session within KDM
Actual Results:  
Xserver crashes in the background and KDM is restarted 

Expected Results:  
Xserver behaves correctly without a segfault.
Comment 1 Togan Muftuoglu 2012-03-03 19:13:52 UTC
I have the same problem and even used with lxdm kde doesn't start just loops back to lxdm
Comment 2 Forgotten User sM9JzehKpy 2012-03-04 09:46:38 UTC
Additional information based on some feedback in the factory-ml. The above results were on a system running Factory, but with the 3.3-rc5 kernel from Kernel:HEAD. My system is running 64bit.
Comment 3 Vincent Untz 2012-03-04 11:24:00 UTC
For reference, I filed bug 749608 a few days ago; different trace, but likely the same issue in the end.
Comment 4 Alexandre Rogoski 2012-03-09 01:02:39 UTC
But stills remains 3.3-rc6.
Comment 5 Forgotten User sM9JzehKpy 2012-03-14 12:01:46 UTC
Doing some further research on this bug and it seems that I have found the root cause. When building the driver with the standard buildflags, then the Xorg server behaves normally and everything works as expected. 

Checking the change log of the xorg-x11-driver-video package indicates the following: 

Sat Feb 25 13:56:15 UTC 2012 - sndirsch@suse.com

- build intel driver with SandyBridge's New Acceleration (SNA)


Disabling the SandyBridge's New Acceleration delivers for me a working Xserver. Checking the internet on this new Acceleration, then it seems there are quite some problems with it and that it is not that mature yet. 

As I am not sure if the latest intel graphics cards needs this specific acceleration or not, I would suggest to either create a new package for an intel driver without SNA or to disable the SNA in the main driver package for now.
Comment 6 Stefan Dirsch 2012-03-14 16:10:59 UTC
*** Bug 749608 has been marked as a duplicate of this bug. ***
Comment 7 Stefan Dirsch 2012-03-14 16:14:00 UTC
Back to UXA.
Comment 8 Stefan Dirsch 2012-03-15 08:08:24 UTC
*** Bug 752377 has been marked as a duplicate of this bug. ***
Comment 9 Stefan Seyfried 2012-03-15 08:17:07 UTC
is there a way to let the X server create a coredump instead of this almost always totally useless backtrace?
Comment 10 Jiri Slaby 2012-03-20 20:38:26 UTC
I created a bug upstream, independent on this report.
https://bugs.freedesktop.org/show_bug.cgi?id=47597

Will try to add a better backtrace there.
Comment 11 Daniel Pecka 2012-06-05 07:34:24 UTC
reopening ..

i'll try to supply a coredump. i915 + Xorg is pretty unstable on sandy bridge gen2.. However Xorg doesn't crash it rather freezes over and over at certain conditions ..

# lspci 
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1d.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 6 Series Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series Chipset Family SMBus Controller (rev 04)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 (rev 34)
0d:00.0 System peripheral: Ricoh Co Ltd Device e823 (rev 08)
0d:00.3 FireWire (IEEE 1394): Ricoh Co Ltd FireWire Host Controller (rev 04)

typical situation when it freezes is when playing some video on fullscreen.

regards, daniel
Comment 12 Jiri Slaby 2012-06-05 07:57:35 UTC
(In reply to comment #9)
> is there a way to let the X server create a coredump instead of this almost
> always totally useless backtrace?

With KDM, there is DISPLAYMANAGER_KDM_LOCALARGS in
/etc/sysconfig/displaymanager. Setting it to whatever X flags passes them to X. I.e. add there -core.
Comment 13 Jiri Slaby 2012-06-05 07:59:06 UTC
(In reply to comment #11)
> i'll try to supply a coredump. i915 + Xorg is pretty unstable on sandy bridge
> gen2.. However Xorg doesn't crash it rather freezes over and over at certain
> conditions ..

This is a different issue. Create your own bug and don't taint fixed ones. This was about SNA crashing.
Comment 14 Stefan Dirsch 2012-06-05 10:16:55 UTC
(In reply to comment #13)
> (In reply to comment #11)
> > i'll try to supply a coredump. i915 + Xorg is pretty unstable on sandy bridge
> > gen2.. However Xorg doesn't crash it rather freezes over and over at certain
> > conditions ..
> 
> This is a different issue. Create your own bug and don't taint fixed ones. This
> was about SNA crashing.

Right, we're back to UXA anyway.
Comment 15 Max Breev 2012-12-30 20:40:11 UTC
Created attachment 518512 [details]
Xorg log
Comment 16 Max Breev 2012-12-30 20:45:11 UTC
Sorry, seems like a wrong bugreport. Will create new one.