[SDL] Fatal signal: Segmentation Fault (SDL Parachute Deployed)
matt
mattmatteh at earthlink.net
Wed Feb 21 08:58:06 PST 2007
i think you need to keep running it in gdb till it seg faults again.
or
turn on core dumps and when it does do it again, backtrace it.
also, i assume you are using gcc ? use -Wall, turn on all warnings. your
program should compile with out warnings. if you get warnings, that
might be a hint of where the problem could be.
matt
benang at cs.its.ac.id wrote:
> Thanks. I've tried using gdb. But I can't recreate the bug. Even when I
> tried clicking at the same time as when the bug last occurs, it still
> didn't appear. I'm still confused right now.
>
> Alberto Luaces said:
>
>> El Miércoles, 21 de Febrero de 2007 14:34, benang at cs.its.ac.id escribió:
>>
>>> 1. What caused the SDL Parachute error?
>>>
>> To simplify this topic a little bit, I would say that a segmentation fault
>> means your that program tried to read or write a piece of memory not of
>> its
>> ownership. It is a very common mistake, mainly caused by incorrect
>> handling
>> of pointers. Or maybe you are also sending incorrect data to other
>> librarie's
>> functions, and so on.
>>
>>
>>> 2. Why was it appear random ?
>>>
>> You are likely reading or writing a part of the memory through a wrong
>> array
>> index or pointer. Whenever the index or the pointer is correct, no error
>> is
>> generated.
>>
>> You can run the program in the debugger and look at the backtrace when
>> your
>> program crashes to know what part of the code is buggy.
>>
>> HTH,
>>
>> Alberto
>> _______________________________________________
>> 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."
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
More information about the SDL
mailing list