Core Dump/Segmentation fault is a specific kind of error caused by accessing memory that “does not belong to you.”
When a piece of code tries to do read and write operation in a read only location in memory or freed block of memory, it is known as core dump. It is an error indicating memory corruption.
- Modifying a string literal
- Accessing an address that is freed
- Accessing out of array index bounds
- Improper use of scanf()
- Stack Overflow
- Dereferencing uninitialized pointer