
In
computing
Computing is any goal-oriented activity requiring, benefiting from, or creating computer, computing machinery. It includes the study and experimentation of algorithmic processes, and the development of both computer hardware, hardware and softw ...
, a crash, or system crash, occurs when a computer program such as a
software application
Application software is any computer program that is intended for end-user use not computer operator, operating, system administration, administering or computer programming, programming the computer. An application (app, application program, sof ...
or an
operating system
An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs.
Time-sharing operating systems scheduler (computing), schedule tasks for ...
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
A software bug is a design defect ( bug) in computer software. A computer program with many or serious bugs may be described as ''buggy''.
The effects of a software bug range from minor (such as a misspelled word in the user interface) to sev ...
. Typical causes include accessing invalid memory addresses, incorrect address values in the
program counter
The program counter (PC), commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR), the instruction counter, or just part of the instruction sequencer, ...
,
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
In engineering, debugging is the process of finding the Root cause analysis, root cause, workarounds, and possible fixes for bug (engineering), bugs.
For software, debugging tactics can involve interactive debugging, control flow analysis, Logf ...
. The original bug can be far removed from the
code
In communications and information processing, code is a system of rules to convert information—such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret, for communication through a communicati ...
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
A hacker is a person skilled in information technology who achieves goals and solves problems by non-standard means. The term has become associated in popular culture with a security hackersomeone with knowledge of bug (computing), bugs or exp ...
execute
arbitrary code, allowing the replication of
viruses
A virus is a submicroscopic infectious agent that replicates only inside the living cells of an organism. Viruses infect all life forms, from animals and plants to microorganisms, including bacteria and archaea. Viruses are found in almo ...
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
A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology.
In ...
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
A debugger is a computer program used to test and debug other programs (the "target" programs). Common features of debuggers include the ability to run or halt the target program using breakpoints, step through code line by line, and display ...
if one is installed. Some applications attempt to recover from the error and continue running instead of
exiting.
An application can also contain
code
In communications and information processing, code is a system of rules to convert information—such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret, for communication through a communicati ...
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
A video game or computer game is an electronic game that involves interaction with a user interface or input device (such as a joystick, game controller, controller, computer keyboard, keyboard, or motion sensing device) to generate visual fe ...
) unexpectedly quits, abruptly taking the user back to the
desktop
A desktop traditionally refers to:
* The surface of a desk (often to distinguish office appliances that fit on a desk, such as photocopiers and printers, from larger equipment covering its own area on the floor)
Desktop may refer to various compu ...
. 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. Many times there is 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
In physics, sound is a vibration that propagates as an acoustic wave through a transmission medium such as a gas, liquid or solid.
In human physiology and psychology, sound is the ''reception'' of such waves and their ''perception'' by the br ...
(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.
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
A web server is computer software and underlying Computer hardware, hardware that accepts requests via Hypertext Transfer Protocol, HTTP (the network protocol created to distribute web content) or its secure variant HTTPS. A user agent, co ...
behind a website may crash, rendering it inaccessible entirely or providing only an error message instead of normal content.
For example, if a site is using an SQL database (such as
MySQL
MySQL () is an Open-source software, open-source relational database management system (RDBMS). Its name is a combination of "My", the name of co-founder Michael Widenius's daughter My, and "SQL", the acronym for Structured Query Language. A rel ...
) for a script (such as
PHP) and that SQL database server crashes, then
PHP will display a connection error.
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 multi-tasking operating systems, such as
Linux
Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
, and
macOS
macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
, usually remain unharmed when an application program crashes.
Some operating systems, e.g.,
z/OS
z/OS is a 64-bit operating system for IBM z/Architecture mainframes, introduced by IBM in October 2000. It derives from and is the successor to OS/390, which in turn was preceded by a string of MVS versions.Starting with the earliest:
...
, have facilities for
Reliability, availability and serviceability
Reliability, availability and serviceability (RAS), also known as reliability, availability, and maintainability (RAM), is a computer hardware engineering term involving reliability engineering, high availability, and serviceability design. The p ...
(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
Software consists of computer programs that instruct the Execution (computing), execution of a computer. Software also includes design documents and specifications.
The history of software is closely tied to the development of digital comput ...
, or a program crash. Errors or crashes on the
Novell
Novell, Inc. () was an American software and services company headquartered in Provo, Utah, that existed from 1980 until 2014. Its most significant product was the multi-platform network operating system known as NetWare. Novell technolog ...
NetWare network operating system are usually called ABENDs. Communities of
NetWare administrators sprang up around the Internet, such a
abend.org
This usage derives from the ''ABEND'' macro on IBM
OS/360, ...,
z/OS
z/OS is a 64-bit operating system for IBM z/Architecture mainframes, introduced by IBM in October 2000. It derives from and is the successor to OS/390, which in turn was preceded by a string of MVS versions.Starting with the earliest:
...
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
In mathematics, division by zero, division (mathematics), division where the divisor (denominator) is 0, zero, is a unique and problematic special case. Using fraction notation, the general example can be written as \tfrac a0, where a is the di ...
).
[List of ABEND codes](_blank)
on madisoncollege.edu 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".
["Abend"](_blank)
on dictionary.die.net
Security and privacy implications of crashes
Depending on the application, the crash may contain the user's sensitive and
private information. Moreover, many software bugs which cause crashes are also
exploitable for
arbitrary code execution and other types of
privilege escalation
Privilege escalation is the act of exploiting a Software bug, bug, a Product defect, design flaw, or a configuration oversight in an operating system or software application to gain elevated access to resource (computer science), resources that ar ...
.
For example, a
stack buffer overflow
In software, a stack buffer overflow or stack buffer overrun occurs when a program writes to a memory address on the program's call stack outside of the intended data structure, which is usually a fixed-length buffer.
Stack buffer overflow bugs ...
can overwrite the return address of a subroutine with an invalid value, which will cause, e.g., a
segmentation fault, when the subroutine returns. However, if an exploit overwrites the return address with a valid value, the code in that address will be executed.
Crash reproduction
When crashes are collected in the field using a
crash reporter, the next step for developers is to be able to reproduce them locally. For this, several techniques exist:
STAR uses symbolic execution,
EvoCrash performs evolutionary search.
See also
*
Copy protection
Copy protection, also known as content protection, copy prevention and copy restriction, is any measure to enforce copyright by preventing the reproduction of software, films, music, and other media.
Copy protection is most commonly found on vid ...
*
Crash-only software
*
Data loss
*
Guru Meditation
*
Memory corruption
*
Memory protection
*
Page fault
In computing, a page fault is an exception that the memory management unit (MMU) raises when a process accesses a memory page without proper preparations. Accessing the page requires a mapping to be added to the process's virtual address space ...
*
Reboot
*
Safe mode
Safe mode is a diagnosis, diagnostic mode of a computer operating system (OS). It can also refer to a mode of operation by application software. ''Safe mode'' is intended to help fix most, if not all, problems within an operating system. It is a ...
*
Single-event upset
*
Storage violation
*
SIGILL
*
SystemRescue
*
Undefined behavior
Notes
References
External links
Picking Up The Pieces After A Computer Crash
{{DEFAULTSORT:Crash (Computing)
Computer jargon
Computer errors
Software anomalies