| Previous | Next |
| DBG_UNABLE_TO_PROVIDE_HANDLE | DBG_TERMINATE_PROCESS |
DBG_TERMINATE_THREAD
The debugger chose to terminate a thread
This status describes a debugger control action rather than a spontaneous thread exit. It is used when the debugging machinery directs the target thread to terminate instead of resuming its prior execution path. Thread termination can leave process-wide locks, loader state, and application invariants incomplete.
It should therefore be distinguished from EXIT_THREAD_DEBUG_EVENT, which reports that a thread has already exited. The diagnostic record should preserve the event that caused the debugger to choose termination and whether other threads depend on resources owned by the target thread.
What to inspect
- Capture the target process and thread IDs and the triggering exception or debugger command.
- Inspect whether the thread owned critical sections, loader locks, or application transactions.
- Expect secondary failures if the process continues after forced thread termination.
- Do not describe this as a normal application-requested thread exit without corroborating evidence.
References
- Microsoft Open Specifications: NTSTATUS values
- Microsoft: debugging events
- Microsoft: ContinueDebugEvent
- Wine source: NTSTATUS definitions
Looking for a different code? Search another status or error code.
