Bug 679595

Summary: [NV86] Xserver crashes on window resize
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: xorg-x11-drv-nouveauAssignee: Ben Skeggs <bskeggs>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: airlied, ajax, bskeggs, dkelson, dwmw2
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-26 13:54:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
rpm -qa
none
dmesg
none
Xorg.0.log
none
Xorg.0.log.old
none
Xorg.0.log.old none

Description Kamil Páral 2011-02-22 22:52:33 UTC
Description of problem:
Xserver restarts very often when I resize application windows. Most often this happens when I have several windows opened and I resize Firefox window. I am able to crash the server under a minute, just by resizing.

Version-Release number of selected component (if applicable):
nVidia Corporation Quadro NVS 140M [10de:0429] (rev a1) 
Smolt profile: http://www.smolts.org/client/show/pub_4c2e3764-287f-4e8f-a379-ebf666057e81
Using x86_64 LiveCD from http://fedoraproject.org/wiki/Test_Day:2011-02-22_Nouveau

xorg-x11-server-Xorg-1.9.99.1-4.20101201.fc15.x86_64
xorg-x11-xkb-utils-7.5-3.fc15.x86_64
xorg-x11-font-utils-7.5-6.fc15.x86_64
xorg-x11-xinit-1.0.9-20.fc15.x86_64
xorg-x11-server-common-1.9.99.1-4.20101201.fc15.x86_64
xorg-x11-utils-7.5-2.fc15.x86_64
xorg-x11-apps-7.6-2.fc15.x86_64
xorg-x11-server-utils-7.5-4.fc15.x86_64
xorg-x11-xauth-1.0.2-9.fc15.x86_64
xorg-x11-server-Xephyr-1.9.99.1-4.20101201.fc15.x86_64
xorg-x11-drivers-7.4-2.fc15.x86_64
xorg-x11-drv-nouveau-0.0.16-19.20110216git42c16ff.fc15.x86_64

How reproducible:
very easily for me

Steps to Reproduce:
1. open several windows and Firefox
2. resize the window (preferably Firefox)
3. Xserver restarts to GDM
  
Additional info:
After Xserver restart, screen is often corrupted - graphical glitches.

Comment 1 Kamil Páral 2011-02-22 22:53:47 UTC
Created attachment 480288 [details]
rpm -qa

Comment 2 Kamil Páral 2011-02-22 22:57:42 UTC
Created attachment 480289 [details]
dmesg

Comment 3 Kamil Páral 2011-02-22 22:58:43 UTC
Created attachment 480290 [details]
Xorg.0.log

Comment 4 Kamil Páral 2011-02-22 23:00:44 UTC
I am running from that LiveCD, so I don't have any custom xorg.conf. I have booted with "drm.debug=14 log_buf_len=16M" boot options as suggested at http://fedoraproject.org/wiki/How_to_debug_Xorg_problems. Do you need some further information?

Comment 5 Ben Skeggs 2011-02-22 23:02:32 UTC
Can you post /var/log/Xorg.0.log.old from after an X restart please :)

Comment 6 Kamil Páral 2011-02-22 23:16:47 UTC
Created attachment 480292 [details]
Xorg.0.log.old

Comment 7 Kamil Páral 2011-02-23 07:53:06 UTC
Here's the backtrace:

Backtrace:
[  2501.820] 0: /usr/bin/Xorg (xorg_backtrace+0x2f) [0x4a120f]
[  2501.820] 1: /usr/bin/Xorg (0x400000+0x61da6) [0x461da6]
[  2501.820] 2: /lib64/libc.so.6 (0x7f1ce4fd2000+0x36300) [0x7f1ce5008300]
[  2501.820] 3: /usr/lib64/xorg/modules/drivers/nouveau_drv.so (0x7f1ce31dd000+0xb36d) [0x7f1ce31e836d]
[  2501.821] 4: /usr/lib64/xorg/modules/extensions/libdri2.so (0x7f1ce341c000+0x1648) [0x7f1ce341d648]
[  2501.821] 5: /usr/lib64/xorg/modules/extensions/libdri2.so (0x7f1ce341c000+0x218d) [0x7f1ce341e18d]
[  2501.821] 6: /usr/lib64/xorg/modules/extensions/libdri2.so (DRI2GetBuffersWithFormat+0x14) [0x7f1ce341e4a4]
[  2501.821] 7: /usr/lib64/xorg/modules/extensions/libdri2.so (0x7f1ce341c000+0x3d1c) [0x7f1ce341fd1c]
[  2501.821] 8: /usr/bin/Xorg (0x400000+0x2e6a1) [0x42e6a1]
[  2501.821] 9: /usr/bin/Xorg (0x400000+0x2292a) [0x42292a]
[  2501.821] 10: /lib64/libc.so.6 (__libc_start_main+0xed) [0x7f1ce4ff32fd]
[  2501.821] 11: /usr/bin/Xorg (0x400000+0x22c11) [0x422c11]
[  2501.821] Segmentation fault at address (nil)
[  2501.821] 
Fatal server error:
[  2501.821] Caught signal 11 (Segmentation fault). Server aborting

Comment 8 James Laska 2011-03-03 13:19:35 UTC
Created attachment 482077 [details]
Xorg.0.log.old

I continue to hit the same crash reported in comment#7.  This hits randomly minutes after I start the desktop ... and has occurred about 6 times in the last 20 minutes.

With the following packages: 
 * xorg-x11-drv-nouveau-0.0.16-20.20110224gitbc5dec2.fc15.x86_64
 * kernel-2.6.38-0.rc6.git6.1.fc15.x86_64
 * xorg-x11-server-Xorg-1.9.99.1-6.20101201.fc15.x86_64

And the following nVidia adapter:
 * 02:00.0 VGA compatible controller: nVidia Corporation C79 [GeForce 9400M] (rev b1)

Comment 9 Ben Skeggs 2011-03-13 22:28:43 UTC
Can you update to http://koji.fedoraproject.org/koji/buildinfo?buildID=232757 (kernel-2.6.38-0.rc8.git0.2.fc15) and retry?

Also, xorg-x11-drv-nouveau-0.0.16-22 (should be in updates-testing) will prevent the X server crash in these situations, and the error will be propagated to the client instead.

Comment 10 Kamil Páral 2011-03-26 13:54:56 UTC
With nightly compose LiveCD containing

kernel-2.6.38-1.fc15.x86_64
xorg-x11-drv-nouveau-0.0.16-23.20110303git92db2bc.fc15.x86_64

I am unable to crash Xorg by resizing windows. Problem seems fixed. Closing this report. James, can you verify, if you have time? Thanks.