Crashes on glXBindTexImageEXT call on surface whose Window got destroyed
@sthibaul
Submitted by Samuel Thibault Assigned to mes..@..op.org
Link to original bug (#109596)
Description
Created attachment 143345 proposed fix
Hello,
As reported on
https://gitlab.com/compiz/compiz-core/issues/141
compiz is getting crashes during a glXBindTexImageEXT call about a window getting unmapped. This happens in the swraster. I traced it into swrastGetDrawableInfo(), whose XGetGeometry call fails because the window is no more. The attached patch avoids the issue, I tend to think that at the very least an assert should be used to avoid leaking uninitialized values, but returning an empty geometry would avoid a crash in such case, the caller just has to be able to cope with it.
If this (calling glXBindTexImageEXT on a drawable whose Window is no more) is considered to be an issue in the application, please answer to https://gitlab.com/compiz/compiz-core/issues/141
Samuel
Attachment 143345, "proposed fix":
patch
Version: 18.3