Post · 46 min read· pp. 2844–2875

Bug Check Codes

DRAFT: Take more than your usual care.

The Windows kernel has always been able to stop itself, and thus the whole of Windows, if something has gone so seriously wrong that execution can’t continue—or just wrong enough to doubt the safety of even trying to continue. The documentation’s description of an “immediate, controlled shutdown” must of course be understood as relative. The system does what it can—and it tends not to be appreciated even nearly enough how much work Microsoft has put in to this—but what can be done cannot be much.

The whole point to stopping is that everything is suspect. Just being able to control the crash is no small feat of planning. For instance, the kernel would ideally save a crash dump for subsequent analysis by “an experienced debugging technician”, but the cause of the crash could be a driver for disk I/O: therefore disk I/O to save a crash dump goes through a separate set of drivers that have been kept out of the way, hopefully safe from corruption, just in case.

Historically, this dire state of having to stop Windows was presented to the user by reverting to the video BIOS’s text mode—again, drivers can’t be trusted—to fill the display with white monotype characters on a blue background which has become known colloquially as the Blue Screen Of Death. The verb phrase blue screen and the acronym BSOD are very common in users’ descriptions.

To get to this state programmatically, one of the kernel’s exported functions KeBugCheck or KeBugCheckEx is called, whether by the kernel itself or by some kernel-mode module such as the HAL or a driver, or the kernel calls directly to some internal routine that is anyway the essence of KeBugCheckEx. The one KeBugCheck argument, which is also the first of the KeBugCheckEx arguments, becomes the defining characteristic. Microsoft’s C-language declarations of the function have always named this as BugCheckCode and so the term bug check code is common, but the term stop code is also common because that’s how it was originally presented to users:

text
*** STOP: BugCheckCode (BugCheckParameter1, BugCheckParameter2, BugCheckParameter3, BugCheckParameter4)

Each of this line’s placeholders is in C-language hexadecimal notation. Most versions follow with at least some attempt to render the BugCheckCode in something closer to plain language. The earliest versions tend to be brief about this, contenting themselves with the bug check’s symbolic name such as INACCESSIBLE_BOOT_DEVICE or a single-line explanation such as “Mismatched kernel and hal image”, on the way to naming executable modules that look relevant and to showing something of the machine state. Later versions leave such programming details to be recovered from a crash dump and instead get more expansive with a plain-language interpretation and some suggestions for troubleshooting. Users apparently didn’t feel helped either way: the practical history of how Microsoft presents bug checks to users has ever since been one of reducing them to uselessness for everyone.

If too few users ever did have the experience that the technical gibberish on the blue screen actually did get the problem solved, it’s not the fault of the gibberish. To the programmer of a driver whose fault just stopped Windows for a customer, the bug check code and the resolution of a bug check parameter to a relative address within the driver, as read from the display by the customer and relayed over the telephone, will sometimes have sufficed for identifying the fault and fixing it in the next build. Of course, not all programmers of kernel-mode drivers have the luxury of having specialised enough to know their work so well, and not all problems that stop Windows have a cause that’s so immediate that deduction is even possible just from what the kernel can show on the blue screen at the time of detection. Indeed, not all problems that stop Windows are the fault of third-party drivers. A good proportion are coding errors in Microsoft’s own drivers and even in the kernel itself, especially in new functionality. Many bug checks are not understood without very close and lengthy study using specialised tools (a debugger) and highly specialised knowledge. But almost all are understandable with enough skill, experience and attention—and all such analysis starts with the bug check code. Even if it only sometimes ends there too, Microsoft was not wrong to write in the Windows NT 3.51 Resource Kit that

The content of the symbolic string may suggest, to a trained technician, the part of the Kernel that detected the condition from which there was no recourse but to stop.

Documentation Status

Given this early recognition by Microsoft that bug check codes are useful, the natural expectation is that they’ve always been documented. They might even be thought important to document, not just for advanced programmers (who are this website’s intended readers) but for the system administrators and other support staff who will be the first port of call for users who have Windows stop on them. After all, Microsoft’s own words at the end of every blue screen from the first release were:

text
Restart your computer. If this message reappears, do not restart.
Contact your system administrator or technical support group, and/or
peripheral device vendor.

Quite what Microsoft imagined could result from such contact, back then, is unclear. Definitive documentation is surprisingly hard to pin down for the early versions and I don’t think it’s unfair to say that Microsoft has never given more than the appearance of providing good documentation to work from.

Enumeration

The tables below list every bug check code that is known in any of several ways:

  • from any BUGCODES.H in a DDK or WDK;
  • from the message resource in any x86 or x64 kernel;
  • from known use by a kernel-mode binary, e.g., as the first argument for a call to KeBugCheckEx.

The first two are closely related since the header and the resource look to be generated by the Message Compiler from the same input. Every message resource has a #define in the header, but not conversely. Some message resources are not bug check codes but instead elaborate the description of bug checks, e.g., to suggest options for product support or diagnosis. The third way that bug check codes are known for the tables below is more problematic: discovering bug check codes that are used without being formally defined is, of course, only ever a work in progress.

The Name given for a Value is from the corresponding #define in BUGCODES.H. A Value for which the Name is not in bold is thought to have never been intended as a bug check.

The Versions given for a Value are those that have a definition in BUGCODES.H from the corresponding kit or have a message in the compiled resource from the corresponding kernel. The following shorthands are used for changes that are yet noticed to have occurred within a version:

  • late 4.0 starts with Windows NT 4.0 SP6;
  • mid 5.1 starts with Windows XP SP1;
  • late 5.1 starts with Windows XP SP2;
  • late 5.2 starts with Windows Server 2003 SP1;
  • late 6.0 starts with Windows Vista SP1.

The shorthand “all” in the Versions column means version 3.10 and higher. The survey presently reaches to the 1803 release of Windows 10. If you want more up-to-date information, try getting it from Microsoft.

That a bug check is listed as “used by kernel” presently means that the 32-bit kernel in the listed versions has code that would raise the bug check. Other bug checks are specifically 64-bit and many more are raised only by the HAL or by drivers. Enumerating these is left for another time (or may be in progress). It’s very plausible that even more can be raised only in checked builds. These are unlikely ever to be taken up here. The aim is anyway not for an exhaustive list of all use. That a bug check is not listed as used does not mean it is not used, only that I haven’t found where in a more or less mechanical survey. Again, if you want comprehensiveness, try getting it from Microsoft—and, better yet, wonder why getting it from Microsoft, who have just stopped your computer, should be any sort of effort.

The word “all” for versions in the Known Use column is short for all applicable versions (as listed in the Versions column): no case is known (or expected) of a bug check being used before it is defined. Contrast with the many in which a bug check is known to be used before it is documented.

Original

Windows was born with 127 different types of bug check. How many were actually possible is not known. Some may have been intended for portability and never got developed for the i386 (which is the only originally supported processor architecture that this note can be interested in). Many are plainly intended for use by particular drivers or types of driver. Such cases aside, that a bug check code is defined this early likely means that the unrecoverable trouble it signifies is with functionality that’s fundamental. Among the implications is that many of these bug checks can be raised by the kernel in all known versions and are even still among the most frequently encountered in real-world use.

ValueNameVersionsKnown UseRemarks
0x01APC_INDEX_MISMATCHallkernel in 3.10; kernel in 6.0 and higher
0x02DEVICE_QUEUE_NOT_BUSYall
0x03INVALID_AFFINITY_SETallkernel in 3.10 to 5.2
0x04INVALID_DATA_ACCESS_TRAPall
0x05INVALID_PROCESS_ATTACH_ATTEMPTallkernel in 4.0 and higher
0x06INVALID_PROCESS_DETACH_ATTEMPTallkernel in 5.0 and higher
0x07INVALID_SOFTWARE_INTERRUPTall
0x08IRQL_NOT_DISPATCH_LEVELall
0x09IRQL_NOT_GREATER_OR_EQUALall
0x0AIRQL_NOT_LESS_OR_EQUALallkernel in all; HAL in 6.0 to 6.1
0x0BNO_EXCEPTION_HANDLING_SUPPORTall
0x0CMAXIMUM_WAIT_OBJECTS_EXCEEDEDallkernel in all
0x0DMUTEX_LEVEL_NUMBER_VIOLATIONallkernel in 3.10
0x0ENO_USER_MODE_CONTEXTallkernel in all
0x0FSPIN_LOCK_ALREADY_OWNEDall
0x10SPIN_LOCK_NOT_OWNEDall
0x11THREAD_NOT_MUTEX_OWNERallkernel in 3.10
0x12TRAP_CAUSE_UNKNOWNallkernel in all
0x13EMPTY_THREAD_REAPER_LISTall
0x14CREATE_DELETE_LOCK_NOT_LOCKEDallkernel in 3.10
0x15LAST_CHANCE_CALLED_FROM_KMODEall
0x16CID_HANDLE_CREATIONall
0x17CID_HANDLE_DELETIONallkernel in all
0x18REFERENCE_BY_POINTERallkernel in 3.10 to 3.51; kernel in 6.0 and higher
0x19BAD_POOL_HEADERallkernel in 3.51; kernel in 6.0 and higher
0x1AMEMORY_MANAGEMENTallkernel in all
0x1BPFN_SHARE_COUNTall
0x1CPFN_REFERENCE_COUNTall
0x1DNO_SPIN_LOCK_AVAILABLEall
0x1EKMODE_EXCEPTION_NOT_HANDLEDallkernel in all
0x1FSHARED_RESOURCE_CONV_ERRORall
0x20KERNEL_APC_PENDING_DURING_EXITallkernel in all
0x21QUOTA_UNDERFLOWallkernel in 6.0 and higher
0x22FILE_SYSTEMallkernel in all
0x23FAT_FILE_SYSTEMall
0x24NTFS_FILE_SYSTEMall
0x25NPFS_FILE_SYSTEMall
0x26CDFS_FILE_SYSTEMall
0x27RDR_FILE_SYSTEMall
0x28CORRUPT_ACCESS_TOKENall
0x29SECURITY_SYSTEMallkernel in all
0x2AINCONSISTENT_IRPall
0x2BPANIC_STACK_SWITCHall
0x2CPORT_DRIVER_INTERNALall
0x2DSCSI_DISK_DRIVER_INTERNALall
0x2EDATA_BUS_ERRORall
0x2FINSTRUCTION_BUS_ERRORall
0x30SET_OF_INVALID_CONTEXTallkernel in all
0x31PHASE0_INITIALIZATION_FAILEDallkernel in all
0x32PHASE1_INITIALIZATION_FAILEDallkernel in all
0x33UNEXPECTED_INITIALIZATION_CALLallkernel in all
0x34CACHE_MANAGERallkernel in all
0x35NO_MORE_IRP_STACK_LOCATIONSallkernel in all
0x36DEVICE_REFERENCE_COUNT_NOT_ZEROallkernel in 3.10 to 4.0
0x37FLOPPY_INTERNAL_ERRORall
0x38SERIAL_DRIVER_INTERNALall
0x39SYSTEM_EXIT_OWNED_MUTEXallkernel in 6.0 and higher
0x3ASYSTEM_UNWIND_PREVIOUS_USERall
0x3BSYSTEM_SERVICE_EXCEPTIONall
0x3CINTERRUPT_UNWIND_ATTEMPTEDall
0x3DINTERRUPT_EXCEPTION_NOT_HANDLEDall
0x3EMULTIPROCESSOR_CONFIGURATION_NOT_SUPPORTEDallkernel in all
0x3FNO_MORE_SYSTEM_PTESallkernel in all
0x40TARGET_MDL_TOO_SMALLallkernel in 3.10 to 6.1
0x41MUST_SUCCEED_POOL_EMPTYallkernel in all
0x42ATDISK_DRIVER_INTERNALall
0x43NO_SUCH_PARTITIONall
0x44MULTIPLE_IRP_COMPLETE_REQUESTSallkernel in all
0x45INSUFFICIENT_SYSTEM_MAP_REGSall
0x46DEREF_UNKNOWN_LOGON_SESSIONallkernel in all
0x47REF_UNKNOWN_LOGON_SESSIONall
0x48CANCEL_STATE_IN_COMPLETED_IRPallkernel in all
0x49PAGE_FAULT_WITH_INTERRUPTS_OFFall
0x4AIRQL_GT_ZERO_AT_SYSTEM_SERVICEallkernel in 6.0 and higher
0x4BSTREAMS_INTERNAL_ERRORall
0x4CFATAL_UNHANDLED_HARD_ERRORallkernel in 3.51 and higher
0x4DNO_PAGES_AVAILABLEallkernel in all
0x4EPFN_LIST_CORRUPTallkernel in all
0x4FNDIS_INTERNAL_ERRORall
0x50PAGE_FAULT_IN_NONPAGED_AREAallkernel in 3.51 and higher
0x51REGISTRY_ERRORallkernel in all
0x52MAILSLOT_FILE_SYSTEMall
0x53NO_BOOT_DEVICEall
0x54LM_SERVER_INTERNAL_ERRORall
0x55DATA_COHERENCY_EXCEPTIONallkernel in 10.0 and higher
0x56INSTRUCTION_COHERENCY_EXCEPTIONall
0x57XNS_INTERNAL_ERRORall
0x58FTDISK_INTERNAL_ERROR3.10 to 6.0
VOLMGRX_INTERNAL_ERROR6.1 and higher
0x59PINBALL_FILE_SYSTEMall
0x5ACRITICAL_SERVICE_FAILEDallkernel in 3.10 to 3.50; kernel in 6.2 and higher
0x5BSET_ENV_VAR_FAILEDallkernel in 3.10 to 5.2
0x5CHAL_INITIALIZATION_FAILEDallkernel in all; HAL in 5.0 and higher
0x5DHEAP_INITIALIZATION_FAILED3.10 to 3.50kernel in 3.10 to 3.50
undefined3.51 only
UNSUPPORTED_PROCESSOR4.0 and higherkernel in 4.0 and higher
0x5EOBJECT_INITIALIZATION_FAILEDallkernel in all
0x5FSECURITY_INITIALIZATION_FAILEDallkernel in all
0x60PROCESS_INITIALIZATION_FAILEDallkernel in all
0x61HAL1_INITIALIZATION_FAILEDallkernel in all
0x62OBJECT1_INITIALIZATION_FAILEDallkernel in all
0x63SECURITY1_INITIALIZATION_FAILEDallkernel in all
0x64SYMBOLIC_INITIALIZATION_FAILEDallkernel in all
0x65MEMORY1_INITIALIZATION_FAILEDallkernel in all
0x66CACHE_INITIALIZATION_FAILEDallkernel in all
0x67CONFIG_INITIALIZATION_FAILEDallkernel in all
0x68FILE_INITIALIZATION_FAILEDallkernel in all
0x69IO1_INITIALIZATION_FAILEDallkernel in all
0x6ALPC_INITIALIZATION_FAILEDallkernel in all
0x6BPROCESS1_INITIALIZATION_FAILEDallkernel in all
0x6CREFMON_INITIALIZATION_FAILEDallkernel in all
0x6DSESSION1_INITIALIZATION_FAILEDallkernel in all
0x6ESESSION2_INITIALIZATION_FAILED3.10 to 6.3kernel in 3.10 to 6.3
BOOTPROC_INITIALIZATION_FAILED10.0 and higherkernel in 10.0 and higher
0x6FSESSION3_INITIALIZATION_FAILED3.10 to 6.3kernel in 3.10 to 6.3
VSL_INITIALIZATION_FAILED1607 and higher
0x70SESSION4_INITIALIZATION_FAILED3.10 to 6.3kernel in 3.10 to 6.3
SOFT_RESTART_FATAL_ERROR1607 and higher
0x71SESSION5_INITIALIZATION_FAILED3.10 to 6.3kernel in 3.10 to 6.3
0x72ASSIGN_DRIVE_LETTERS_FAILEDallHAL in 3.10 to 3.50; kernel in 3.51 to 6.0
0x73CONFIG_LIST_FAILEDallkernel in all
0x74BAD_SYSTEM_CONFIG_INFOallkernel in all
0x75CANNOT_WRITE_CONFIGURATIONallkernel in 3.10 to 4.0
0x76PROCESS_HAS_LOCKED_PAGESallkernel in 5.0 and higher
0x77KERNEL_STACK_INPAGE_ERRORallkernel in all
0x78PHASE0_EXCEPTIONallkernel in all
0x79MISMATCHED_HALallHAL in all; kernel in 4.0 to 6.2
0x7AKERNEL_DATA_INPAGE_ERRORallkernel in all
0x7BINACCESSIBLE_BOOT_DEVICEallkernel in all
0x7CBUGCODE_PSS_MESSAGE3.10 to 5.0next as 0x40000082
undefined5.1 only
BUGCODE_NDIS_DRIVER5.2 and highersee 0xD2 for history
0x7DINSTALL_MORE_MEMORYallkernel in all
0x7ESYSTEM_THREAD_EXCEPTION_NOT_HANDLED5.1 and higherkernel in 5.1 and higher
0x7FUNEXPECTED_KERNEL_MODE_TRAPallkernel in all
0x80NMI_HARDWARE_FAILUREallHAL in 5.0 and higher
0x81SPIN_LOCK_INIT_FAILUREall

Bug check 0x09 is among the earliest examples of bug checks whose use is known only in checked builds. It’s also an example of the small confusions that have been the everyday lot of the kernel-mode Windows programmer right from the start (with no sign yet of a stop). The KefAcquireSpinLockAtDpcLevel function, which is what a macro redefines KeAcquireSpinLockAtDpcLevel to, is nowadays documented for use at DISPATCH_LEVEL and higher. Call it with a lower IRQL and checked builds raise IRQL_NOT_GREATER_OR_EQUAL. Go back far enough, however, and though the bug check was always IRQL_NOT_GREATER_OR_EQUAL, what’s tested by the early versions is that the IRQL is not exactly DISPATCH_LEVEL.

For bug check 0x14, the text in the compiled message resource for the kernel in versions 3.10 to 4.0 explains bug check 0x13, presumably by oversight.

Microsoft’s documentation is trivially correct that bug check 0x4C “appears very infrequently.” In version 3.51 and higher, it can be a bug check code as an argument for the KeBugCheck functions but it never can show as a stop code. As a BugCheckCode argument it conveys to the kernel that the bug check is a fallback from a hard error that was intended to show to the user without crashing Windows but could not be so shown. What ends up as the bug check code on the stop screen, and is in some few cases documented as its own bug check code, is not 0x4C but the ErrorStatus from the hard error.

Bug check 0x58 is renamed in BUGCODES.H from the WDK for Windows 7 in 2009 but retains its old name in the documentation even today, 2nd July 2020. Even the name change was late, the bug check code having been carried over from FTDISK.SYS to VOLMGRX.SYS for Windows Vista.

Bug check 0x5D is taken up in detail separately. Here, in a list of bug checks and a survey of their history, what’s remarkable about 0x5D is that it’s the first that was redefined. Indeed, it was for a long time the only redefinition. That the first two versions of the Windows kernel work so closely with the user-mode heap is its own fascinating topic, especially for the archaeology of computer security, but what matters here is that version 3.51 had got far enough out of this game that the kernel surely never would again have a Heap Manager whose initialisation failure is fatal. The corresponding bug check was un-defined for version 3.51, both in BUGCODES.H and in the kernel’s message resource, though it persisted in the Windows NT 3.51 Resource Kit. That version 4.0 repurposes it to complain of not supporting any 80386 will have seemed natural since earlier versions had been (arguably) misusing the neighbouring bug check 0x5C to reject early steppings of the 80386.

Through most of the history of Windows, five points of failure while starting the first user-mode process each have their own bug check: 0x6D to 0x71 inclusive. Version 10.0 collapses them to be five cases of bug check 0x6D, distinguished by the first bug check parameter. Of course, now that Microsoft has simplified the stop screen so that the bug check parameters don’t show, this differentiation may as well be no differentiation at all to anyone who didn’t have the foresight to attach a kernel-mode debugger. Whatever was the purpose—presumably not just for tidiness, else it might have occurred to someone to tidy the bug checks in the documentation too—the redefinitions recovered four codes to reassign to new bug checks. That the numerical value 0x6E is immediately used for an entirely different failure is captured by a new name in BUGCODES.H but not in the documentation. The slightly later repurposing of two more, 0x6F and 0x70, also remains undocumented. Though all three are missed for the documentation, the !analyze command has descriptions such as might have been written as documentation. There’s an example here in microcosm: on causual reading, Microsoft’s documentation of bug checks might look extensive, but close attention reveals that Microsoft takes very little care.

The numerical value 0x7C is the original example of BUGCODES.H defining a symbolic name not for a bug check code but for a message identifier that selects text for framing the presentation of actual bug checks. Originally, the message selected by 0x7C ends all stop screens. Several message IDs soon accumulated among the bug check codes. This mingling looks to have been thought unsatisfactory even before the first version’s formal release, which has the beginnings of defining a separate sequence for message IDs at 0x40000000 (see far below).

Bug check 0x7E is here thought to have been originally left undefined as a side-effect of defining 0x4000007E for a message. There was perhaps a scheme of setting the 0x40000000 bit in message IDs and leaving it clear in bug check codes. If so, it was put aside for version 5.1, which redefines 0x7E for a bug check code despite keeping 0x4000007E as a message ID and defines 0x4000007F to 0x40000083 for messages without fear of collision with what had by then been the long-standing bug checks 0x7F to 0x83.

Added for Windows NT 3.50

ValueNameVersionsKnown UseRemarks
0x82DFS_FILE_SYSTEM3.50 and higherdocumented in 4.0 and higher
0x83OFS_FILE_SYSTEM3.50 and higher
0x84RECOM_DRIVER3.50 and higher
0x85SETUP_FAILURE3.50 and higherdocumented in 4.0 and higher
0x86AUDIT_FAILURE3.50 and higherkernel in 3.50 to 5.1
0x87 0x88 0x89 0x8Aundefined
0x8BMBR_CHECKSUM_MISMATCH3.50 and higherdocumented in 4.0 and higher

Bug check 0x86 is superseded by 0xC0000244 (see below, under Miscellany), starting with version 5.2. This new code for the bug check is STATUS_AUDIT_FAILURE, defined not in BUGCODES.H but in NTSTATUS.H. Neither value has ever appeared in the Bug Check Code Reference. This is remarkable because the bug check itself is documented, just not the bug check code. At least as far back as the Windows NT 3.51 Resource Kit, Microsoft documents a registry value named CrashOnAuditFail as available to security-minded administrators to ensure that security-sensitive operations are not possible while the ability to audit them is suspect. If auditing to the Security log ever fails, then “the system will halt and not reboot.” It’s brutal but certain. It evidently did get used, though surely its usefulness was lessened by Microsoft’s leaving administrators with no clear guidance on recognising when a bug check’s occurrence has this particular reason. Some of Microsoft’s difficulty may have come from there being two parts to the implementation: the kernel; and LSASRV.DLL in the LSASS.EXE process. In these versions, the kernel explicitly raises AUDIT_FAILURE as a bug check, but LSASRV raises STATUS_AUDIT_FAILURE as a hard error.

Bug checks 0x87 to 0x8A are here thought to have been left undefined as a side-effect of defining 0x40000087 to 0x40000089 for messages and 0x4000008A for a bug check.

Added for Windows NT 3.51

ValueNameVersionsKnown UseRemarks
0x8CBUGCODE_PSS_CRASH_INIT3.51 to 5.0next as 0x4000008D
0x8DBUGCODE_PSS_CRASH_PROGRESS3.51 to 5.0next as 0x4000008E
0x8EBUGCODE_PSS_CRASH_DONE3.51 to 5.0next as 0x4000008F
KERNEL_MODE_EXCEPTION_NOT_HANDLED5.1 and higherkernel in all
0x8FPP0_INITIALIZATION_FAILED3.51 and higherkernel in 4.0 and higherdocumented in 4.0 and higher
0x90PP1_INITIALIZATION_FAILED3.51 and higherkernel in 4.0 and higherdocumented in 4.0 and higher
0x91WIN32K_INIT_OR_RIT_FAILURE3.51 and higher

Added for Windows NT 4.0

ValueNameVersionsKnown Use
0x92UP_DRIVER_ON_MP_SYSTEM4.0 and higherkernel in 4.0 to 5.2
0x93INVALID_KERNEL_HANDLE4.0 and higherkernel in all
0x94KERNEL_STACK_LOCKED_AT_EXIT4.0 and higherkernel in all
0x95PNP_INTERNAL_ERROR4.0 and higher
0x96INVALID_WORK_QUEUE_ITEM4.0 and higherkernel in all
0x97BOUND_IMAGE_UNSUPPORTED4.0 and higher
0x98END_OF_NT_EVALUATION_PERIOD4.0 and higherkernel in 4.0 to 1607
0x99INVALID_REGION_OR_SEGMENT4.0 and higher
0x9ASYSTEM_LICENSE_VIOLATION4.0 and higherkernel in all
0x9BUDFS_FILE_SYSTEM4.0 and higher
0x9CMACHINE_CHECK_EXCEPTION4.0 and higherHAL in all

Added for Windows 2000

For reasons not yet understood, version 5.0 skips a code. Indeed, it skipped two but one of these was brought into use for Windows Server 2003 (and got documented for Windows Vista).

The presentation of bug checks changed significantly for Windows 2000. A benefit for programmers is that the bug check shows in the debugger before the kernel disables interrupts and stops other processors, let alone before it attempts to present the bug check as a blue screen and well before any attempt to write a crash dump. It even becomes realistic, if only for simple problems, that the programmer who is skilled at debugging can put things right at this first break to the debugger and recover from the bug check. The significant reworking brought with it a proliferation of bug check codes.

ValueNameVersionsKnown UseRemarks
0x9Dundefined
0x9EUSER_MODE_HEALTH_MONITOR5.2 and higherdocumented in 6.0 and higher
0x9FDRIVER_POWER_STATE_FAILURE5.0 and higherkernel in all
0xA0INTERNAL_POWER_ERROR5.0 and higherkernel in alldocumented in 5.1 and higher
0xA1PCI_BUS_DRIVER_INTERNAL5.0 and higherdocumented in 5.1 and higher
0xA2MEMORY_IMAGE_CORRUPT5.0 and higherdocumented in 5.1 and higher
0xA3ACPI_DRIVER_INTERNAL5.0 and higherdocumented in 5.1 and higher
0xA4CNSS_FILE_SYSTEM_FILTER5.0 and higherdocumented in 5.1 and higher
0xA5ACPI_BIOS_ERROR5.0 and higherHAL in alldocumented in 5.1 and higher
0xA6FP_EMULATION_ERROR5.0 and higher
0xA7BAD_EXHANDLE5.0 and higherkernel in 5.0 to 5.1documented in 5.1 and higher
0xA8BOOTING_IN_SAFEMODE_MINIMAL5.0 and higher
0xA9BOOTING_IN_SAFEMODE_NETWORK5.0 and higher
0xAABOOTING_IN_SAFEMODE_DSREPAIR5.0 and higher
0xABSESSION_HAS_VALID_POOL_ON_EXIT5.0 and higherkernel in 5.0 to 6.3documented in 5.1 and higher
0xACHAL_MEMORY_ALLOCATION5.0 and higherHAL in alldocumented in 5.1 and higher
0xADBUGCODE_PSS_MESSAGE_A5.0 onlysee 0x400000AD
0xAEBUGCODE_PSS_MESSAGE_1E5.0 only
0xAFBUGCODE_PSS_MESSAGE_235.0 only
0xB0BUGCODE_PSS_MESSAGE_2E5.0 only
0xB1BUGCODE_PSS_MESSAGE_3F5.0 only
undefined5.1 to 6.1
BGI_DETECTED_VIOLATION6.2 and higher
0xB2BUGCODE_PSS_MESSAGE_7B5.0 only
0xB3BUGCODE_PSS_MESSAGE_7F5.0 only
0xB4VIDEO_DRIVER_INIT_FAILURE5.0 and higherdocumented in 5.1 and higher
0xB5BOOTLOG_LOADED5.0 and higher
0xB6BOOTLOG_NOT_LOADED5.0 and higher
0xB7BOOTLOG_ENABLED5.0 and higher
0xB8ATTEMPTED_SWITCH_FROM_DPC5.0 and higherkernel in alldocumented in 5.1 and higher
0xB9CHIPSET_DETECTED_ERROR5.0 and higherdocumented in 5.1 and higher
0xBASESSION_HAS_VALID_VIEWS_ON_EXIT5.0 and higherkernel in alldocumented in 5.1 and higher
0xBBNETWORK_BOOT_INITIALIZATION_FAILED5.0 and higherkernel in 5.0 to 5.2documented in 5.1 and higher
0xBCNETWORK_BOOT_DUPLICATE_ADDRESS5.0 and higherkernel in 5.2documented in 5.1 and higher
0xBDINVALID_HIBERNATED_STATE5.0 and higher
0xBEATTEMPTED_WRITE_TO_READONLY_MEMORY5.0 and higherkernel in all
0xBFMUTEX_ALREADY_OWNED5.0 and higherdocumented in 5.1 and higher
0xC0PCI_CONFIG_SPACE_ACCESS_FAILURE5.0 and higher
0xC1SPECIAL_POOL_DETECTED_MEMORY_CORRUPTION5.0 and higherkernel in all
0xC2BAD_POOL_CALLER5.0 and higherkernel in all
0xC3BUGCODE_PSS_MESSAGE_SIGNATURE5.0 to 6.1
SYSTEM_IMAGE_BAD_SIGNATURE6.2 and higher
0xC4DRIVER_VERIFIER_DETECTED_VIOLATION5.0 and higherkernel in all; HAL in 6.0 only
0xC5DRIVER_CORRUPTED_EXPOOL5.0 and higher
0xC6DRIVER_CAUGHT_MODIFYING_FREE_POOL5.0 and higherkernel in all
0xC7TIMER_OR_DPC_INVALID5.0 and higherkernel in all
0xC8IRQL_UNEXPECTED_VALUE5.0 and higherHAL in 6.0 and higher; kernel in 6.2 and higher
0xC9DRIVER_VERIFIER_IOMANAGER_VIOLATION5.0 and higherkernel in all
0xCAPNP_DETECTED_FATAL_ERROR5.0 and higherkernel in all
0xCBDRIVER_LEFT_LOCKED_PAGES_IN_PROCESS5.0 and higherkernel in all
0xCCPAGE_FAULT_IN_FREED_SPECIAL_POOL5.0 and higher
0xCDPAGE_FAULT_BEYOND_END_OFALLOCATION5.0 and higher
0xCEDRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATIONS5.0 and higher
0xCFTERMINAL_SERVER_DRIVER_MADE_INCORRECT_MEMORY_REFERENCE5.0 and higher
0xD0DRIVER_CORRUPTED_MMPOOL5.0 and higher
0xD1DRIVER_IRQL_NOT_LESS_OR_EQUAL5.0 and higherkernel in 1709 and higher
0xD2BUGCODE_ID_DRIVER5.0 onlynext as 0x40000080
undefined5.1 to 6.1
BUGCODE_ID_DRIVER6.2 and higher
0xD3DRIVER_PORTION_MUST_BE_NONPAGED5.0 and higher
0xD4SYSTEM_SCAN_AT_RAISED_IRQL_CAUGHT_IMPROPER_DRIVER_UNLOAD5.0 and higher
0xD5DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL5.0 and higher
0xD6DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION5.0 and higher
0xD7DRIVER_UNMAPPING_INVALID_VIEW5.0 and higherkernel in all
0xD8DRIVER_USED_EXCESSIVE_PTES5.0 and higherkernel in all
0xD9LOCKED_PAGES_TRACKER_CORRUPTION5.0 and higherkernel in alldocumented in 5.1 and higher
0xDASYSTEM_PTE_MISUSE5.0 and higherkernel in alldocumented in 5.1 and higher
0xDBDRIVER_CORRUPTED_SYSPTES5.0 and higher
0xDCDRIVER_INVALID_STACK_ADDRESS5.0 and higher
0xDDBUGCODE_PSS_MESSAGE_A55.0 only
0xDEPOOL_CORRUPTION_IN_FILE_AREAlate 4.0 and higherkernel in all
0xDFIMPERSONATING_WORKER_THREAD5.0 and higherkernel in all
0xE0ACPI_BIOS_FATAL_ERROR5.0 and higherdocumented in 5.1 and higher
0xE1WORKER_THREAD_RETURNED_AT_BAD_IRQL5.0 and higherkernel in all
0xE2MANUALLY_INITIATED_CRASH5.0 and higherkernel in all
0xE3RESOURCE_NOT_OWNED5.0 and higherkernel in all
0xE4WORKER_INVALID5.0 and higherkernel in all

A bug check 0xAD is documented by Microsoft as VIDEO_DRIVER_DEBUG_REPORT_REQUEST, but what’s declared in BUGCODES.H (and understood by VIDEOPRT.SYS) is 0x400000AD.

The point to 0xAD (and to several others) as a message ID in version 5.0 is that if a crash dump is not written, then the kernel has one last breath for telling the user something more about the bug check. As the symbolic names suggest, this elaborates the original scheme of ending all bug check displays with the text from message BUGCODE_PSS_MESSAGE (0x7C). Version 3.51 had already reduced this just to cases where no crash dump is written. Version 5.0 keeps to this but provides for ending with different text for different bug codes. The suggestions in the symbolic names are mostly clear, but note that BUGCODE_PSS_MESSAGE_A is not just for bug check 0x0A but also for 0xC5, 0xD0, 0xD1, 0xD3 and 0xD4, and BUGCODE_PSS_MESSAGE_23 is for both 0x23 and 0x24.

The numerical value 0xD2 presents quite a puzzle, surely to programmers at the time, and certainly to historians. It needs a few paragraphs to explain…

To the version 5.0 kernel, 0xD2 is not a bug check code but is instead the message ID of text with which to flesh out the description of various other bug checks. These others are all new for Windows 2000: 0xBE, 0xCB to 0xCF and 0xD3 to 0xD6. What they have in common is that the kernel interprets a bug check parameter as identifying a faulting driver. Literally. What the lookup of 0xD2 as a message ID adds to the stop screen’s text in the English releases is

source
This driver may be at fault:
name

The symbolic name BUGCODE_ID_DRIVER for 0xD2 is thus appropriate: it’s in the BUGCODES.H definitions not as a bug check code but to select text for identifying a driver to the user, who perhaps will prefer the directness of finger-pointing by name.

Somehow, the numerical value 0xD2 also gets used in version 5.0 by Microsoft’s NDIS.SYS driver as the bug check code for all unrecoverable NDIS faults, the same as later becomes BUGCODE_NDIS_DRIVER (0x7C).

Bug check 0xDE is here thought to have been back-fitted into version 4.0 for its last service pack, having been intended as new for version 5.0.

Added for Windows XP

ValueNameVersionsKnown UseRemarks
0xE5POWER_FAILURE_SIMULATE5.1 and higher
0xE6DRIVER_VERIFIER_DMA_VIOLATION5.1 and higherkernel in 5.1 to 5.2
unknown, see noteHAL in 6.2 and higher; kernel in 10.0 and higher
0xE7INVALID_FLOATING_POINT_STATE5.1 and higherkernel in 5.1 to 6.0
0xE8INVALID_CANCEL_OF_FILE_OPEN5.1 and higherkernel in all
0xE9ACTIVE_EX_WORKER_THREAD_TERMINATION5.1 and higherkernel in all
0xEATHREAD_STUCK_IN_DEVICE_DRIVER5.1 and higher
0xEBDIRTY_MAPPED_PAGES_CONGESTION5.1 and higherkernel in all
0xECSESSION_HAS_VALID_SPECIAL_POOL_ON_EXIT5.1 and higherkernel in 6.0 and higher
0xEDUNMOUNTABLE_BOOT_VOLUME5.1 and higherkernel in all
0xEEundefined
0xEFCRITICAL_PROCESS_DIED5.1 and higherkernel in all
0xF0STORAGE_MINIPORT_ERROR1703 and higher
0xF1SCSI_VERIFIER_DETECTED_VIOLATION5.1 and higher
0xF2HARDWARE_INTERRUPT_STORM5.1 and higher
0xF3DISORDERLY_SHUTDOWN5.1 and higherkernel in 5.1
0xF4CRITICAL_OBJECT_TERMINATION5.1 and higherkernel in all
0xF5FLTMGR_FILE_SYSTEM5.1 and higherdocumented in late 5.2 and higher
0xF6PCI_VERIFIER_DETECTED_VIOLATION5.1 and higher

Though bug check 0xE6 retains its definition as DRIVER_VERIFIER_DMA_VIOLATION, the known use of it by the kernel in version 10.0 does not fill well enough with this name to allow any suggestion of continuity. The kernel’s use of bug check 0xE6 in versions 5.1 and 5.2 is plainly for a Driver Verifier assertion. In version 10.0, even its connection with DMA is slight. The bug check occurs in a defective call to the new KeFlushIoBuffers function, independently of the Driver Verifier. There is a connection with DMA, however, since a non-zero DmaOperation argument is a necessary condition.

Added for Windows Server 2003

Apparently because versions 5.1 and 5.2 were developed in parallel, several bug checks are defined first for version 5.2 but find their way into service packs of version 5.1. Overlap seems to have been anticipated: 0xF7, 0xF8 and 0xF9 are included in the Bug Check Code Reference in the Windows XP DDK even though they are not in the BUGCODES.H from the same DDK. Indeed, two of them aren’t known to the message resource as compiled into the kernel even for Windows XP SP3.

ValueNameVersionsKnown UseRemarks
0xF7DRIVER_OVERRAN_STACK_BUFFERlate 5.1 and higherkernel in late 5.2 and higher; HAL in 6.1 to 6.2
0xF8RAMDISK_BOOT_INITIALIZATION_FAILED5.2 and higherkernel in all
0xF9DRIVER_RETURNED_STATUS_REPARSE_FOR_VOLUME_OPEN5.2 and higherkernel in all
0xFAHTTP_DRIVER_CORRUPTED5.2 and higherdocumented in late 6.0 and higher
0xFBRECURSIVE_MACHINE_CHECK5.2 and higher
0xFCATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORYlate 5.1 and higherkernel in 6.0 and higherdocumented in late 6.0 and higher
0xFDDIRTY_NOWRITE_PAGES_CONGESTION5.2 and higherdocumented in late 6.0 and higher
0xFEBUGCODE_USB_DRIVERmid 5.1 and higherdocumented in late 5.2 and higher

Added for Windows Vista

ValueNameVersionsKnown UseRemarks
0xFFRESERVE_QUEUE_OVERFLOW6.0 and higher
0x0100LOADER_BLOCK_MISMATCH6.0 and higherkernel in 6.1 and higher
0x0101CLOCK_WATCHDOG_TIMEOUT6.0 and higherkernel in all; HAL in 6.3 and higher
0x0102DPC_WATCHDOG_TIMEOUT6.0 and higherdocumented in 1709 and higher
0x0103MUP_FILE_SYSTEM6.0 and higherdocumented in 6.1 and higher
0x0104AGP_INVALID_ACCESSlate 5.1, late 5.2 and higher
0x0105AGP_GART_CORRUPTIONlate 5.1, late 5.2 and higher
0x0106AGP_ILLEGALLY_REPROGRAMMEDlate 5.1, late 5.2 and higher
0x0107KERNEL_EXPAND_STACK_ACTIVElate 5.2 and higherkernel in 6.0 and higher
0x0108THIRD_PARTY_FILE_SYSTEM_FAILURElate 5.1, late 5.2 and higher
0x0109CRITICAL_STRUCTURE_CORRUPTIONlate 5.2 and higherkernel in 6.0
0x010AAPP_TAGGING_INITIALIZATION_FAILED6.0 and higher
0x010BDFSC_FILE_SYSTEM6.0 and higher
0x010CFSRTL_EXTRA_CREATE_PARAMETER_VIOLATION6.0 and higherkernel in all
0x010DWDF_VIOLATION6.0 and higher
0x010EVIDEO_MEMORY_MANAGEMENT_INTERNAL6.0 and higher
0x010FRESOURCE_MANAGER_EXCEPTION_NOT_HANDLED6.0 onlykernel in 6.0
0x0110DRIVER_INVALID_CRUNTIME_PARAMETER6.0 and higher
0x0111RECURSIVE_NMIlate 5.2 and higherdocumented in late 6.0 and higher
0x0112MSRPC_STATE_VIOLATION6.0 and higher
0x0113VIDEO_DXGKRNL_FATAL_ERROR6.0 and higher
0x0114VIDEO_SHADOW_DRIVER_FATAL_ERROR6.0 and higher
0x0115AGP_INTERNAL6.0 and higher
0x0116VIDEO_TDR_FAILURE6.0 and higher
0x0117VIDEO_TDR_TIMEOUT_DETECTED6.0 and higher
0x0118NTHV_GUEST_ERROR6.0 and higher
0x0119VIDEO_SCHEDULER_INTERNAL_ERROR6.0 and higher
0x011AEM_INITIALIZATION_ERROR6.0 and higher
0x011BDRIVER_RETURNED_HOLDING_CANCEL_LOCK6.0 and higherkernel in 6.2 and higherdocumented in late 6.0, and higher
0x011CATTEMPTED_WRITE_TO_CM_PROTECTED_STORAGE6.0 and higherdocumented in late 6.0 and higher
0x011DEVENT_TRACING_FATAL_ERROR6.0 and higherkernel in alldocumented in late 6.0 and higher
0x011ETOO_MANY_RECURSIVE_FAULTS6.0 and higherkernel in alldocumented in 1709 and higher
0x011FINVALID_DRIVER_HANDLE6.0 and higherkernel in alldocumented in 1709 and higher
0x0120BITLOCKER_FATAL_ERROR6.0 and higherdocumented in 1709 and higher
0x0121DRIVER_VIOLATION6.0 and higherkernel in alldocumented in late 6.0 and higher
0x0122WHEA_INTERNAL_ERROR6.0 and higherkernel in alldocumented in late 6.0 and higher
0x0123CRYPTO_SELF_TEST_FAILURE6.0 and higherkernel in 10.0 and higherdocumented in 1709 and higher
0x0124WHEA_UNCORRECTABLE_ERROR6.0 and higherHAL in all; kernel in 6.1 and higherdocumented in late 6.0 and higher
0x0125NMR_INVALID_STATE6.0 and higher
0x0126NETIO_INVALID_POOL_CALLER6.0 and higher
0x0127PAGE_NOT_ZERO6.0 and higherkernel in 6.2 and higherdocumented in late 6.0 and higher
0x0128WORKER_THREAD_RETURNED_WITH_BAD_IO_PRIORITY6.0 and higherkernel in alldocumented in 1709 and higher
0x0129WORKER_THREAD_RETURNED_WITH_BAD_PAGING_IO_PRIORITY6.0 and higherkernel in alldocumented in 1709 and higher
0x012AMUI_NO_VALID_SYSTEM_LANGUAGE6.0 and higherkernel in alldocumented in 1709 and higher
0x012BFAULTY_HARDWARE_CORRUPTED_PAGE6.0 and higherkernel in 6.1 and higherdocumented in late 6.0 and higher
0x012CEXFAT_FILE_SYSTEMlate 6.0, and higher

Added for Windows 7

ValueNameVersionsKnown UseRemarks
0x012DVOLSNAP_OVERLAPPED_TABLE_ACCESS6.1 and higherdocumented in 1709 and higher
0x012EINVALID_MDL_RANGE6.1 and higherkernel in 6.2 and higher
0x012FVHD_BOOT_INITIALIZATION_FAILED6.1 and higherkernel in all
0x0130DYNAMIC_ADD_PROCESSOR_MISMATCH6.1 and higherkernel in 6.2 to 6.3
0x0131INVALID_EXTENDED_PROCESSOR_STATE6.1 and higherkernel in all
0x0132RESOURCE_OWNER_POINTER_INVALID6.1 and higherkernel in all
0x0133DPC_WATCHDOG_VIOLATION6.1 and higherkernel in alldocumented in 6.3 and higher
0x0134DRIVE_EXTENDER6.1 and higher
0x0135REGISTRY_FILTER_DRIVER_EXCEPTION6.1 and higherkernel in all
0x0136VHD_BOOT_HOST_VOLUME_NOT_ENOUGH_SPACE6.1 and higherdocumented in 1709 and higher

Added for Windows 8

ValueNameVersionsKnown UseRemarks
0x0137WIN32K_HANDLE_MANAGER6.2 and higher
0x0138GPIO_CONTROLLER_DRIVER_ERROR6.2 and higherdocumented in 6.3 and higher
0x0139KERNEL_SECURITY_CHECK_FAILURE6.2 and higherkernel in alldocumented in 6.3 and higher
0x013AKERNEL_MODE_HEAP_CORRUPTION6.2 and higherkernel in all
0x013BPASSIVE_INTERRUPT_ERROR6.2 and higherkernel in alldocumented in 1709 and higher
0x013CINVALID_IO_BOOST_STATE6.2 and higherkernel in alldocumented in 1709 and higher
0x013DCRITICAL_INITIALIZATION_FAILURE6.2 and higher
0x013EERRATA_WORKAROUND_UNSUCCESSFUL1511 and higherkernel in 1511 only
0x013Fundefined
0x0140STORAGE_DEVICE_ABNORMALITY_DETECTED6.2 and higher
0x0141VIDEO_ENGINE_TIMEOUT_DETECTED6.2 and higher
0x0142VIDEO_TDR_APPLICATION_BLOCKED6.2 and higher
0x0143PROCESSOR_DRIVER_INTERNAL6.2 and higher
0x0144BUGCODE_USB3_DRIVER6.2 and higher
0x0145SECURE_BOOT_VIOLATION6.2 and higherkernel in alldocumented in 1709 and higher
0x0146NDIS_NET_BUFFER_LIST_INFO_ILLEGALLY_TRANSFERRED6.2 and higher
0x0147ABNORMAL_RESET_DETECTED6.2 and higherdocumented in 1709 and higher
0x0148IO_OBJECT_INVALID6.2 and higherkernel in all
0x0149REFS_FILE_SYSTEM6.2 and higher
0x014AKERNEL_WMI_INTERNAL6.2 and higherkernel in all
0x014BSOC_SUBSYSTEM_FAILURE6.2 and higher
0x014CFATAL_ABNORMAL_RESET_ERROR6.2 and higherdocumented in 1709 and higher
0x014DEXCEPTION_SCOPE_INVALID6.2 and higher
0x014ESOC_CRITICAL_DEVICE_REMOVED6.2 and higher
0x014FPDC_WATCHDOG_TIMEOUT6.2 and higher
0x0150TCPIP_AOAC_NIC_ACTIVE_REFERENCE_LEAK6.2 and higher

Added for Windows 8.1

ValueNameVersionsKnown UseRemarks
0x0151UNSUPPORTED_INSTRUCTION_MODE6.3 and higherdocumented in 1709 and higher
0x0152INVALID_PUSH_LOCK_FLAGS6.3 and higherkernel in alldocumented in 1709 and higher
0x0153KERNEL_LOCK_ENTRY_LEAKED_ON_THREAD_TERMINATION6.3 and higherkernel in all
0x0154UNEXPECTED_STORE_EXCEPTION6.3 and higherkernel in alldocumented in 1709 and higher
0x0155OS_DATA_TAMPERING6.3 and higher
0x0156WINSOCK_DETECTED_HUNG_CLOSESOCKET_LIVEDUMP6.3 and higherdocumented in 1709 and higher
0x0157KERNEL_THREAD_PRIORITY_FLOOR_VIOLATION6.3 and higherkernel in alldocumented in 1709 and higher
0x0158ILLEGAL_IOMMU_PAGE_FAULT6.3 and higherkernel in alldocumented in 1709 and higher
0x0159HAL_ILLEGAL_IOMMU_PAGE_FAULT6.3 and higherHAL in all
0x015ASDBUS_INTERNAL_ERROR6.3 and higherdocumented in 1709 and higher
0x015BWORKER_THREAD_RETURNED_WITH_SYSTEM_PAGE_PRIORITY_ACTIVE6.3 and higherkernel in all
0x015CPDC_WATCHDOG_TIMEOUT_LIVEDUMP6.3 and higher
0x015DSOC_SUBSYSTEM_FAILURE_LIVEDUMP6.3 and higherdocumented in 10.0 and higher
0x015EBUGCODE_NDIS_DRIVER_LIVE_DUMP6.3 and higher
0x015FCONNECTED_STANDBY_WATCHDOG_TIMEOUT_LIVEDUMP6.3 and higherkernel in all
0x0160WIN32K_ATOMIC_CHECK_FAILURE6.3 and higherdocumented in 1709 and higher
0x0161LIVE_SYSTEM_DUMP6.3 and higher
0x0162KERNEL_AUTO_BOOST_INVALID_LOCK_RELEASE6.3 and higherkernel in alldocumented in 1709 and higher

Bug check 0x015F is the first known use by the kernel of what is in version 6.3 the new facility for the live capture of a dump file—as if for a crash dump file but without the crash.

Added for Windows 10

Before proceeding to the very many bug checks that are new for Windows 10, note that not even one was documented in the Bug Check Code Reference from the contemporaneous Debugging Tools for Windows.

ValueNameVersionsKnown UseRemarks
0x0163WORKER_THREAD_TEST_CONDITION10.0 and higherkernel in alldocumented in 1709 and higher
0x0164WIN32K_CRITICAL_FAILURE10.0 and higher
0x0165CLUSTER_CSV_STATUS_IO_TIMEOUT_LIVEDUMP10.0 and higher
0x0166CLUSTER_RESOURCE_CALL_TIMEOUT_LIVEDUMP10.0 and higher
0x0167CLUSTER_CSV_SNAPSHOT_DEVICE_INFO_TIMEOUT_LIVEDUMP10.0 and higher
0x0168CLUSTER_CSV_STATE_TRANSITION_TIMEOUT_LIVEDUMP10.0 and higher
0x0169CLUSTER_CSV_VOLUME_ARRIVAL_LIVEDUMP10.0 and higher
0x016ACLUSTER_CSV_VOLUME_REMOVAL_LIVEDUMP10.0 and higher
0x016BCLUSTER_CSV_CLUSTER_WATCHDOG_LIVEDUMP10.0 and higher
0x016CINVALID_RUNDOWN_PROTECTION_FLAGS10.0 and higher
0x016DINVALID_SLOT_ALLOCATOR_FLAGS10.0 and higherkernel in alldocumented in 1709 and higher
0x016EERESOURCE_INVALID_RELEASE10.0 and higherkernel in 1607 and higherdocumented in 1709 and higher
0x016FCLUSTER_CSV_STATE_TRANSITION_INTERVAL_TIMEOUT_LIVEDUMP10.0 and higher
0x0170CLUSTER_CSV_CLUSSVC_DISCONNECT_WATCHDOG10.0 and higher
0x0171CRYPTO_LIBRARY_INTERNAL_ERROR10.0 and higherkernel in all
0x0172undefined
0x0173COREMSGCALL_INTERNAL_ERROR1607 and higher
0x0174COREMSG_INTERNAL_ERROR1607 and higher
0x0175PREVIOUS_FATAL_ABNORMAL_RESET_ERROR10.0 and higher
0x0176 0x0177undefined
0x0178ELAM_DRIVER_DETECTED_FATAL_ERROR10.0 and higher
0x0179CLUSTER_CLUSPORT_STATUS_IO_TIMEOUT_LIVEDUMP1703 and higher
0x017Aundefined
0x017BPROFILER_CONFIGURATION_ILLEGAL1709 and higher
0x017CPDC_LOCK_WATCHDOG_LIVEDUMP1607 and higher
0x017DPDC_UNEXPECTED_REVOCATION_LIVEDUMP1607 and higher
0x017E 0x017Fundefined
0x0180WVR_LIVEDUMP_REPLICATION_IOCONTEXT_TIMEOUT10.0 and higher
0x0181WVR_LIVEDUMP_STATE_TRANSITION_TIMEOUT10.0 and higher
0x0182WVR_LIVEDUMP_RECOVERY_IOCONTEXT_TIMEOUT10.0 and higher
0x0183WVR_LIVEDUMP_APP_IO_TIMEOUT10.0 and higher
0x0184WVR_LIVEDUMP_MANUALLY_INITIATED10.0 and higher
0x0185WVR_LIVEDUMP_STATE_FAILURE10.0 and higher
0x0186WVR_LIVEDUMP_CRITICAL_ERROR10.0 and higher
0x0187VIDEO_DWMINIT_TIMEOUT_FALLBACK_BDD10.0 and higher
0x0188CLUSTER_CSVFS_LIVEDUMP10.0 and higher
0x0189BAD_OBJECT_HEADER10.0 and higherkernel in all
0x018ASILO_CORRUPT10.0 and higher
0x018BSECURE_KERNEL_ERROR10.0 and higherdocumented in 1709 and higher
0x018CHYPERGUARD_VIOLATION1511 and higher
0x018DSECURE_FAULT_UNHANDLED1703 and higher
0x018EKERNEL_PARTITION_REFERENCE_VIOLATION1709 and higherkernel in all
0x018Fundefined
0x0190WIN32K_CRITICAL_FAILURE_LIVEDUMP10.0 and higherdocumented in 1709 and higher
0x0191PF_DETECTED_CORRUPTION10.0 and higherkernel in all
0x0192KERNEL_AUTO_BOOST_LOCK_ACQUISITION_WITH_RAISED_IRQL10.0 and higherkernel in alldocumented in 1709 and higher
0x0193VIDEO_DXGKRNL_LIVEDUMP10.0 and higher
0x0194see Saver section, below
0x0195SMB_SERVER_LIVEDUMP1511 and higherdocumented in 1709 and higher
0x0196LOADER_ROLLBACK_DETECTED1511 and higherkernel in alldocumented in 1709 and higher
0x0197WIN32K_SECURITY_FAILURE1607 and higher
0x0198UFX_LIVEDUMP1607 and higher
0x0199KERNEL_STORAGE_SLOT_IN_USE1607 and higherkernel in alldocumented in 1709 and higher
0x019AWORKER_THREAD_RETURNED_WHILE_ATTACHED_TO_SILO1607 and higherkernel in alldocumented in 1709 and higher
0x019BTTM_FATAL_ERROR1607 and higherkernel in alldocumented in 1709 and higher
0x019CWIN32K_POWER_WATCHDOG_TIMEOUT1607 and higherdocumented in 1709 and higher
0x019DCLUSTER_SVHDX_LIVEDUMP1607 and higherdocumented in 1709 and higher
0x019EBUGCODE_NETADAPTER_DRIVER1703 and higher
0x019FPDC_PRIVILEGE_CHECK_LIVEDUMP1703 and higher
0x01A0TTM_WATCHDOG_TIMEOUT1703 and higherkernel in 1709 and higher
0x01A1WIN32K_CALLOUT_WATCHDOG_LIVEDUMP1703 and higherkernel in 1703 and higher
0x01A2WIN32K_CALLOUT_WATCHDOG_BUGCHECK1703 and higher
0x01A3CALL_HAS_NOT_RETURNED_WATCHDOG_TIMEOUT_LIVEDUMP1709 and higher
0x01A4DRIPS_SW_HW_DIVERGENCE_LIVEDUMP1709 and higherkernel in 1709 and higher
0x01A5USB_DRIPS_BLOCKER_SURPRISE_REMOVAL_LIVEDUMP1803 and higher

SOMETHING TO WRITE HERE

ValueNameVersionsKnown UseRemarks
0x01C4DRIVER_VERIFIER_DETECTED_VIOLATION_LIVEDUMP10.0 and higherdocumented in 1709 and higher
0x01C5IO_THREADPOOL_DEADLOCK_LIVEDUMP1607 and higherkernel in 1607 and higherdocumented in 1709 and higher
0x01C6FAST_ERESOURCE_PRECONDITION_VIOLATION1703 and higherkernel in all
0x01C7STORE_DATA_STRUCTURE_CORRUPTION1703 and higherkernel in all
0x01C8MANUALLY_INITIATED_POWER_BUTTON_HOLD1703 and higherkernel in 1703 and higher
0x01C9USER_MODE_HEALTH_MONITOR_LIVEDUMP1703 and higher
0x01CAHYPERVISOR_WATCHDOG_TIMEOUT1703 and higher
0x01CBINVALID_SILO_DETACH1703 and higherkernel in all
0x01CCEXRESOURCE_TIMEOUT_LIVEDUMP1709 and higherkernel in 1709 and higher
0x01CDINVALID_CALLBACK_STACK_ADDRESS1709 and higher
0x01CEINVALID_KERNEL_STACK_ADDRESS1709 and higher
0x01CFHARDWARE_WATCHDOG_TIMEOUT1709 and higher
0x01D0ACPI_FIRMWARE_WATCHDOG_TIMEOUT1709 and higher
0x01D1TELEMETRY_ASSERTS_LIVEDUMP1709 and higher
0x01D2WORKER_THREAD_INVALID_STATE1709 and higherkernel in all
0x01D3WFP_INVALID_OPERATION1709 and higher
0x01D4UCMUCSI_LIVEDUMP1709 and higher
0x01D5DRIVER_PNP_WATCHDOG1803 and higherkernel in all

Xbox

Though Windows, here considered only in its i386 and amd64 implementations, is not known to make any use of the following, the Windows kernel even in its i386 and amd64 implementations has bug check codes whose names strongly suggest they are specific to the Xbox games console. They can’t have any attention here except to note their existence—and the continuing definition of more of them:

ValueNameVersions
0x0356XBOX_ERACTRL_CS_TIMEOUT1709 and higher
0x0357XBOX_CORRUPTED_IMAGE1607 and higher
0x0358XBOX_INVERTED_FUNCTION_TABLE_OVERFLOW10.0 and higher
0x0359XBOX_CORRUPTED_IMAGE_BASE10.0 and higher
0x0360XBOX_360_SYSTEM_CRASH6.2 and higher
0x0420XBOX_360_SYSTEM_CRASH_RESERVED6.2 and higher

Blue Tooth

ValueNameVersionsRemarks
0x0BFEBC_BLUETOOTH_VERIFIER_FAULT6.0 and higher
0x0BFFBC_BTHMINI_VERIFIER_FAULT6.2 and higherdocumented in 1709 and higher

Saver Driver

Apparently there exists a kernel-mode driver named Saver which helps Microsoft’s user-mode programmers during development. It’s not known to be supplied with Windows 10 in any retail release and since it also doesn’t seem to be known very much on the Internet, for what that might be worth, it is perhaps best just to repeat what Microsoft is known to say about it:

source
Saver is a kernel mode driver that is used to bugcheck the system.
Its intended purpose is to cause a kernel bugcheck and generate a kernel memory dump.
This memory dump can be used to debug the error case for which we bugchecked the system.

The relevant bug check codes look to have been defined first as a driver-specific addition to the normal sequence, then another outside this sequence and one more even further outside before defining a whole new sequence:

ValueNameVersionsRemarks
0x0194SAVER_NONRESPONSIVEPROCESS10.0 and higherused by modernexecserver.dll
0x0315SAVER_MTBFCOMMANDTIMEOUT10.0 and higher
0x8866SAVER_SICKAPPLICATION10.0 and higher
0xF000SAVER_UNSPECIFIED10.0 and higher
0xF001undefined10.0 and higher
0xF002SAVER_BLANKSCREEN10.0 and higher
0xF003SAVER_INPUT10.0 and higher
0xF004SAVER_WATCHDOG10.0 and higher
0xF005SAVER_STARTNOTVISIBLE10.0 and higher
0xF006SAVER_NAVIGATIONMODEL10.0 and higher
0xF007SAVER_OUTOFMEMORY10.0 and higherused by PsmServiceExtHost.dll
0xF008SAVER_GRAPHICS10.0 and higher
0xF009SAVER_NAVSERVERTIMEOUT10.0 and higher
0xF00ASAVER_CHROMEPROCESSCRASH10.0 and higher
0xF00BSAVER_NOTIFICATIONDISMISSAL10.0 and higher
0xF00CSAVER_SPEECHDISMISSAL10.0 and higher
0xF00DSAVER_CALLDISMISSAL10.0 and higher
0xF00ESAVER_APPBARDISMISSAL10.0 and higher
0xF00FSAVER_RILADAPTATIONCRASH10.0 and higher
0xF010SAVER_APPLISTUNREACHABLE10.0 and higher
0xF011SAVER_REPORTNOTIFICATIONFAILURE10.0 and higher
0xF012SAVER_UNEXPECTEDSHUTDOWN10.0 and higher
0xF013SAVER_RPCFAILURE10.0 and higher
0xF014SAVER_AUXILIARYFULLDUMP10.0 and higher
0xF015SAVER_ACCOUNTPROVSVCINITFAILURE10.0 and higher
0xF101SAVER_MTBFCOMMANDHANG10.0 and higher
0xF102SAVER_MTBFPASSBUGCHECK10.0 and higher
0xF103SAVER_MTBFIOERROR10.0 and higher
0xF200SAVER_RENDERTHREADHANG10.0 and higher
0xF201SAVER_RENDERMOBILEUIOOM10.0 and higher
0xF300SAVER_DEVICEUPDATEUNSPECIFIED10.0 and higher
0xF400SAVER_AUDIODRIVERHANG10.0 and higher
0xF500SAVER_BATTERYPULLOUT10.0 and higher
0xF600SAVER_MEDIACORETESTHANG10.0 and higher
0xF700SAVER_RESOURCEMANAGEMENT10.0 and higherused by modernexecserver.dll
0xF800SAVER_CAPTURESERVICE10.0 and higher
0xF900SAVER_WAITFORSHELLREADY10.0 and higher

Hyper-V

ValueNameVersions
0x00020001HYPERVISOR_ERRORlate 6.0 and higher

M Suffix

Numerical values in a 0x10000000 sequence are defined in BUGCODES.H but are not in the kernel’s message resource in any version. Four are documented as early as the Windows XP DDK even though they don’t appear in the BUGCODES.H from the same kit. For each of these four, Microsoft’s documentation says just that this high-numbered code “has the same meaning and parameters” as the low-numbered code, i.e., stripped of the 0x10000000.

ValueNameVersions
0x1000007ESYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M5.2 and higher
0x1000007FUNEXPECTED_KERNEL_MODE_TRAP_M5.2 and higher
0x1000008EKERNEL_MODE_EXCEPTION_NOT_HANDLED_M5.2 and higher
0x100000D6DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION_M6.0 and higher
0x100000EATHREAD_STUCK_IN_DEVICE_DRIVER_M5.2 and higher

Messages Mostly

Numerical values in a 0x40000000 sequence are defined in BUGCODES.H and have corresponding text in the kernel’s message resource. They seem to have been intended as a separate range for messages that do not themselves describe bug checks, but no formal scheme is known that was ever stuck to.

ValueNameVersionsRemarks
0x4000007EWINDOWS_NT_BANNERall
0x4000007FBUGCHECK_MESSAGE_INTRO5.1 to 6.1
0x40000080BUGCODE_ID_DRIVER5.1 to 6.1previously 0xD2
0x40000081PSS_MESSAGE_INTRO5.1 to 6.1
0x40000082BUGCODE_PSS_MESSAGE5.1 to 6.1previously 0x7C
0x40000083BUGCODE_TECH_INFO5.1 to 6.1
0x40000087WINDOWS_NT_CSD_STRING3.50 and higher
0x40000088WINDOWS_NT_INFO_STRING3.50 and higher
0x40000089WINDOWS_NT_MP_STRING3.50 and higher
0x4000008ATHREAD_TERMINATE_HELD_MUTEX3.50 and higherused by kernel in all
0x4000008BBUGCODE_PSS_CRASH_INIT5.1 to 6.1previously 0x8C
0x4000008CBUGCODE_PSS_CRASH_PROGRESS5.1 to 6.1previously 0x8D
0x4000008DBUGCODE_PSS_CRASH_DONE5.1 to 6.1previously 0x8E
0x4000009DWINDOWS_NT_INFO_STRING_PLURAL4.0 and higher
0x4000009EWINDOWS_NT_RC_STRING4.0 and higher
0x400000ADVIDEO_DRIVER_DEBUG_REPORT_REQUEST6.0 and higher
0x40010001HARDWARE_PROFILE_UNDOCKED_STRING5.0 and higher
0x40010002HARDWARE_PROFILE_DOCKED_STRING5.0 and higher
0x40010003HARDWARE_PROFILE_UNKNOWN_STRING5.0 and higher

Miscellany

ValueNameVersionsRemarks
0x00000000used by HAL in 3.10
0x12345678used by kernel in 3.10 to 5.0
0x80000000BUGCHECK_CONTEXT_MODIFIER10.0 and higher
arbitrary exception codeused by kernel in 3.10 to 5.0
0xC000021AWINLOGON_FATAL_ERROR5.2 and higher
0xC0000244used by kernel in 5.2 and higher
0xDEADDEADMANUALLY_INITIATED_CRASH15.2 and higher
arbitrary from debuggerused by kernel in 3.51 to 4.0

The HAL in version 3.10 has code that would raise a bug check zero. This is only from an internal routine that symbol files name as HalSaveState. No way is known that this routine can ever execute. It is perhaps intended only for checked builds or even for some processor architecture other than the i386.

Perhaps as a last defence, early versions of the kernel would call KeBugCheck from places that should be unreachable. For example, exiting a thread can involve the kernel in a rare case of scheduling a routine of its own for execution as a user-mode Asynchronous Procedure Call (APC). It’s not intended that the routine can ever execute. If it does execute, something can only have gone seriously wrong. Before version 5.1, the execution is to stop Windows as bug check 0x12345678. Later versions catch it only in the checked builds, and only then as an assertion failure, and then version 6.3 changes the mechanism.

Another example is where ExAllocatePoolWithQuota in version 3.10 charges the pool allocation against the calling process’s quota. It calls PsChargePoolQuota in a Structured Exception Handling block. If the exception handler executes, it’s to present the exception code as a bug check code. However, the exception filter can only return zero and so the exception code as a bug check code is at best theoretical.

Starting with the Windows XP DDK, Microsoft’s documentation lists the status codes 0xC0000218, 0xC000021A and 0xC0000221 as bug check codes. Two of these are not in BUGCODES.H in any known version. The other is, but with the different name shown above.

As STATUS_AUDIT_FAILED, 0xC0000244 might be another stop code that originates as a hard error, raised in this case by LSASRV.DLL in the LSASS.EXE process. It can, however, be explicitly a bug check code. The kernel in version 5.2 and higher passes it to KeBugCheckEx as BugCheckCode exactly where the kernel in versions 3.50 to 5.1 passes AUDIT_FAILED (0x86) to KeBugCheck. The one clearly supersedes the other.

Arbitrary

Already noted above is that any NTSTATUS that has its high two bits set can be presented as a stop code even though the bug check code that was presented to KeBugCheckEx was 0x4C. Early Windows versions also permit that an arbitrary exception code or unsuccessful NTSTATUS can be explicitly given to KeBugCheck as the bug check code.

Versions 3.51 and 4.0 also allow an arbitrary bug check code for the particular pupose of manually crashing Windows from a kernel-mode debugger. This is the earliest known form of what version 5.0 and higher provide through the bug check code MANUALLY_INITIATED_CRASH (0xE2). Given that the kernel is started with debugging enabled, it exchanges packets with a debugger over some transport, which was originally only a serial port. One such packet directs the kernel to raise a bug check and specifies the bug check code. Just like any driver calling KeBugCheck, the debugger might in principle choose anything for the bug check code. What I386KD chooses in practice, for its .crash command, is 0xDEADDEAD.