Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Stop code CRITICAL_PROCESS_DIED (0xEF): what it means and what to check first

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A computer shows a blue screen with the stop code CRITICAL_PROCESS_DIED and restarts. It may happen once and never again, or it may repeat every few days or at every start. The screen gives a name and a code but no reason, and the person at the desk has no way to tell which part of Windows ended.

Microsoft's reference page for this bug check is written for programmers, and says so. What follows is for an administrator who has to decide what to look at first, what can be proved from the machine without a debugger, and which general steps Microsoft lists for someone who is not equipped to use one. Nothing before the Fix section changes anything.

What the error means

Microsoft gives the bug check a value of 0x000000EF. It says the check "indicates that a critical system process terminated". A critical process forces the system to bug check if the process ends, and the check happens "when the state of the process is corrupted or damaged". Because these processes are critical to the operation of Windows, a system bug check occurs when the operating system's integrity is in question.

The page lists built-in Windows critical system services: csrss.exe, wininit.exe, logonui.exe, smss.exe, services.exe, conhost.exe and winlogon.exe. It adds that a developer can also create a service and set its recovery option to Restart the Computer, which makes that service critical in the same sense. A bug check can therefore come from a Windows component or from a vendor's own service.

The bug check has four parameters:

Parameter Meaning on Microsoft's page
1 The process object
2 If 0, a process terminated. If 1, a thread terminated
3 Reserved
4 Reserved

Parameter 2 is the useful one for a technician: it says whether a whole process or only a thread ended. The parameters are recorded with the crash, and Microsoft's page says to use the second parameter to decide whether a dying process or a thread caused the check. Reading them needs a crash dump and a debugger. That is not walked through here; Microsoft's page names the debugger tools (WinDbg and the !analyze extension) and says determining the cause "typically requires the use of the debugger".

Likely causes

Microsoft's page gives no list of causes beyond the definition: a critical process ended because its state was corrupted or damaged. Its general tips, for people who cannot use a debugger, point to the following areas.

Area What Microsoft's tips say
Recently added hardware Try removing or replacing it; check with the manufacturer for patches
New drivers or system services Try removing or updating them; work out what changed to make the bug check appear
Firmware Check whether an updated system BIOS or firmware is available
Hardware faults Run the hardware diagnostics supplied by the system manufacturer
Damaged system files Use the System File Checker tool (SFC.exe) to repair missing or corrupted system files
Malware or disk damage Run a virus detection program, making sure it checks the Master Boot Record
A faulting driver Look in Device Manager for devices marked with an exclamation point and check the events in the driver's properties

Microsoft gives no counts and no order of likelihood. The list is the page's checklist, not a ranking.

Prove the cause before changing anything

All of these read only. Their aim is to decide whether this is a one-off, a pattern tied to a change, or something that needs a dump analysis.

  1. Write down the exact stop code and any module name on the screen. Microsoft's Windows 10 and 11 stop code page says a stop code such as PAGE_FAULT_IN_NONPAGED_AREA or MEMORY_MANAGEMENT appears at the bottom of the screen and, if available, the module name of the code that was being executed. A named module gives you something to search for and to ask the vendor about.

  2. Decide whether it is repeating. Microsoft's support page says in most cases when Windows restarts unexpectedly the problem is resolved by the restart and no further action is needed, and that the steps below are for when Windows restarts repeatedly with the same stop code. One blue screen in six months is not a reason to change drivers.

  3. Look in the System log. Microsoft's bug check page says to consider using the event log to see if errors occur before this stop code, and its general tips say to look for critical errors in the System log in the same time window as the blue screen. Note any errors about services or drivers shortly before the restart.

  4. Look at what changed. Microsoft's tips tell you to ask what was added: new hardware, new drivers, new system services. Compare the date of the first blue screen with the dates of recent installs and updates.

  5. Look in Device Manager for any device marked with an exclamation point.

  6. If a user dump file is available, say so to whoever will analyse it. Microsoft's page says that in many cases a user dump is also created before the system bug checks, and that when one is available it should be examined first. The page does not say where such files are kept, so ask the person who will read them.

Example (illustrative): at contoso.com.au the office manager's desktop shows CRITICAL_PROCESS_DIED twice in one week, both times shortly after she opens the label printing program. The System log shows a service error from the printing software's own service a few seconds before each restart, and that service was installed the week the problem began. That matches the page's pointer to new system services, and gives the vendor a precise question.

Fix

Microsoft gives general steps, not a single repair. Do them in order, one at a time, so you know which one worked. After each, use the machine as usual for long enough to see whether the stop code returns.

Remove or update what changed

Risk: the next step removes or updates a driver or a system service on a computer that is already unstable. A device may stop working, and a service the business depends on may not run. Do this on one computer first and tell the person who uses it.

Before you remove or update a driver or service, note its name and version and the date it was installed. The page gives no command for this, so it is general advice, and the note is what lets you put it back.

Microsoft's tip: if new device drivers or system services have been added recently, try removing or updating them. If you added new hardware before the error, shut down, remove the hardware and restart. In Device Manager, right-click a device marked with an exclamation point and choose Update driver; if updating does not help, Microsoft's support page says to try disabling or uninstalling the device.

To undo it: reinstall the driver or service version you noted, and refit the hardware you removed. Microsoft's pages do not give a rollback procedure, so keep the installer for the earlier version before you begin.

Check for updated firmware

Microsoft's tip is to check with the manufacturer to see if an updated system BIOS or firmware is available, and to run the hardware diagnostics the manufacturer supplies. Checking for an update and running the diagnostics change nothing; follow the manufacturer's own instructions for those two. Applying a firmware update is a larger step, and Microsoft's page gives no instructions for it, so it is not described here.

Repair system files with the System File Checker

Disruptive step: the next command scans protected Windows files and replaces files it finds damaged. It can take a while and puts load on the disk. Microsoft's page does not describe what it will do to a system whose state is already in question, so run it on a computer you can afford to have unavailable for a time.

Microsoft's tip is the System File Checker, which it describes as a utility that lets users scan for corruptions in Windows system files and restore corrupted files. The command is given below, after the warning.

Before running it, take a restore point or a full backup of the computer, so that the system can be returned to its state beforehand. The page gives no command for this, so it is general advice.

Run the following in a command prompt started as administrator:

SFC /scannow

To undo it: a file repair cannot be reversed command by command. If the system behaves worse afterwards, restore the restore point or backup you took beforehand.

If nothing helps

Disruptive step: restoring Windows changes the operating system and may change installed programs, and the machine is unavailable while it runs. Plan the work with the user and keep it for when the earlier steps have not helped.

Microsoft's support page says that if none of the basic steps help, try restoring Windows with a system restore point or one of the other recovery options, and to choose the recovery option that most closely matches the scenario.

Before restoring, take a backup of the user's files. The page gives no command for this, so it is general advice.

Use the restore point or recovery option as Microsoft's support page describes it.

To undo it: a restore cannot be reversed command by command. The backup of the user's files taken beforehand is the way back for their data.

Confirm the fix

  • The stop code has not returned after a sensible period of normal use. Choose the period from how far apart the earlier blue screens were; for a fault that came every few days, a day without it proves very little.
  • The System log has no new critical errors in the same area as before.
  • Device Manager shows no devices with an exclamation point.
  • If you changed a driver, service or firmware, note the version and date against the date the blue screens stopped.

What to watch afterwards

  • Any return of CRITICAL_PROCESS_DIED, with the module name and the date. A second occurrence after a change is more informative than the first.
  • A different stop code. Microsoft's pages treat each bug check separately, and a new code is a different bug check.
  • New drivers and services on the same machine, and on others of the same model.
  • Free disk space. Microsoft's support page says it is a good idea to have 10% to 15% of free space available because the system and some applications need it for swap files and other functions.

Risks and limits

These steps have not been run or lab-tested.

Microsoft's bug check page, dated 2022-12-22, says it is for programmers and that customers who have received a blue screen should see its troubleshooting page. It gives no figures for how many cases each cause covers, no version range and no steps that fix this bug check in general. The root cause needs a dump file and a debugger, and nothing here replaces that. The steps here are the general tips Microsoft lists; they may fix the problem or may only remove candidates. If the stop code keeps returning, collect the dump files and the System log and have them analysed.

Sources