Application "exited abnormally with signal 11: Segmentation fault: 11

Application exited abnormally with signal 11: Segmentation fault: 11

What could be causing this problem?

+3


source to share


1 answer


These errors occur when your program tries to access the storage location of an object that no longer exists, an object that at some earlier point in the application's lifetime released its memory back onto the heap.

If you can keep track of which variable is being accessed during a crash using sensible comments, or better yet, a debugger, then you have a potentially easier time to fix bugs.



In the meantime, re-read Apple's excellent Memory Management Guide , which goes into more detail on memory management issues than this commentary field can fit.

+7


source







All Articles