In Linux, when the NX-bit triggers the segmentation fault seems to be "error 15", whereas a more typical error, such as attempting to read from invalid memory, results in "error 7", (seen from dmesg output).
What other error codes exist? Where are these error codes defined, and what is their true meaning?
I'd like to see a full list so that when I do get a segmentation fault, I'm able to get some hints about what the reason is. I'm not sure how useful this really is, but I'd still like to know.