0

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.

ioctlvoid
  • 405
  • 4
  • 10

1 Answers1

1

According to a similar question on StackOverflow, the error codes are architecture specific. The codes should be documented in arch/*/mm/fault.c as part of the kernel source code.

Polynomial
  • 132,208
  • 43
  • 298
  • 379