[SDL] Crash during SDL_UnlockSurface

Sam Lantinga slouken at devolution.com
Sat Jan 1 20:52:57 PST 2005


> I've been running into a problem that I think is a bug in SDL.  The 
> situation is:

> I have a surface (surface A) with SDL_SRCALPHA and SDL_RLEACCEL set.  I blit 
> from that to surface B.  (and use it for various things, never touching A).  
> I then free surface B.  Afterwards, I do some direct manipulation of surface 
> A, and so I lock the surface, do my stuff, and then unlock it.  During the 
> call to SDL_UnlockSurface, I get a crash.

> It turns out that it crashes at SDL_RLEaccel.c, line 1433, which is
> masksum = df->Rmask | df->Gmask | df->Bmask;

Sounds like a bug to me.  Can you put together a small test case and post
a link to it?

Thanks!
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list