0

Do these two [App crash and segfault] terms refer to the same phenomenon? Or is it that SegFault is just one of the reason for Application crash.

I searched thr stackoverflow however did not get a clear answer. one relevant post is here. Common Causes of Operating System Crashes

Community
  • 1
  • 1
Jack
  • 741
  • 1
  • 8
  • 25

1 Answers1

0

Dividing by zero is a reason an application can crash, but it's not a segmentation fault. And if you catch and repair a segmentation fault, it won't cause the application to crash.

David Schwartz
  • 179,497
  • 17
  • 214
  • 278
  • Thanks David. This cleared my confusion. Is there any other reason for a crash? – Jack Jul 05 '13 at 11:44
  • 1
    There are tons of reasons for crashes. An assertion is one -- where the code encounters a condition the programmer told it should cause it to crash. Also, executing an illegal instruction, a floating point exception, division by zero, stack overflow, attempting direct I/O without appropriate privileges, and so on. – David Schwartz Jul 05 '13 at 11:47