| Previous | Next |
| KERN_DEFAULT_SET | KERN_INVALID_LEDGER |
KERN_EXCEPTION_PROTECTED
A protected exception-handling path
KERN_EXCEPTION_PROTECTED is narrower than a generic failure to inspect a thread. XNU defines it for an attempt to obtain a protected exception port, or to abort a thread while that thread is processing a protected exception.
The result therefore concerns the exception-handling state and protection of the Mach interface. It should not be diagnosed as the original application exception, memory fault, or breakpoint that may have led to this point.
What to inspect
- Record the thread, requested exception mask or behavior, and whether the operation was a query or an abort.
- Keep the original exception type and its code/subcode separate from this return value.
- Review the exception-port API contract before changing thread-control timing.
- Avoid racing exception handling with thread termination or abort logic merely to suppress this result.
References
- Apple XNU: kern_return.h
- XNU: exception_types.h
- Mach Kernel Interface Reference: thread_get_exception_ports
Looking for a different code? Search another status or error code.