KERNEL_APC_PENDING_DURING_EXIT

Code: 0x20 (32)

As HRESULT:As NTSTATUS:

Parameters

ParameterDescription
1The address of the APC found pending during exit
2The thread's APC disable count
3The current IRQL
4Reserved

Description

The KERNEL_APC_PENDING_DURING_EXIT bug check has a value of 0x00000020. This indicates that an asynchronous procedure call (APC) was still pending when a thread exited.

Important

This article 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.

Cause

The key data item is the APC disable count (Parameter 2) for the thread. If the count is nonzero, it will indicate the source of the problem.

The APC disable count is decremented each time a driver calls KeEnterCriticalRegion, FsRtlEnterFileSystem, or acquires a mutex.

The APC disable count is incremented each time a driver calls KeLeaveCriticalRegion, KeReleaseMutex, or FsRtlExitFileSystem.

Because these calls should always be in pairs, the APC disable count should be zero when a thread exits. A negative value indicates that a driver has disabled APC calls without re-enabling them. A positive value indicates that the reverse is true.

If you ever see this error, be very suspicious of all drivers installed on the machine -- especially unusual or non-standard drivers.

This current IRQL (Parameter 3) should be zero. If it is not, the driver's cancellation routine may have caused this bug check by returning at an elevated IRQL. In this case, carefully note what was running (and what was closing) at the time of the crash, and note all of the installed drivers at the time of the crash. The cause in this case is usually a severe bug in a driver.

Resolution

The !analyze debug extension displays information about the bug check and can be helpful in determining the root cause.

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
EhStorAuthn.exe0x207Internal driver error
EventCreate.exe0x2078.11011%1
KernelBase.dll0x2078.1The process cannot access the file because it is being used by another process.
NetTCPIP.dll0x201011This feature is not available on servers.
VSSVC.exe0x201011Volume Shadow Copy Service error: The VSS Coordinator class is not registered. This may be caused due to a setup failure or as a result of an application's installer or uninstaller. %1
WinSAT.exe0x201011Cannot complete the requested assessment.
cipher.exe0x2078.11011Encrypted File(s) on your system:
compact.exe0x201011Completed uncompressing OS binaries.
dsreg.dll0x2010This Device is joined to Azure AD, however, the user did not sign-in with an Azure AD account. Microsoft Passport provisioning will not be enabled. User: %1.
dsreg.dll0x2011This Device is joined to Microsoft Entra, however, the user did not sign-in with a Microsoft Entra account. Microsoft Passport provisioning will not be enabled. User: %1.
dssec.dll0x2078.11011Recalculate hierarchy
ehepgres.dll0x207%1
hvloader.dll0x2011Hypervisor launch failed; at least one of the processors in the system does not appear to provide a virtualization platform supported by the hypervisor.
hvservice.sys0x2010Hypervisor launch failed; at least one of the processors in the system does not appear to provide a virtualization platform supported by the hypervisor.
kernel32.dll0x2078.11011The process cannot access the file because it is being used by another process.
msprivs.dll0x2078.11011Modify an object label
nslookup.exe0x2078.11011Resource Record Info.
powershell.exe0x2078.11011Failed to load Windows PowerShell console file "%1!ls!": %2!ls!At line:%3!li! char:%4!li!
reagentc.exe0x208.11011%1: The Windows RE image cannot be stored in the specified volume. Use the RETAIN command in DISKPART to prepare the volume and try again.
sstpsvc.dll0x201011The thumbprint (cert hash) of the certificate used for Secure Socket Tunnelling Protocol (SSTP) %1 is different than the certificate bound %2 to the Web listener (HTTP.sys). Configure SSTP to use the default certificate or the certificate bound to SSL. You can configure web server applications to use the same certificate used by SSTP
tpm.sys0x2011Encountered an error calling TpmApi.
w32time.dll0x201011The time service discovered that the system time zone information was corrupted. The time service tried to reset the system time zone to GMT, but failed. The time service cannot start. The error was: %1
webservices.dll0x2078.11011The header '%1' with an empty namespace was present in the message when it was written.
wecutil.exe0x2078.11011Failed to read password.
wevtutil.exe0x201011Failed to load XML document %1!s!.
wevtutil.exe0x2078.1Failed to load xml document %1!s!.
wfascim.dll0x201011The cert validation level is invalid.
win32k.sys0x2078.1Scrollbar
win32kbase.sys0x201011Scrollbar
wuaueng.dll0x201011Windows Update cannot connect to the server. Please check the connection to server %1.
wuauengcore.dll0x2011Windows Update cannot connect to the server. Please check the connection to server %1.
31 entries