[PATCH] crash after setting root background pixmap to None, then setting color

Jeremy Huddleston jeremyhu at apple.com
Wed Jun 1 19:43:03 PDT 2011


Yeah, it's on my list for 1.10 ... it's already in my server-1.10-apple branch that I use for XQuartz, so I won't loose it.  I'll cherry-pick whatever lands in master.

--Jeremy

On Jun 1, 2011, at 5:40 PM, Alan Coopersmith wrote:

> For what it's worth, this patch solved a crash reported by a user of my 1.10.1
> packages when he ran xsetroot, so I'm pulling it into my 1.10.x packages and
> would also like to see it in 1.10-branch as well once it lands in master.
> 
> (I pulled the patch from
> http://cgit.freedesktop.org/~daniels/xserver/commit/?id=0701a18b51213ae588cbe82069c0b6eefb8deae7
> - but there is mismatching indentation in that version.)
> 
> 	-alan-
> 
> On 05/28/11 06:01 PM, Jeremy Huddleston wrote:
>> I don't see it in your master branch:
>> http://cgit.freedesktop.org/~daniels/xserver/log/
>> 
>> Your git repo also doesn't seem to know about that commit reference:
>> http://cgit.freedesktop.org/~daniels/xserver/commit/?id=0701a18b51213ae588cbe82069c0b6eefb8deae7
>> 
>> Also, any thoughts that this could be related to but #31017?
>> http://bugs.freedesktop.org/show_bug.cgi?id=31017
>> 
>> --Jeremy
>> 
>> On May 25, 2011, at 03:56, Daniel Stone wrote:
>> 
>>> Hi,
>>> 
>>> On Mon, May 23, 2011 at 12:26:07PM +0200, Cyril Brulebois wrote:
>>>> Hi Jeremy,
>>>> 
>>>> Marko Macek <Marko.Macek at gmx.net> (21/05/2011):
>>>>> Please apply this patch:
>>>>> 
>>>>> Fix crash after resetting root window background pixmap to None, then setting background color.
>>>>> 
>>>>> Signed-off-by: Marko Macek <marko.macek at gmx.net>
>>> 
>>> Thanks Marko!
>>> 
>>> I have this (committed earlier) as:
>>> commit 0701a18b51213ae588cbe82069c0b6eefb8deae7
>>> Author: Marko Macek <Marko.Macek at gmx.net>
>>> Date:   Sat May 21 13:30:59 2011 +0100
>>> 
>>>  DIX: Set backgroundState correctly for root window
>>> 
>>>  When we change the root window's background to None, and we've run with
>>>  -wr or -br for a forced solid background, make sure we also change the
>>>  background state to BackgroundPixel, so we don't try to lookup either
>>>  pScreen->whitePixel or pScreen->blackPixel as a pixmap.
>>> 
>>>  Signed-off-by: Marko Macek <Marko.Macek at gmx.net>
>>>  Reviewed-by: Walter Harms <wharms at bfs.de>
>>>  Reviewed-by: Daniel Stone <daniel at fooishbar.org>
>>> 
>>> It should be in the master branch of
>>> git://people.freedesktop.org/~daniels/xserver.
>>> 
>>>> it'd be nice to keep an eye on that patch and pick it for the 1.10
>>>> branch, even though it appears not to be committed to master yet.
>>>> 
>>>> Seems to be the same issue as in:
>>>> http://bugs.debian.org/626331
>>>> 
>>>> A fix for #36986 would also be appreciated for rc3 or final:
>>>> https://bugs.freedesktop.org/show_bug.cgi?id=36986
>>>> 
>>>> (still being discussed in another thread.)
>>> 
>>> Yeah, it's a bit of a clanger, and most distros seem to run with either
>>> -wr or -br, so this would be a great stable candidate.  Let's give it a
>>> quick run in master and see if it doesn't destroy anything.
>>> 
>>> Cheers,
>>> Daniel
>>> _______________________________________________
>>> xorg-devel at lists.x.org: X.Org development
>>> Archives: http://lists.x.org/archives/xorg-devel
>>> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>>> 
>> 
>> _______________________________________________
>> xorg-devel at lists.x.org: X.Org development
>> Archives: http://lists.x.org/archives/xorg-devel
>> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 
> 
> -- 
> 	-Alan Coopersmith-        alan.coopersmith at oracle.com
> 	 Oracle Solaris Platform Engineering: X Window System
> 



More information about the xorg-devel mailing list