Memory (and other) errors generate a Machine Check Exception which are handled by OS and/or BIOS. OSs can be smart enough to accumulate a history of errors and offline affected physical pages (which can result in a very localized single process segmentation violation). You could just log the errors. But you could also dial up the reaction all the way to NMI on these errors, which often triggers a processor reset.