Segmentation Fault - Segmentation, Page Fault, and Access Violation

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:

    Heav’n from all creatures, hides the book of Fate,
    All but the page prescrib’d, their present state:
    Alexander Pope (1688–1744)

    A girl must allow others to share the responsibility for care, thus enabling others to care for her. She must learn how to care in ways appropriate to her age, her desires, and her needs; she then acts with authenticity. She must be allowed the freedom not to care; she then has access to a wide range of feelings and is able to care more fully.
    Jeanne Elium (20th century)

    Injustice, cruelty, restraint of conscience, oppression, falsity, dishonour, deceit, violation of law and equity?—But look how they have cleaned up the cities and what wonderful roads they have built!
    Johan Huizinga (1872–1945)