Bug 19793 - [intel] Xv windows crash X server when moved leftwards
Summary: [intel] Xv windows crash X server when moved leftwards
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) FreeBSD
: medium normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-28 13:32 UTC by Lucius Windschuh
Modified: 2009-02-01 06:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to prevent Xorg from crashing (876 bytes, patch)
2009-01-28 13:32 UTC, Lucius Windschuh
no flags Details | Splinter Review
my xorg.conf (3.05 KB, text/plain)
2009-01-28 13:32 UTC, Lucius Windschuh
no flags Details
my Xorg log file (19.35 KB, text/plain)
2009-01-28 13:33 UTC, Lucius Windschuh
no flags Details

Description Lucius Windschuh 2009-01-28 13:32:09 UTC
Created attachment 22322 [details] [review]
Patch to prevent Xorg from crashing

Overview:
  Moving a Xv window off the screen makes Xorg crash with SIGSEGV

Steps to reproduce:
  - play a film (probably in high resolution?) with mplayer -vo xv
  - move the Xvideo window leftwards so that parts of it are off the screen
  - Xorg crashes with SIGSEGV as soon as 1 pixel is off screen

System information:
  - FreeBSD 8.0-CURRENT on a Lenovo Thinkpad T400
  - Xorg 7.4 built from the FreeBSD ports system
  - Graphics adapter: Mobile Intel® GM45 Express Chipset, card=0x211217aa chip=0x2a428086 rev=0x07
  - xorg.conf, Xorg.0.log attached
  - more information on request

Analysis:

Commit d5a80e1e3ab5724d34b20f9ee6f830efd0f5b076 introduced two shortcuts with memcpy when srcPitch2 == dstPitch. These are the points where Xorg 7.4 from the FreeBSD ports crashes. Even if one is fixed, the other crashes.

Could it be that these memcpy()s are not the same as the "for() memcpy;" loop even if srcPitch2 == dstPitch? Or just in this special case when cropping the left part of the video window?

There is another similar shortcut in the code. This one could also be problematic.

Workaround: 

See attached patch.


Could somebody with more insight in the driver look at this?
Comment 1 Lucius Windschuh 2009-01-28 13:32:55 UTC
Created attachment 22323 [details]
my xorg.conf
Comment 2 Lucius Windschuh 2009-01-28 13:33:30 UTC
Created attachment 22324 [details]
my Xorg log file
Comment 3 Lucius Windschuh 2009-02-01 06:52:18 UTC
It is fixed in xf86-video-intel 2.6.1.


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.