Common Causes of Operating System Crashes

16,279

Solution 1

In my opinion

  1. Bad drivers
  2. Kernel bugs
  3. Hardware failure
  4. End of resources

A modern operating system will not let a mere application crash it.

Solution 2

It's Buggy Drivers that cause OS crashes. Only the OS itself and drivers are able to harm the system.

To your suggestions:

  1. No OS has problems if an application accesses the same memory as the OS. Either the memory is accessible or it is not. If an application tries to access memory that it should not the CPU generates a segmentation-fault. The OS hands this over to the application and the problem is solved. (in 99% the app will crash afterwards, but that's not the fault of the OS).

  2. You're suggesting that slower programs are more safe. That's not true. The OS does not need to know what exactly your program is doing.

Solution 3

In modern OS, application code and OS code run in separate address spaces. The application code cannot crash the operating system. See here:

http://en.wikipedia.org/wiki/Ring_(computer_security)

The most common readon for a crash is code that is acting as part of the OS interfearing with other code that is acting as part of the OS. A common cause is poorly written device drivers that live in the OS's address space.

Less often, crashes are caused by hardware faulures.

Solution 4

Any OS crash can occur due to either of the two main reasons:

  1. Hardware Problem.
  2. Software Problem.

HARDWARE PROBLEMS:

  1. Power Related problems: Improper functioning of the System Power Supply can lead to immediate shutting down of the System.

  2. Overheating of RAM: Overheating RAM could lead to corruption of data in it.This can lead to definite crash where reset is a must.

  3. Improper Overclocking: Causes Overheating. Certain Hardware Components are sensitive to heat. When Overheating occurs automatically the system shuts down.

  4. Bad Sectors in Hard Drive: The Hard disk is divided into sectors where data is stored. Some sectors become Bad sectors. Reasons: a. Prolonged usage - many writes and reads. b. Manufacturing defect. If sectors in the hard disk, where important system information is stored, becomes a bad sector then it is difficult to load those files, thus leading to a crash.

  5. RAM Issues: Cause: Data retrieval not possible. This is very important as this leads to Fatal Exception Error

Major Misconception: An application crash in your system does not always lead to a system crash. Generally "Nothing" happens to the OS. It just sends you a report saying so and so application has crashed.

SOFTWARE PROBLEMS:

  1. Corrupt Registry: Before starting any application, the OS looks into its registry. Registry is a small Database where all the information about kernel, drivers and information about applications are stored. Registry can get corrupted due to improper uninstallation of applications, careless editing of registry, too many installed applications etc. More causes of Corrupt Registry. This leads to routine applications refusing to start thus causing the Blue Screen of Death to be displayed.
  2. Improper Drivers : In order to use additional hardware, we need drivers, generally downloaded from the internet. These drivers might contain bugs. These bugs cause the OS to crash. Modern operating systems are released with the option of "Safe Mode Boot". Safe Mode Boot loads only important drivers (minimum) and not all. Safe Mode Boot is used for diagnostic purposes to find the driver with bugs.
  3. Virus and Trojan: Common reasons for OS crash. Viruses and Trojans corrupt the system files, "eat up" the memory not allowing OS to retrieve it when a programs stops, changes administrative settings, frequent rebooting without any sign etc
  4. Thrashing: Deadlock occurs when two programs running require control over a particular resource. Sometimes during a deadlock, the OS tries to switch back and forth between the two programs. This eventually leads to Thrashing where the hard drive is being overworked by moving information between the system memory and virtual memory excessively causing a system crash.
Share:
16,279
devinmoore
Author by

devinmoore

Updated on June 04, 2022

Comments

  • devinmoore
    devinmoore almost 2 years

    I am interested to learn: what are the most common technical causes (from the perspective of operating system programming) of an operating system crash (not limited to Windows crashes)? I'm looking for an answer not like "too many apps open", but what specifically happens when too many apps are open that causes the crash.

  • Suma
    Suma over 15 years
    Nice list, however "end of resources" should not cause a crash unless there is a bad driver, or bad kernel. Good code should handle all resource allocation failures gracefull. It is however true that this is quite common type of driver bug.
  • Moisés Belchín
    Moisés Belchín over 15 years
    1. "Segmentation fault" (or GPF in Windows land) is the term you are looking for when an application tries to access memory that it's not allowed to. "Page fault" refers to when a section of memory is accessed but it's been swapped out to virtual memory.
  • Sklivvz
    Sklivvz over 15 years
    I was thinking about "fork bombs" and root file system full
  • Nils Pipenbrinck
    Nils Pipenbrinck over 15 years
    dan, thanks for pointing that out. I've edited the post.
  • Zan Lynx
    Zan Lynx about 15 years
    I am voting this up because deadlocks and livelocks are a very common cause of operating system failure.