What is segmentation fault?

Answer Posted / srinivasan rajagopalan

A segmentation fault (often shortened to segfault) is a
particular error condition that can occur during the
operation of computer software. 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 one approach to memory management and
protection in the operating system. It has been superseded
by paging for most purposes, but much of the terminology of
segmentation is still used, "segmentation fault" being an
example. Some operating systems still have segmentation at
some logical level although paging is used as the main
memory management policy.

On Unix-like operating systems, a process that accesses an
invalid memory address receives the SIGSEGV signal

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is puppet server?

482


What are the main difference between nfs and samba servers?

429


Is linux is virus free?

448


Mention the nfs server working process?

469


Does microsoft own linux?

421






Does google run on linux?

455


Is mac same as linux?

527


How to find difference in two configuration files on the same server?

469


Does bsd use linux kernel?

453


What is shell script?

463


In what way are home directories different from working directory?

537


What is a split-horizon dns?

509


Is linux hard to learn?

448


Why is linux considered more secure than other operating systems?

450


how would you find the logged user details in linux?

468