<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Verdana;
color:windowtext;
font-weight:bold;
font-style:normal;
text-decoration:none none;}
/* Page Definitions */
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 89.85pt 72.0pt 89.85pt;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1 style='layout-grid:15.6pt'>
<p class=MsoNormal><b><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>Dear all,<o:p></o:p></span></font></b></p>
<p class=MsoNormal style='text-indent:19.7pt'><b><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>When I
use SW cursor on XServer 1.6.0, there is a segment fault when display rotation
(xrandr --output xxx --rotate left). But it’s OK on XServer 1.5.2. <o:p></o:p></span></font></b></p>
<p class=MsoNormal style='text-indent:19.7pt'><b><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>I
trace the codes and find the cause. The function xxx_crtc_commit will call xf86_reload_cursors().
<o:p></o:p></span></font></b></p>
<p class=MsoNormal style='text-indent:19.7pt'><b><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>In xf86_reload_cursors(),<o:p></o:p></span></font></b></p>
<p class=MsoNormal style='text-indent:39.35pt'><b><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>cursor_screen_priv
= dixLookupPrivate(&screen->devPrivates, xf86CursorScreenKey);<o:p></o:p></span></font></b></p>
<p class=MsoNormal style='text-indent:39.35pt'><b><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>/* return
if HW cursor is inactive, to avoid displaying two cursors */<o:p></o:p></span></font></b></p>
<p class=MsoNormal style='text-indent:39.35pt'><b><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>if (!cursor_screen_priv->isUp)<o:p></o:p></span></font></b></p>
<p class=MsoNormal style='text-indent:39.35pt'><b><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>return;<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>
In fact, if use SW cursor, I find the cursor_screen_priv is NULL. And X accesses
the null pointer. That’s why segment fault come out. Maybe we can
change it to if(!cursor_screen_priv). <o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>
Is it a bug on XServer 1.6.0?<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>
Thanks!<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>Best wishes,<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>Gordon<o:p></o:p></span></font></b></p>
</div>
</body>
</html>