This guide explains how to resolve the Windows Blue Screen of Death (BSOD) error “SESSION_HAS_VALID_SPECIAL_POOL_ON_EXIT” with bug check code 0xEC. This stop error typically occurs when a kernel-mode driver or system service fails to release memory from a special pool during session teardown, often after a driver update, a faulty application, or corrupted system files. The steps below will help you identify the culprit, repair the system, and prevent the error from recurring.
What You’ll Need
- Administrator access to your Windows PC
- A stable internet connection (for downloading updates or tools)
- Your Windows installation media (USB or DVD) if you need to access Safe Mode or repair tools
- Patience and a backup of important files (recommended)
Step-by-Step
- Boot into Safe Mode. Restart your PC and press F8 (or Shift + Restart from the login screen) to access Advanced Startup Options. Choose Safe Mode with Networking. If Safe Mode won’t load, use your Windows installation media to boot and select Repair your computer > Troubleshoot > Advanced options > Startup Settings > Restart, then press 5 for Safe Mode with Networking.
- Uninstall recently installed software. In Safe Mode, go to Settings > Apps > Installed apps. Sort by install date and uninstall any newly installed drivers or applications, especially those related to graphics, network adapters, or system utilities. Restart normally and check if the error is gone.
- Roll back problematic drivers. Press Win + X and select Device Manager. Expand categories like Display adapters, Network adapters, and Sound, video and game controllers. Right-click each device, select Properties, go to the Driver tab, and click Roll Back Driver if available. Repeat for any driver that was recently updated.
- Run System File Checker (SFC). Open Command Prompt as administrator (right-click Start > Terminal (Admin) or Command Prompt (Admin)). Type
sfc /scannowand press Enter. Wait for the scan to complete. If it finds errors, restart and run it again to confirm. - Run DISM to repair system image. In the same admin Command Prompt, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This can take up to 20 minutes. Once done, restart and run SFC again if needed. - Check for Windows updates. Go to Settings > Windows Update and click Check for updates. Install all pending updates, including optional driver updates, then restart.
- Run a memory diagnostic. Type
mdsched.exein the Start menu and press Enter. Choose Restart now and check for problems. Windows will run a memory test; if errors are found, you may need to replace RAM sticks. - Use Driver Verifier to identify faulty drivers. In admin Command Prompt, type
verifierand press Enter. Select Create custom settings, then check Special pool, Force IRQL checking, and Pool tracking. Select Select driver names from a list and choose all non-Microsoft drivers. Restart and let Windows crash with a dump file. Use the resulting .dmp file (in C:\Windows\Minidump) with a tool like WinDbg to identify the failing driver. After testing, disable Verifier by runningverifier /resetin admin Command Prompt. - Restore system to earlier point. If nothing else works, use System Restore: Control Panel > Recovery > Open System Restore. Choose a restore point from before the issue started and follow the prompts.
- Reset or reinstall Windows. As a last resort, use Settings > System > Recovery > Reset this PC. Choose Keep my files to preserve personal data, or Remove everything for a clean slate. Alternatively, use your installation media to perform a clean install.
Common Mistakes
- Skipping Safe Mode: Trying to uninstall drivers in normal mode may fail if the system crashes immediately. Always start in Safe Mode.
- Ignoring SFC and DISM: These tools repair corrupted system files that are a common cause of 0xEC. Running only one and not the other may leave the issue unresolved.
- Not rolling back multiple drivers: The faulty driver might not be the most obvious one (e.g., a sound driver can cause this). Roll back any driver updated recently.
- Leaving Driver Verifier enabled: Forgetting to reset Verifier after testing can cause continuous BSODs. Always run
verifier /resetafter you’re done. - Assuming it’s a hardware problem: While RAM issues can cause this, software corruption is far more common. Exhaust software fixes before replacing hardware.
Tips
- Create a system restore point before making any significant changes, so you can revert if something goes wrong.
- Keep your drivers updated from the manufacturer’s website, not just through Windows Update, especially for graphics and network hardware.
- If you use third-party antivirus or system optimization tools, temporarily disable them—they can interfere with session memory management.
- Check the Windows Event Viewer (under Windows Logs > System) for error entries around the time of the crash. This can point to the exact driver or service.
- When analyzing dump files, use the !analyze -v command in WinDbg to get a detailed report.
Troubleshooting
If the error persists after following the steps above, try these additional actions:
- Check for BIOS/UEFI updates. Outdated firmware can cause memory management issues. Visit your motherboard or PC manufacturer’s support page.
- Test RAM with MemTest86. Create a bootable USB with MemTest86 and run a full pass. If errors appear, replace the faulty RAM module.
- Disable fast startup. Go to Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable and uncheck Turn on fast startup. This can resolve session shutdown issues.
- Check for malware. Run a full scan with Windows Defender Offline or another reputable tool. Malware can inject code into kernel memory.
- Clean boot. Use msconfig to disable all non-Microsoft services and startup items. If the error stops, re-enable them one by one to find the culprit.
- Reinstall the affected driver manually. Download the latest driver from the hardware vendor’s site, uninstall the current one in Device Manager (check Delete the driver software for this device), then install the fresh copy.
Frequently Asked Questions
What exactly causes bug check 0xEC?
It occurs when a kernel-mode driver or system service fails to free memory allocated from a special pool during session shutdown. Common causes are buggy drivers, corrupted system files, or incompatible software.
Can I fix this without reinstalling Windows?
Yes, in most cases. Uninstalling recent drivers, running SFC/DISM, and using System Restore are usually sufficient. Reinstalling Windows is only a last resort.
How do I know which driver is causing the problem?
Use Driver Verifier with special pool tracking and analyze the resulting crash dump with WinDbg. The dump will show the name of the faulty driver.
Is this error related to a hardware failure?
It can be, especially if RAM is faulty. Running a memory diagnostic is recommended, but software issues are more common.
Will this error cause data loss?
The BSOD itself doesn’t erase files, but if you perform a system reset that removes everything, you could lose data. Always back up important files before attempting fixes.
How long does it take to fix this error?
It depends on the cause. Simple driver rollback can take 30 minutes; if you need to run DISM, Driver Verifier, or a memory test, it may take several hours.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Install Android Apps on SD Card: Full Guide
- Why Is My Standby Red on iPhone? Fixes
- Fix Error 0x800703e6: 5 Working Methods
- Pixel & Pixel XL: Find IMEI & Serial Number
- Turn Off Notifications for Specific Apps on iPhone
- How to Use Multiple Desktops on Mac (Spaces Guide)