Segmentation, Page Fault, and Access Violation
A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system).
Segmentation is a historic term for the approach to memory management nowadays known as paging (see e.g. Lions' Commentary on UNIX 6th Edition, with Source Code), but the term is still used in the context of "segmentation fault".
On Unix-like operating systems, a signal called SIGSEGV is sent to a process that accesses an invalid memory address. On Microsoft Windows, a process that accesses invalid memory receives the STATUS_ACCESS_VIOLATION exception.
Read more about this topic: Segmentation Fault
Famous quotes containing the words page, access and/or violation:
“Envy has blackened every page of his history.... The future, in its justice, will number him among those men whom passions and an excess of activity have condemned to unhappiness, through the gift of genius.”
—Eugène Delacroix (17981863)
“Make thick my blood,
Stop up th access and passage to remorse,
That no compunctious visitings of nature
Shake my fell purpose.”
—William Shakespeare (15641616)
“The urgent consideration of the public safety may undoubtedly authorise the violation of every positive law. How far that or any other consideration may operate to dissolve the natural obligations of humanity and justice, is a doctrine of which I still desire to remain ignorant.”
—Edward Gibbon (17371794)