Is it mapped to the zero page in memory?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The fact it’s Linux is irrelevant. In C the NULL constant is defined as ‘0’ – zero. When a process attempts to dereference a pointer whose value is zero in a protected mode context it causes an interrupt to be raised by the processor which is then handled by the OS (and then often passed up to the application’s framework, which is why .NET gives you friendly NullReferenceExceptions but C gives you more cryptic errors).