0xC00000FDApplicationCritical

Error 0xC00000FD — STATUS_STACK_OVERFLOW | Application Error Fix

Windows 10Windows 11Windows Server 2016Windows Server 2019Windows Server 2022

What Does 0xC00000FD Mean?

A new guard page for the stack cannot be created. The thread has used its entire stack allocation, typically due to infinite or very deep recursion.

Real-World Causes

  1. 1Infinite recursion in application code
  2. 2Very deep call chains processing complex nested data structures
  3. 3Large stack allocations (arrays on stack) in deeply nested functions
  4. 4Corrupted data causing recursive processing to never terminate
  5. 5Thread created with too small a stack size for the workload

Symptoms

  • Application crashes with 'Stack overflow' error dialog
  • Exception code 0xC00000FD in crash reports
  • Crash occurs when processing deeply nested files (XML, JSON, etc.)
  • Crash is reproducible with specific input data

DIY Fix

Beginner-friendly steps you can try at home

  1. 1Avoid processing the specific file or data that triggers the crash
  2. 2Update the application to the latest version
  3. 3Reduce the complexity or nesting depth of input data
  4. 4Close other memory-heavy applications to ensure maximum stack availability

Advanced Fix

For experienced users and IT professionals

  1. 1Use WinDbg to analyze the crash dump and identify the recursive call chain
  2. 2For developers: convert recursive algorithms to iterative ones
  3. 3Increase the default stack size with editbin /STACK:<size> <executable>
  4. 4For Visual Studio projects, increase stack size in Linker > System > Stack Reserve Size
  5. 5Use the _chkstk mechanism to probe stack pages before large allocations

Frequently Asked Questions

What is a stack overflow?
Each thread has a fixed amount of stack memory (typically 1MB). When a function calls itself recursively without stopping, or when the call chain is too deep, the stack runs out of space. The system raises this exception to prevent memory corruption.
Can increasing the stack size fix this?
It can help if the recursion depth is legitimately large but finite. However, if the cause is infinite recursion (a bug), a larger stack just delays the crash. The real fix requires the developer to address the bug in the code.

Related Error Codes

About the Author

Windows Troubleshooting Team

Verified against official Microsoft documentation and real-world diagnostic data. Error behavior confirmed across Windows 10, Windows 11, and Windows Server.