Bug 1121

Summary: crash: XRenderFindVisualFormat() returns 0 for OpenGL/SDL app window
Product: xorg Reporter: Melchior FRANZ <mfranz>
Component: App/xcompmgrAssignee: Xorg Project Team <xorg-team>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: high CC: heijs
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=1363
https://bugs.freedesktop.org/show_bug.cgi?id=1215
Whiteboard:
i915 platform: i915 features:

Description Melchior FRANZ 2004-08-18 05:41:45 UTC
XRenderFindVisualFormat() is at several places used in xcompmgr.c, without 
ever checking for the return value. When running FlightGear 
(http://www.flightgear.org/), which is an (optionally) SDL using OpenGL 
application, XRenderFindVisualFormat() returns 0. This is *unchecked* handed 
over to XRenderCreatePicture() (lines 662, 792, 829, and 1726), which 
dereferences the null pointer. 
 
0 is a valid return value of XRenderFindVisualFormat().
Comment 1 Alexander Gottwald 2004-08-18 09:10:27 UTC
I've seen more of those in uncover from xapps, this crashes uncover if composite
was disabled on the server
Comment 2 Melchior FRANZ 2004-10-05 08:26:52 UTC
The crashes happened on Linux 2.6.7 with nVidia driver v6111 and both Xorg and 
xcompmgr from CVS/HEAD as of yesterday (2004/10/4). FlightGear doesn't run in 
"fullscreen" mode, but with a geometry that equals screen size and with window 
decoration. Bugs #1215 ("Fullscreen games cause xcompmgr to segfault.") and 
#1363 ("Fullscreen OpenGL apps crash server") could refer to the same xcompmgr 
bug.  
Comment 3 Jeremy Huddleston Sequoia 2011-09-24 20:05:25 UTC
Both the related (possibly duplicate) bugs are closed.  Closing this one as well.  Please reopen if it remains an issue.

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.