[SDL] Fatal signal: Segmentation Fault (SDL Parachute Deployed)
benang at cs.its.ac.id
benang at cs.its.ac.id
Wed Feb 21 06:57:36 PST 2007
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."
More information about the SDL
mailing list