KERNEL_APC_PENDING_DURING_EXIT
Code: 0x20 (32)
As HRESULT:- S: 0 (Success)
- C: 0 (Microsoft-defined)
- N: 0 (Not an NTSTATUS value)
- Facility: 0x000 (FACILITY_NULL: Default)
- Code: 0x0020 (32)
- Sev: 0 (STATUS_SEVERITY_SUCCESS)
- C: 0 (Microsoft-defined)
- Facility: 0x000 (Default)
- Code: 0x0020 (32)
Parameters
| Parameter | Description |
|---|---|
| 1 | The address of the APC found pending during exit |
| 2 | The thread's APC disable count |
| 3 | The current IRQL |
| 4 | Reserved |
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
| Module | Code | Found in | Description |
|---|---|---|---|
| EhStorAuthn.exe | 0x20 | 7 | Internal driver error |
| EventCreate.exe | 0x20 | 78.11011 | %1 |
| KernelBase.dll | 0x20 | 78.1 | The process cannot access the file because it is being used by another process. |
| NetTCPIP.dll | 0x20 | 1011 | This feature is not available on servers. |
| VSSVC.exe | 0x20 | 1011 | Volume 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.exe | 0x20 | 1011 | Cannot complete the requested assessment. |
| cipher.exe | 0x20 | 78.11011 | Encrypted File(s) on your system: |
| compact.exe | 0x20 | 1011 | Completed uncompressing OS binaries. |
| dsreg.dll | 0x20 | 10 | This 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.dll | 0x20 | 11 | This 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.dll | 0x20 | 78.11011 | Recalculate hierarchy |
| ehepgres.dll | 0x20 | 7 | %1 |
| hvloader.dll | 0x20 | 11 | Hypervisor launch failed; at least one of the processors in the system does not appear to provide a virtualization platform supported by the hypervisor. |
| hvservice.sys | 0x20 | 10 | Hypervisor launch failed; at least one of the processors in the system does not appear to provide a virtualization platform supported by the hypervisor. |
| kernel32.dll | 0x20 | 78.11011 | The process cannot access the file because it is being used by another process. |
| msprivs.dll | 0x20 | 78.11011 | Modify an object label |
| nslookup.exe | 0x20 | 78.11011 | Resource Record Info. |
| powershell.exe | 0x20 | 78.11011 | Failed to load Windows PowerShell console file "%1!ls!": %2!ls!At line:%3!li! char:%4!li! |
| reagentc.exe | 0x20 | 8.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.dll | 0x20 | 1011 | The 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.sys | 0x20 | 11 | Encountered an error calling TpmApi. |
| w32time.dll | 0x20 | 1011 | The 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.dll | 0x20 | 78.11011 | The header '%1' with an empty namespace was present in the message when it was written. |
| wecutil.exe | 0x20 | 78.11011 | Failed to read password. |
| wevtutil.exe | 0x20 | 1011 | Failed to load XML document %1!s!. |
| wevtutil.exe | 0x20 | 78.1 | Failed to load xml document %1!s!. |
| wfascim.dll | 0x20 | 1011 | The cert validation level is invalid. |
| win32k.sys | 0x20 | 78.1 | Scrollbar |
| win32kbase.sys | 0x20 | 1011 | Scrollbar |
| wuaueng.dll | 0x20 | 1011 | Windows Update cannot connect to the server. Please check the connection to server %1. |
| wuauengcore.dll | 0x20 | 11 | Windows Update cannot connect to the server. Please check the connection to server %1. |
| 31 entries | |||