UNEXPECTED_KERNEL_MODE_TRAP

Code: 0x7f (127)

As HRESULT:As NTSTATUS:

Parameters

ParameterDescription
0x00000000Divide by Zero Error
0x00000004Overflow
0x00000005Bounds Check Fault
0x00000006Invalid Opcode
0x00000008Double Fault

Description

The UNEXPECTED_KERNEL_MODE_TRAP bug check has a value of 0x0000007F. This bug check indicates that the Intel CPU generated a trap and the kernel failed to catch this trap.

This trap could be either of the following types:

Important

This topic is for programmers. If you're a customer who has received a blue screen error code while using your computer, see Troubleshoot blue screen errors.

Parameter 1

The first parameter that appears on the blue screen specifies the trap number.

The most common trap numbers are the following codes:

There are two common causes of a double fault:

The less-common trap codes include the following values:

For other trap numbers, refer to the Intel processor architecture manual for the processor you're troubleshooting.

Cause

Bug check 0x7F typically occurs after you install faulty or mismatched hardware, especially memory, or if installed hardware fails.

A double fault can occur when the kernel stack overflows. This overflow occurs if multiple drivers are attached to the same stack. For example, if two file system filter drivers are attached to the same stack and then the file system recurses back in, the stack overflows.

Debug

Always begin with the !analyze extension with the -v option, verbose. Examine the output and the faulting code. Look for reoccurring trends in multiple dumps.

After you try !analyze, use the kv (Display Stack Backtrace) debugger command.

After using one of these commands, use kv again to display the new stack.

Troubleshoot

Hardware

If you recently added hardware to the computer, remove it to see if the error recurs. If existing hardware has failed, remove or replace the faulty component. Run hardware diagnostics that the system manufacturer supplies to determine which hardware component failed.

Faulty or mismatched memory can cause this bug check. Use the memory diagnostic program in Windows to test all of the system memory.

Confirm that all hard disk drives and hard disk controllers are compatible with the installed version of Windows.

The system motherboard might have issues, such as a scratched trace or a defective component. A failing power supply can also cause issues.

Overclocking is setting the CPU to run at speeds above the rated specification, which can cause this error. If you've overclocked the computer that's experiencing the error, return the CPU to the default clock speed setting. Disable memory caching of the BIOS to try to resolve the problem if that option is available.

Software

Check the System Log in Event Viewer for other error messages that might help identify the device or driver that's causing the error.

Check the availability of updates for the ACPI/BIOS, the hard driver controller, or network cards from the hardware manufacturer.

If the error occurred after the installation of a new or updated device driver, remove or replace the driver. If, under this circumstance, the error occurs during the startup sequence, use Safe Mode to rename or delete the faulty driver. If the driver is used as part of the system startup process in Safe Mode, start the computer by using the Recovery Console in order to access the file. Try the Last Known Good Configuration option. This option is most effective when you add only one driver or service at a time.

If you encounter this error while upgrading to a new version of the Windows operating system, the error might be caused by incompatible software. Examples include a device driver, a system service, a virus scanner, or a backup tool. If possible, remove all third-party device drivers and system services and disable any virus scanners before you upgrade. Contact the software manufacturer to obtain updates of these tools. Also, make sure that you've installed the latest Windows updates.

See also

Article text from the Windows driver documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.

Associated Modules

ModuleCodeFound inDescription
EventCreate.exe0x7f78.11011%1
KernelBase.dll0x7f78.1The specified procedure could not be found.
kernel32.dll0x7f78.11011The specified procedure could not be found.
nslookup.exe0x7f78.11011internet address = %1
sc.exe0x7f78.11011SDDL right Right value ---------- ----------- GA - GENERIC_ALL KA - GENERIC_ALL GR - GENERIC_READ GW - GENERIC_WRITE GX - GENERIC_EXECUTE RC - READ_CONTROL SD - DELETE WD - WRITE_DAC WO - WRITE_OWNER RP - SC_MANAGER_QUERY_LOCK_STATUS WP - SC_MANAGER_MODIFY_BOOT_CONFIG CC - SC_MANAGER_CONNECT DC - SC_MANAGER_CREATE_SERVICE LC - SC_MANAGER_ENUMERATE_SERVICE SW - SC_MANAGER_LOCK
webservices.dll0x7f78.11011The SOAPAction HTTP header was not correctly formatted.
win32k.sys0x7f78.1No
win32kbase.sys0x7f1011No
8 entries