What is the most likely causes of signal 11, also know as "segmentation fault"?
Asked
Active
Viewed 3e+01k times
2 Answers
68
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.
-
7This is such an informative answer, why would it get 4 negative votes? (the reason it's only -3 is because I just upvoted it). – user1271772 Jun 23 '19 at 22:24
-
2Got an upvote from me. What is the reason really for these negative votes?!! – Farzan Aug 01 '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 03 '21 at 19:25
http://meta.stackexchange.com/questions/17463/ http://meta.stackexchange.com/questions/12513/
– Zoredache Sep 22 '09 at 05:45