[SDL] Fatal signal: Segmentation Fault (SDL Parachute Deployed)

Tommy Hinks tommy.hinks at gmail.com
Thu Feb 22 10:37:33 PST 2007


In "debug mode" I think most numeric variables are automatically
initialized to zero. In "release mode" uninitialized numeric variables
are just given a chunk of memory and their values will be whatever
that chunk of memory happens to be when interpreting that kind of
numeric variable.

So watch out for places were you might assume that something was set to zero!

Just building on what Gregory said...

Hope that helps

/ Tommy

On 22/02/07, Alberto Luaces <aluaces at udc.es> wrote:
> El Miércoles, 21 de Febrero de 2007 19:33, Gregory Smith escribió:
> > Sorry for contributing to the increasing OT-ness of this thread.
>
> Gregory, I think you are absolutely ON topic.
>
> Just to ease things a bit, I have to mention that to disable the SDL parachute
> in order to get a core dump when the program crashes, you have also to pass
> the SDL_INIT_NOPARACHUTE flag to SDL_Init() at the beginning of your program.
>
> HTH,
>
> Alberto
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>


More information about the SDL mailing list