|
Segmentation Fault |
This means accessing memory at an illegal address. Probably accessing NULL pointer or some garbage-valued pointer. Can also happen when using free()/delete twice on the same memory location. Many times the exact location of the bug in your program is not where the program crashed. A bug can corrupt the memory, and the outcome will show only on the next access, that may be elsewhere. If it is not the trivial case of accessing a NULL pointer, you have to go through all the dynamic memory handling in your program.
|
Bus Error |
Same as Segmentation Fault, only the memory violation was detected in another part of the OS.
|
|