When a process is clueless (because of reaching an illegal state) , the OperatingSystem writes (dumps) its memory image (which was on the core in the old days) to disk and exits.
The resulting memory image can then be inspected with a debugger, to see what went wrong.
See also: SegmentationFault, HexDump