Segmentation fault

From JargonWiki

Jump to: navigation, search
The Jargon File

Parts of this article are based on the Jargon File, v. 4.4.7,
a public domain document of hacker jargon.

Image:Glider-small.png
segmentation fault
Usage: n.
Etymology: Unix
Derivation: Unix
Alternate Derivation: Techspeak


segmentation fault: n.

[Unix]

  1. To lose a train of thought or a line of reasoning. Also uttered as an exclamation at the point of befuddlement.
  2. [techspeak] An error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers in the source code, dereferencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer. The classic example is:
int i; scanf ("%d", i); /* should have used &i */

Sources

Source: segmentation fault, in The Jargon File, version 4.4.7.


Public Domain

This article is in the public domain and is not subject to copyright, trademark, or any other legal protection of intellectual property.
Any and all user contributions to this page are also immediately dedicated to the public domain.
Editors of this page must accede to these terms as special conditions of the standard editing privileges.

Image:Public_Domain_sm.png
Personal tools
Toolbox