ArticleslgStudy

computer science

Crash (computing)

Crash (computing) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Crash (computing) rather than just read about it. In short: In computing, a crash, or system crash, occurs when a computer program such as a software application or an operating system stops functioning properly and exits. On some operating systems or individual applications, a crash reporting service will report the crash and any details relating to it (or give the user the option to do so), usually to the developer(s) of the application.

Crash (computing) — main illustration
Crash (computing) — illustration

Key takeaways

  • Crash (computing) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Crash (computing) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Crash (computing) from memory before moving on to harder problems.

Reference excerpt

In computing, a crash, or system crash, occurs when a computer program such as a software application or an operating system stops functioning properly and exits. On some operating systems or individual applications, a crash reporting service will report the crash and any details relating to it (or give the user the option to do so), usually to the developer(s) of the application. If the program is a critical part of the operating system, the entire system may crash or hang, often resulting in a kernel panic or fatal system error. Most crashes are the result of a software bug. Typical causes include accessing invalid memory addresses, incorrect address values in the program counter, buffer overflow, overwriting a portion of the affected program code due to an earlier bug, executing invalid machine instructions (an illegal or unauthorized opcode), or triggering an unhandled exception. The original software bug that started this chain of events is typically considered to be the cause of the crash, which is discovered through the process of debugging. The original bug can be far removed from the code that actually triggered the crash. In early personal computers, attempting to write data to hardware addresses outside the system's main memory could cause hardware damage. Some crashes are exploitable and let a malicious program or hacker execute arbitrary code, allowing the replication of viruses or the acquisition of data which would normally be inaccessible.

Application crashes An application typically crashes when it performs an operation that is not allowed by the operating system. The operating system then triggers an exception or signal in the application. Unix applications traditionally responded to the signal by dumping core. Most Windows and Unix GUI applications respond by displaying a dialogue box (such as the one shown in the accompanying image on the right) with the option to attach a debugger if one is installed. Some applications attempt to recover from the error and continue running instead of exiting. An application can also contain code to crash after detecting a severe error. Typical errors that result in application crashes include:

attempting to read or write memory that is not allocated for reading or writing by that application (e.g., segmentation fault, x86-specific general protection fault) attempting to execute privileged or invalid instructions attempting to perform I/O operations on hardware devices to which it does not have permission to access passing invalid arguments to system calls attempting to access other system resources to which the application does not have permission to access attempting to execute machine instructions with bad arguments (depending on CPU architecture): divide by zero, operations on denormal number or NaN (not a number) values, memory access to unaligned addresses, etc.

Crash to desktop A "crash to desktop" (CTD) is said to occur when a program (commonly a video game) unexpectedly quits, abruptly taking the user back to the desktop. Usually, the term is applied only to crashes where no error is displayed, hence all the user sees as a result of the crash is the desktop. There is often no apparent action that causes a crash to desktop. During normal function, the program may freeze for a shorter period of time, and then close by itself. Also during normal function, the program may become a black screen and repeatedly play the last few seconds of sound (depending on the size of the audio buffer) that was being played before it crashes to desktop. Other times, it may appear to be triggered by a certain action, such as loading an area. An example of a triggering CTD error can be found in Blender 3D. When the user is in edit mode, they can use ctrl+B to bevel an edge. If the user uses the undo function through ctrl+Z during the free-mouse bevel process, the software has a high chance to simply close through a CTD error. CTD bugs are considered particularly problematic for users. Since they frequently display no error message, it can be very difficult to track down the source of the problem, especially if the times they occur and the actions taking place right before the crash do not appear to have any pattern or common ground. One way to track down the source of the problem for games is to run them in windowed mode. Certain operating system versions may feature one or more tools to help track down causes of CTD problems. Some computer programs such as StepMania and BBC's Bamzooki also crash to desktop if in full-screen, but display the error in a separate window when the user has returned to the desktop.

Web server crashes The software running the web server behind a website may crash, rendering it inaccessible entirely or providing only an error message instead of normal content. For example, while the web server itself might remain active, a crash in the backend database (like MySQL) creates a dependency failure, forcing the site to display a 500 Internal Server Error instead of the requested page.

Operating system crashes

An operating system crash commonly occurs when a hardware exception occurs that cannot be handled. Operating system crashes can also occur when internal sanity-checking logic within the operating system detects that the operating system has lost its internal self-consistency. Modern multitasking operating systems, such as Linux, and macOS, usually remain unharmed when an application program crashes. Some operating systems, e.g., z/OS, have facilities for Reliability, availability and serviceability (RAS) and the OS can recover from the crash of a critical component, whether due to hardware failure, e.g., uncorrectable ECC error, or to software failure, e.g., a reference to an unassigned page.

Abnormal end An abnormal end or ABEND is an abnormal termination of software, or a program crash. Errors or crashes on the Novell NetWare network operating system are usually called ABENDs. Communities of NetWare administrators sprang up around the Internet, such as abend.org. This usage derives from the ABEND macro on IBM OS/360, ..., z/OS operating systems. Usually capitalized, but may appear as "abend". Some common ABEND codes are System ABEND 0C7 (data exception) and System ABEND 0CB (division by zero). Abends can be "soft" (allowing automatic recovery) or "hard" (terminating the activity). The term is jocularly claimed to be derived from the German word "Abend" meaning "evening".

… excerpt ends here. Continue reading the full article.

Illustrations

Crash (computing): A kernel panic displayed on an iMac. This is the most common form of an operating system failure in Unix-like systems.
A kernel panic displayed on an iMac. This is the most common form of an operating system failure in Unix-like systems.
Crash (computing): A display at Frankfurt Airport running a program under Windows XP that has crashed due to a memory read access violation
A display at Frankfurt Airport running a program under Windows XP that has crashed due to a memory read access violation
Crash (computing): Forced crash on a Chromium-based web browser
Forced crash on a Chromium-based web browser
Crash (computing): A standard crash message on iOS
A standard crash message on iOS
Crash (computing): A blue screen of death as displayed in Windows 10 and 11
A blue screen of death as displayed in Windows 10 and 11

Worked examples

Example 1 — a first encounter with Crash (computing)

Start with the simplest possible case. Write down what Crash (computing) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Crash (computing) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Crash (computing) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Crash (computing)

In research
Crash (computing) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Crash (computing) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Crash (computing) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer errors, Computer jargon, Software anomalies, so understanding it makes those chapters shorter.
In everyday life
Look for Crash (computing) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Crash (computing)” →

How to study Crash (computing) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Crash (computing) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Crash (computing) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Crash (computing) in simple terms?

In computing, a crash, or system crash, occurs when a computer program such as a software application or an operating system stops functioning properly and exits. On some operating systems or individual applications, a crash reporting service will report the crash and any details relating to it (or…

Why does Crash (computing) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Crash (computing)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Crash (computing).

Tags

  • Computer errors
  • Computer jargon
  • Software anomalies

Keep exploring