Whenever a segmentation fault occurs, do we always have a page fault?
Anyone with linux kernel code experience can you pleas point the code here too?
I have already seen: segmentation fault vs page fault
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.
Segmentation fault can also occur under following circumstances:
a) A buggy program / command, which can be only fixed by applying patch.
b) It can also appear when you try to access an array beyond the end of an array under C programming.
c) Inside a chrooted jail this can occur when critical shared libs, config file or /dev/ entry missing.
d) Sometime hardware or faulty memory or driver can also create problem.
e) Maintain suggested environment for all computer equipment (overheating can also generate this problem).
Why page fault occur:
a)Trying to access a virtual memory-address
b)Instruction-operand / instruction-address
c)Read-data/write-data, or fetch-instruction
d)Maybe page is ‘not present’
e)Maybe page is ‘not readable’
f)Maybe page is ‘not writable’
g)Maybe page is ‘not visible’