Bug 1121 - crash: XRenderFindVisualFormat() returns 0 for OpenGL/SDL app window
Summary: crash: XRenderFindVisualFormat() returns 0 for OpenGL/SDL app window
Status: CLOSED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xcompmgr (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-18 05:41 UTC by Melchior FRANZ
Modified: 2011-10-15 17:09 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.