Bug check

Bug check

A bug check (also known as a system crash, stop error, or kernel error) is when the Windows operating system halts the moment it reaches a condition where it cannot operate safely. A bug check can be deliberately caused from a kernel-mode driver with either the KeBugCheck or KeBugCheckEx function. However, this should only be done as a last option when a critical driver has corrupted data and it is impossible to recover from the problem.

Overview

When a bug check is issued a crash dump file will be created if the system is configured to create them. This file contains a snapshot of useful low-level information about the system that can be used to debug the root cause of the problem.

If the user has enabled it, the system will write an entry to the system event log. The log entry contains information about the bug check (including the bug check code and its parameters) as well as a link which will report the bug to Microsoft and provide the user with prescriptive suggestions if the cause of the check is definitive and well-known.

Next, if a kernel debugger is connected and active when the bug check occurs, the system will break into the debugger where the cause of the crash can be investigated. If no debugger is attached, then a blue text screen is displayed that contains information about why the error occurred, which is called a blue screen or bug check screen.

The user will only see the blue screen if the system is not configured to Automatically Restart (which became the default setting in Windows XP). Otherwise, it appears as though the system just rebooted (blue screen might be seen for just an instant).

Note that bug checks are only supported by the Windows NT kernel. The corresponding system routine in Windows 9x, named SHELL_SYSMODAL_Message, doesn't halt the system like bug checks do; it just displays a BSoD and allows the user to continue execution.

The Windows DDK and the WinDbg documentation both have reference information about most bug checks. The WinDbg package is available as a free download and can be installed by most users. The Windows DDK is larger and more complicated to install.

References

Microsoft, "Debugging Tools for Windows", 20 June 2005.

See also

* Kernel panic

External links

* [http://www.microsoft.com/whdc/devtools/debugging/default.mspx Debugging Tools for Windows]
* [http://msdn2.microsoft.com/en-us/library/ms789516.aspx List of Bug Check codes in the DDK documentation at MSDN]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Check Wikipedia — Wikiproyecto:Check Wikipedia Saltar a navegación, búsqueda Esta página contiene de forma consciente fallos ortográficos. Los bots no deben intentar corregirlos. Atajo PR:CWPR:CW …   Wikipedia Español

  • Machine Check Exception — A Machine Check Exception (MCE) is a type of computer hardware error that occurs when a computer s central processing unit detects a hardware problem. Microsoft Windows displays the error using the blue screen of death containing the error… …   Wikipedia

  • Software bug — To report a MediaWiki error on Wikipedia, see Wikipedia:Bug reports. A software bug is the common term used to describe an error, flaw, mistake, failure, or fault in a computer program or system that produces an incorrect or unexpected result, or …   Wikipedia

  • Time-of-check-to-time-of-use — A time of check to time of use bug (TOCTTOU − pronounced TOCK too ) is a software bug caused by changes in a system between the checking of a condition (such as a security credential) and the use of the results of that check. It is a kind of race …   Wikipedia

  • Web bug — A web bug is an object that is embedded in a web page or e mail and is usually invisible to the user but allows checking that a user has viewed the page or e mail.[1] One common use is in e mail tracking. Alternative names are web beacon,… …   Wikipedia

  • Mantis Bug Tracker — Screenshot  MantisBT Actual Work …   Wikipedia

  • Apartment Lady Bug — (Задар,Хорватия) Категория отеля: 3 звездочный отель Адрес: Benka Benkovića 30, 2 …   Каталог отелей

  • Time-of-Check-to-Time-Of-Use-Problem — Der Begriff Time of Check to Time Of Use Problem, abgekürzt auch als TOCTTOU (ausgesprochen als TOCK too) beschreibt ein durch einen Programmfehler (Software Bug) bei der Ausführung Computerprogrammen auftretendes Problem. Allgemein wird damit… …   Deutsch Wikipedia

  • Hexspeak — Hexspeak, like leetspeak, is a novelty form of variant English spelling. Hexspeak was created by programmers who wanted a magic number, a clear and unique identifier with which to mark memory or data. Using hexadecimal notation, which includes… …   Wikipedia

  • Hexspeak — Эта статья содержит незавершённый перевод с иностранного языка. Вы можете помочь проекту, переведя её до конца. Если вы знаете, на каком языке написан фрагмент, укажите его в этом шаблоне …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”