What does NTSTATUS 0xC00000DB (STATUS_CANT_TERMINATE_SELF) mean?

 
Previous Next
STATUS_CANT_ACCESS_DOMAIN_INFO STATUS_INVALID_SERVER_STATE

STATUS_CANT_TERMINATE_SELF

The last thread cannot use this implicit self-termination path

The documented NTSTATUS has a narrow native meaning: a thread called NtTerminateThread with the implicit current-thread target while it was the last thread in its process. Terminating that thread would also complete process teardown, and this particular native call form rejects the case.

Preserve whether the caller supplied a real thread handle or used the implicit self target. If the intent is to end the process, use the normal process-exit path so process-wide cleanup semantics are explicit. If only a worker should exit, the architecture should not let that worker unexpectedly become the process's final thread.

What to inspect

  • Record the NtTerminateThread target form and current process thread count.
  • Use a process termination or normal ExitProcess path when the process should end.
  • Review shutdown ordering if a worker unexpectedly becomes the last remaining thread.

References


Looking for a different code? Search another status or error code.