Bug 717331

Summary: xserver segfaults after copy and pasting in gedit
Product: [Fedora] Fedora Reporter: Richard Hughes <rhughes>
Component: xorg-x11-drv-intelAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: ajax, mcepl, xgl-maint
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard: [cat:crash]
Fixed In Version: xorg-x11-drv-intel-2.15.0-4.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-12 04:52:45 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
Xorg.log none

Description Richard Hughes 2011-06-28 15:09:52 UTC
Created attachment 510305 [details]
Xorg.log

Description of problem:
xserver segfaults after copy and pasting in gedit, which closes the session, throws me back into gdm, loosing all my work.

Version-Release number of selected component (if applicable):
kernel-2.6.38.8-32.fc15.x86_64
libdrm-2.4.26-1.fc15.x86_64
mesa-libGLU-7.11-0.11.20110525.0.fc15.x86_64
mesa-dri-llvmcore-7.11-0.11.20110525.0.fc15.x86_64
mesa-libGL-7.11-0.11.20110525.0.fc15.x86_64
mesa-dri-drivers-7.11-0.11.20110525.0.fc15.x86_64
mesa-libGLU-devel-7.11-0.11.20110525.0.fc15.x86_64
mesa-dri-filesystem-7.11-0.11.20110525.0.fc15.x86_64
mesa-libGL-devel-7.11-0.11.20110525.0.fc15.x86_64
xorg-x11-drv-mouse-1.6.99.901-2.fc15.x86_64
xorg-x11-drv-fbdev-0.4.1-8.fc15.x86_64
xorg-x11-drv-intel-2.15.0-3.fc15.x86_64
xorg-x11-server-Xorg-1.10.2-1.fc15.x86_64
xorg-x11-drv-tdfx-1.4.3-7.fc15.x86_64
xorg-x11-drv-savage-2.3.2-3.fc15.x86_64
xorg-x11-fonts-misc-7.5-3.fc15.noarch
xorg-x11-font-utils-7.5-6.fc15.x86_64
xorg-x11-drv-evdev-2.6.0-3.fc15.x86_64
xorg-x11-drv-v4l-0.2.0-12.fc15.x86_64
xorg-x11-xinit-1.0.9-20.fc15.x86_64
xorg-x11-xauth-1.0.2-9.fc15.x86_64
xorg-x11-drv-vesa-2.3.0-7.fc15.x86_64
xorg-x11-drv-acecad-1.4.99-3.20101203gitf8e87eaf4.fc15.x86_64
xorg-x11-drv-ati-6.14.1-1.20110504gita6d2dba6.fc15.x86_64
xorg-x11-drv-apm-1.2.3-6.fc15.x86_64
xorg-x11-drv-voodoo-1.2.4-5.fc15.x86_64
xorg-x11-drv-rendition-4.2.4-5.fc15.x86_64
xorg-x11-drv-mutouch-1.2.99-4.20101206git24029451c.fc15.x86_64
xorg-x11-drv-vmware-11.0.3-4.fc15.x86_64
xorg-x11-server-utils-7.5-5.fc15.x86_64
xorg-x11-drv-dummy-0.3.4-5.fc15.x86_64
xorg-x11-drv-i740-1.3.2-7.fc15.x86_64
xorg-x11-drv-nv-2.1.18-6.fc15.x86_64
xorg-x11-drv-void-1.3.1-5.20101202gitcb8d19b8a.fc15.x86_64
xorg-x11-drv-mga-1.4.13-6.fc15.x86_64
xorg-x11-drv-s3virge-1.10.4-7.fc15.x86_64
xorg-x11-drv-sisusb-0.9.4-5.fc15.x86_64
xorg-x11-drv-glint-1.2.4-7.fc15.x86_64
xorg-x11-drv-elographics-1.2.99-3.20101206git6fd22a9d6.fc15.x86_64
xorg-x11-drv-vmmouse-12.6.99.901-3.20101209git07232feb6.fc15.x86_64
xorg-x11-proto-devel-7.6-8.fc15.noarch
xorg-x11-server-common-1.10.2-1.fc15.x86_64
xorg-x11-drv-wacom-0.11.0-1.fc15.x86_64
xorg-x11-drv-keyboard-1.5.99.901-2.fc15.x86_64
xorg-x11-drv-cirrus-1.3.2-8.fc15.x86_64
xorg-x11-drv-intel-debuginfo-2.15.0-3.fc15.x86_64
xorg-x11-drv-ast-0.91.10-5.fc15.x86_64
xorg-x11-drv-r128-6.8.1-9.fc15.x86_64
xorg-x11-drv-trident-1.3.4-5.fc15.x86_64
xorg-x11-utils-7.5-2.fc15.x86_64
xorg-x11-drv-qxl-0.0.21-3.fc15.x86_64
xorg-x11-drv-siliconmotion-1.7.3-8.20100122.fc15.x86_64
xorg-x11-drv-mach64-6.8.2-7.fc15.x86_64
xorg-x11-xkb-utils-7.5-3.fc15.x86_64
xorg-x11-drv-synaptics-1.4.0.901-1.fc15.x86_64
xorg-x11-drv-nouveau-0.0.16-24.20110324git8378443.fc15.x86_64
xorg-x11-drv-penmount-1.4.99-3.20101203git6658e9ad2.fc15.x86_64
xorg-x11-server-Xephyr-1.10.2-1.fc15.x86_64
xorg-x11-drv-openchrome-0.2.904-13.fc15.x86_64
xorg-x11-drv-hyperpen-1.3.99.1-3.20101202git0a03c1fd0.fc15.x86_64
xorg-x11-drv-sis-0.10.3-5.fc15.x86_64
xorg-x11-drv-i128-1.3.4-7.fc15.x86_64
xorg-x11-drv-fpit-1.3.99-3.20101206git020c04e29.fc15.x86_64
xorg-x11-drv-aiptek-1.3.99-3.20101203git95b891239.fc15.x86_64
xorg-x11-drivers-7.4-2.fc15.x86_64


How reproducible:
It's pretty random. It happens about ~10 times per day, and usually when either scrolling through a long bit of code in gedit, or when copying and pasting. But not reliably. It's really frustrating.

Steps to Reproduce:
1. scroll up and down a document in gedit for about 2 hours
2. *boom*
3. lack of profit.
  
Additional info:

This is what I get in Xorg.log:

    [114647.964] 0: /usr/bin/Xorg (xorg_backtrace+0x2f) [0x4a142f]
    [114647.964] 1: /usr/bin/Xorg (0x400000+0x62316) [0x462316]
    [114647.964] 2: /lib64/libpthread.so.0 (0x38af600000+0xeeb0) [0x38af60eeb0]
    [114647.964] 3: /usr/lib64/libdrm_intel.so.1 (drm_intel_bo_emit_reloc+0x0) [0x7fed51f66d20]
    [114647.964] 4: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7fed52192000+0x232c4) [0x7fed521b52c4]
    [114647.964] 5: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7fed52192000+0x28fda) [0x7fed521bafda]
    [114647.964] 6: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7fed52192000+0x298f7) [0x7fed521bb8f7]
    [114647.964] 7: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7fed52192000+0x26f38) [0x7fed521b8f38]
    [114647.964] 8: /usr/bin/Xorg (0x400000+0xdb291) [0x4db291]
    [114647.964] 9: /usr/bin/Xorg (0x400000+0x2b25f) [0x42b25f]
    [114647.964] 10: /usr/bin/Xorg (0x400000+0x2ec11) [0x42ec11]
    [114647.964] 11: /usr/bin/Xorg (0x400000+0x22e1a) [0x422e1a]
    [114647.964] 12: /lib64/libc.so.6 (__libc_start_main+0xed) [0x38aee2139d]
    [114647.964] 13: /usr/bin/Xorg (0x400000+0x23101) [0x423101]
    [114647.964] Segmentation fault at address (nil)

Comment 1 Matěj Cepl 2011-07-04 23:35:43 UTC
In function intel_batch_emit_dword:
(from frame 4: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7fed52192000+0x232c4) [0x7fed521b52c4])
79: {
80: 	intel_screen_private *intel = intel_get_screen_private(scrn);
81: 
82: 	assert(intel->in_batch_atomic);
83: 	assert(intel->batch_used <= intel->batch_atomic_limit);
84: 	intel->in_batch_atomic = FALSE;
85: }
86: 
87: static inline void intel_batch_emit_dword(intel_screen_private *intel, uint32_t dword)
88: {
89: >>>>>>> 	intel->batch_ptr[intel->batch_used++] = dword;
90: }
91: 
92: static inline void intel_batch_align(intel_screen_private *intel, uint32_t align)
93: {
94: 	uint32_t delta;
95: 
96: 	align /= 4;
97: 	assert(align);
98: 
99: 	if ((delta = intel->batch_used & (align - 1))) {


Frame 5: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7fed52192000+0x28fda) [0x7fed521bafda]
	/usr/src/debug/xf86-video-intel-2.15.0/uxa/uxa-accel.c:1138
	uxa_fill_region_solid
Frame 6: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7fed52192000+0x298f7) [0x7fed521bb8f7]
	/usr/src/debug/xf86-video-intel-2.15.0/uxa/uxa-accel.c:872
	uxa_poly_fill_rect
Frame 7: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7fed52192000+0x26f38) [0x7fed521b8f38]
	/usr/src/debug/xf86-video-intel-2.15.0/uxa/uxa-accel.c:829
	uxa_poly_segment
Frame 8: /usr/bin/Xorg (0x400000+0xdb291) [0x4db291]
	/usr/src/debug/xorg-server-1.10.2/miext/damage/damage.c:1145
	damagePolySegment
Frame 9: /usr/bin/Xorg (0x400000+0x2b25f) [0x42b25f]
	/usr/src/debug/xorg-server-1.10.2/dix/dispatch.c:1768
	ProcPolySegment
Frame 10: /usr/bin/Xorg (0x400000+0x2ec11) [0x42ec11]
	/usr/src/debug/xorg-server-1.10.2/dix/dispatch.c:431
	Dispatch
Frame 11: /usr/bin/Xorg (0x400000+0x22e1a) [0x422e1a]
	/usr/src/debug/xorg-server-1.10.2/dix/main.c:296
	main
bradford:debug $

Comment 2 Fedora Update System 2011-07-05 17:52:41 UTC
xorg-x11-drv-intel-2.15.0-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/xorg-x11-drv-intel-2.15.0-4.fc15

Comment 3 Fedora Update System 2011-07-06 21:35:43 UTC
Package xorg-x11-drv-intel-2.15.0-4.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xorg-x11-drv-intel-2.15.0-4.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/xorg-x11-drv-intel-2.15.0-4.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-07-12 04:52:32 UTC
xorg-x11-drv-intel-2.15.0-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.