Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the segfault signal on *nix abbreviated as 'SIGSEGV' and not 'SIGSEGF'?

Is there any historical reason? Is there actually any reason at all or was it pure coincidence? Wikipedia failed on me this time, so I hope you can provide me with some information / an answer. :)

like image 901
Xeo Avatar asked Apr 27 '11 19:04

Xeo


People also ask

What is error code SIGSEGV?

A SIGSEGV is an error(signal) caused by an invalid memory reference or a segmentation fault. You are probably trying to access an array element out of bounds or trying to use too much memory.

What is SIGSEGV in Linux?

On a Unix operating system such as Linux, a "segmentation violation" (also known as "signal 11", "SIGSEGV", "segmentation fault" or, abbreviated, "sig11" or "segfault") is a signal sent by the kernel to a process when the system has detected that the process was attempting to access a memory address that does not ...

What triggers SIGSEGV?

SIGSEGV is triggered by the operating system, which detects that a process is carrying out a memory violation, and may terminate it as a result.

How do Segfaults work?

A segfault will occur when a program attempts to operate on a memory location in a way that is not allowed (for example, attempts to write a read-only location would result in a segfault). Segfaults can also occur when your program runs out of stack space.


1 Answers

It's actually a segment violation.

like image 186
Ignacio Vazquez-Abrams Avatar answered Oct 10 '22 02:10

Ignacio Vazquez-Abrams