What is segmentation fault?



What is segmentation fault?..

Answer / 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

More Linux General Interview Questions

Why linux is most secure operating system?

0 Answers  


What does stands for in linux?

0 Answers  


What is kernel? Explain the task it performs.

0 Answers  


What is the difference between linux and redhat?

0 Answers  


What is the shortcut to the login directory?

0 Answers  


Which mint linux is best?

0 Answers  


You are logged on as a regular user. Without logging off and logging on as root, you are required to create a new user account immediately. How would you do it?

1 Answers  


Is mac better than linux?

1 Answers  


How can we check disk/device status/failure/errors using smartctl utility?

0 Answers  


How to copy text to clipboard?

0 Answers  


Is linux a scripting language?

0 Answers  


Can I use linux for gaming?

0 Answers  


Categories