ERROR_BAD_STACK 0x8007021F

Error code 543 · HRESULT 0x8007021F

WINDOWS

An invalid or unaligned stack was encountered during an unwind operation.

Windows troubleshooting diagram: Device Manager warning and a system file scan
Windows errors: check drivers, system files and Event Viewer, in that order.

What it means

ERROR_BAD_STACK is a Windows error code (system error 543, returned as HRESULT 0x8007021F) reported by Windows. Its official message is: “An invalid or unaligned stack was encountered during an unwind operation.”

How to fix ERROR_BAD_STACK

  1. Run Windows Memory Diagnostic (mdsched.exe) to exclude failing RAM
  2. Recent kernel memory faults usually trace to drivers — update graphics and chipset first
  3. Check the crash dump in C:\Windows\Minidump with WinDbg to identify the module

Related errors

Source: Microsoft WinError.h

Last updated: