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

benang at cs.its.ac.id benang at cs.its.ac.id
Fri Feb 23 01:48:44 PST 2007


Thank you all. I've used the -Wall in the compiler (like what has been
suggested before) and it produces lots of warnings which seemed unrelated.
Mostly only the variable x will be initialized after y if defined like
this, not putting default in switch-case, comparing signed with  unsigned,
etc. The funny thing is when I fixed most of the warnings, it worked (or
seemed to work because the bug didn't show up for now).

@Alberto Luaces
I see. No wonder I couldn't find the core dump. Thanks a lot. Will try that.

Tommy Hinks said:
> 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
>>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>


Fare thee well,
Bawenang R. P. P.

----------------
ERROR: Brain not found. Please insert a new brain!

“Do nothing which is of no use.” - Miyamoto Musashi.

"I live for my dream. And my dream is to live my life to the fullest."




More information about the SDL mailing list