27

What is the most likely causes of signal 11, also know as "segmentation fault"?

3
42

Signal 11 (SIGSEGV, also known as segmentation violation) means that the program accessed a memory location that was not assigned to it.

That's usually a bug in a program. So if you're writing your own program, that's the most likely cause.

It can also commonly occur with some hardware malfunctions.

3
  • 2
    This is such an informative answer, why would it get 4 negative votes? (the reason it's only -3 is because I just upvoted it). Jun 23 '19 at 22:24
  • 1
    Got an upvote from me. What is the reason really for these negative votes?!!
    – Farzan
    Aug 1 '19 at 15:36
  • I usually see segmentation faults as the catch-all error in low-level languages. Tools like {Address|Leak}Sanitizer, as well as debuggers such as GDB, can help to demystify the error and point to a cause.
    – Matt F.
    Jul 3 at 19:25
6

Please refer to segmentation fault on linux/unix

1

Not the answer you're looking for? Browse other questions tagged or ask your own question.