[Bug 16622] New: [R300] SDL apps using SDL_SetGamma crashes X

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 5 03:14:31 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=16622

           Summary: [R300] SDL apps using SDL_SetGamma crashes X
           Product: xorg
           Version: unspecified
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: high
         Component: Driver/Radeon
        AssignedTo: xorg-driver-ati at lists.x.org
        ReportedBy: toni.spets at gmail.com
         QAContact: xorg-team at lists.x.org


When SDL_SetGamma() is called by any SDL app it will crash the X server. This
happens only with ati drivers, vesa works fine.

Crashing snippet:
-- snip --
#include <SDL/SDL.h>

int main()
{
        SDL_Init(SDL_INIT_VIDEO);
        SDL_SetVideoMode(640, 480, 16, 0); 
        SDL_SetGamma(1.0f, 1.0f, 1.0f);
}
-- snap --

After more digging the SDL source I found X11_SetGammaRamp() function produces
the crash when it calls XStoreColors() at the end of it.

xgamma works and it uses XF86VidModeSetGamma().


Software:
Debian unstable with xf86-video-ati 6.9.0

X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.2-1)
Current Operating System: Linux debian 2.6.25-2-686 #1 SMP Fri Jun 27 03:23:20
UTC 2008 i686
Build Date: 26 June 2008  01:58:50AM

Hardware:
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the xorg-driver-ati mailing list