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

Alberto Luaces aluaces at udc.es
Wed Feb 21 06:09:55 PST 2007


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


More information about the SDL mailing list