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


2 Answers 2


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.

  • 7
    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, 2019 at 22:24
  • 2
    Got an upvote from me. What is the reason really for these negative votes?!!
    – Farzan
    Aug 1, 2019 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, 2021 at 19:25

Please refer to segmentation fault on linux/unix


Not the answer you're looking for? Browse other questions tagged .