Bug 726948

Summary: Occasional segfault while dragging text selection in firefox
Product: [Fedora] Fedora Reporter: cb-rhbugz
Component: libdrmAssignee: Jérôme Glisse <jglisse>
Status: CLOSED WONTFIX 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: i386   
OS: Linux   
Whiteboard: [cat:crash]
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 16:31:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description cb-rhbugz 2011-07-31 10:27:16 UTC
Description of problem:
Segfault while dragging text selection in firefox

Version-Release number of selected component (if applicable):
xorg-x11-server-common-1.9.5-1.fc14.i686
xorg-x11-server-Xorg-1.9.5-1.fc14.i686
xorg-x11-server-utils-7.5-5.fc14.i686
xorg-x11-drivers-7.4-1.fc14.i686

How reproducible:
Happens occasionally, not 100%

Steps to Reproduce:
1. Select text, and drag selection
2. repeat step 1 rapidly
3. 
  
Actual results:
X server segfaults

Expected results:
X server does not segfault

Additional info:

Graphics card is a Radeon HD 4350

[2633315.678] 0: /usr/bin/Xorg (xorg_backtrace+0x3c) [0x80e834c]
[2633315.678] 1: /usr/bin/Xorg (0x8047000+0x5eec6) [0x80a5ec6]
[2633315.678] 2: (vdso) (__kernel_rt_sigreturn+0x0) [0x6e840c]
[2633315.678] 3: /usr/lib/libdrm_radeon.so.1 (0x72a000+0x203e) [0x72c03e]
[2633315.678] 4: /usr/lib/libdrm_radeon.so.1 (radeon_cs_write_reloc+0x31) [0x72cf31]
[2633315.682] 5: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x3c4000+0xb1cee) [0x475cee]
[2633315.682] 6: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x3c4000+0xb7672) [0x47b672]
[2633315.682] 7: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x3c4000+0xa6ba2) [0x46aba2]
[2633315.682] 8: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x3c4000+0xa6dca) [0x46adca]
[2633315.682] 9: /usr/lib/xorg/modules/libexa.so (0xdbf000+0xa090) [0xdc9090]
[2633315.682] 10: /usr/lib/xorg/modules/libexa.so (0xdbf000+0xa370) [0xdc9370]
[2633315.682] 11: /usr/bin/Xorg (miCopyRegion+0x14b) [0x819b38b]
[2633315.683] 12: /usr/bin/Xorg (miDoCopy+0x395) [0x819b865]
[2633315.683] 13: /usr/lib/xorg/modules/libexa.so (0xdbf000+0x959f) [0xdc859f]
[2633315.683] 14: /usr/bin/Xorg (0x8047000+0xdd8b6) [0x81248b6]
[2633315.683] 15: /usr/bin/Xorg (0x8047000+0x23e59) [0x806ae59]
[2633315.683] 16: /usr/bin/Xorg (0x8047000+0x28517) [0x806f517]
[2633315.683] 17: /usr/bin/Xorg (0x8047000+0x1b395) [0x8062395]
[2633315.683] 18: /lib/libc.so.6 (__libc_start_main+0xe6) [0x9d4e36]
[2633315.683] 19: /usr/bin/Xorg (0x8047000+0x1af71) [0x8061f71]
[2633315.683] Segmentation fault at address 0x20
[2633315.690] 
Fatal server error:
[2633315.690] Caught signal 11 (Segmentation fault). Server aborting
[2633315.690] 
[2633315.690]

Comment 1 cb-rhbugz 2011-07-31 17:00:31 UTC
Found in dmesg, this occurred about 20 minutes before the segfault

[2631487.329843] radeon 0000:01:00.0: r600_cs_track_check:362 mask 0xFFFFFFFF | 0xFFFFFFFF no cb for 0
[2631487.329849] radeon 0000:01:00.0: r600_packet3_check:1331 invalid cmd stream 33

Comment 2 Matěj Cepl 2011-08-01 15:44:03 UTC
Could we get output of command (on one line)

rpm -qf /usr/lib*/xorg/modules/drivers/radeon_drv.so /usr/lib*/libdrm_radeon.so.1

as well, please?

Comment 3 cb-rhbugz 2011-08-01 16:26:32 UTC
$ rpm -qf /usr/lib*/xorg/modules/drivers/radeon_drv.so /usr/lib*/libdrm_radeon.so.1

xorg-x11-drv-ati-6.13.1-0.4.20100705git37b348059.fc14.i686
libdrm-2.4.22-1.fc14.i686

Comment 4 Matěj Cepl 2011-08-02 10:23:53 UTC
---------------------------------
In function cs_gem_write_reloc:
(from frame 3: /usr/lib/libdrm_radeon.so.1 (0x72a000+0x203e) [0x72c03e])
171:                               uint32_t read_domain,
172:                               uint32_t write_domain,
173:                               uint32_t flags)
174: {
175:     struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
176:     struct cs_gem *csg = (struct cs_gem*)cs;
177:     struct cs_reloc_gem *reloc;
178:     uint32_t idx;
179:     unsigned i;
180: 
181: >>>>>>>     assert(boi->space_accounted);
182: 
183:     /* check domains */
184:     if ((read_domain && write_domain) || (!read_domain && !write_domain)) {
185:         /* in one CS a bo can only be in read or write domain but not
186:          * in read & write domain at the same sime
187:          */
188:         return -EINVAL;
189:     }
190:     if (read_domain == RADEON_GEM_DOMAIN_CPU) {
191:         return -EINVAL;


Frame 5: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x3c4000+0xb1cee) [0x475cee]
	/usr/src/debug/xf86-video-ati-20100705/src/r6xx_accel.c:536
	set_vtx_resource
Frame 6: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x3c4000+0xb7672) [0x47b672]
	/usr/src/debug/xf86-video-ati-20100705/src/r6xx_accel.c:1241
	r600_finish_op
Frame 7: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x3c4000+0xa6ba2) [0x46aba2]
	/usr/src/debug/xf86-video-ati-20100705/src/r600_exa.c:675
	R600DoCopyVline
Frame 8: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x3c4000+0xa6dca) [0x46adca]
	/usr/src/debug/xf86-video-ati-20100705/src/r600_exa.c:877
	R600DoneCopy
Frame 9: /usr/lib/xorg/modules/libexa.so (0xdbf000+0xa090) [0xdc9090]
	/usr/src/debug/xorg-server-1.9.5/exa/exa_accel.c:510
	exaHWCopyNtoN
Frame 10: /usr/lib/xorg/modules/libexa.so (0xdbf000+0xa370) [0xdc9370]
	/usr/src/debug/xorg-server-1.9.5/exa/exa_accel.c:584
	exaCopyNtoN
Frame 11: /usr/bin/Xorg (miCopyRegion+0x14b) [0x819b38b]
	/usr/src/debug/xorg-server-1.9.5/mi/micopy.c:145
	miCopyRegion
Frame 12: /usr/bin/Xorg (miDoCopy+0x395) [0x819b865]
	/usr/src/debug/xorg-server-1.9.5/mi/micopy.c:334
	miDoCopy
Frame 13: /usr/lib/xorg/modules/libexa.so (0xdbf000+0x959f) [0xdc859f]
	/usr/src/debug/xorg-server-1.9.5/exa/exa_accel.c:611
	exaCopyArea
Frame 14: /usr/bin/Xorg (0x8047000+0xdd8b6) [0x81248b6]
	/usr/src/debug/xorg-server-1.9.5/miext/damage/damage.c:947
	damageCopyArea
Frame 15: /usr/bin/Xorg (0x8047000+0x23e59) [0x806ae59]
	/usr/src/debug/xorg-server-1.9.5/dix/dispatch.c:1657
	ProcCopyArea
Frame 16: /usr/bin/Xorg (0x8047000+0x28517) [0x806f517]
	/usr/src/debug/xorg-server-1.9.5/dix/dispatch.c:432
	Dispatch
Frame 17: /usr/bin/Xorg (0x8047000+0x1b395) [0x8062395]
	/usr/src/debug/xorg-server-1.9.5/dix/main.c:293
	main

Comment 5 Fedora End Of Life 2012-08-07 16:31:28 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping