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:
“I asked myself, Is it going to prevent me from getting out of here? Is there a risk of death attached to it? Is it permanently disabling? Is it permanently disfiguring? Lastly, is it excruciating? If it doesnt fit one of those five categories, then it isnt important.”
—Rhonda Cornum, United States Army Major. As quoted in Newsweek magazine, Perspectives page (July 13, 1992)
“Power, in Cases world, meant corporate power. The zaibatsus, the multinationals ..., had ... attained a kind of immortality. You couldnt kill a zaibatsu by assassinating a dozen key executives; there were others waiting to step up the ladder; assume the vacated position, access the vast banks of corporate memory.”
—William Gibson (b. 1948)
“Every violation of truth is not only a sort of suicide in the liar, but is a stab at the health of human society.”
—Ralph Waldo Emerson (18031882)