| Previous | Next |
| KERN_NOT_DEPRESSED | KERN_LOCK_SET_DESTROYED |
KERN_TERMINATED
Object lifetime, not parameter syntax
KERN_TERMINATED indicates that the referenced Mach object reached its terminal state before or during the operation. The port name or handle may still appear in application diagnostics, but the kernel object behind it is no longer usable for this request.
That makes this a lifecycle race to investigate. It is distinct from KERN_INVALID_NAME and KERN_INVALID_RIGHT, which describe name/right resolution, and from KERN_INVALID_TASK, which is specifically about an inactive task target.
What to inspect
- Log where the object was obtained and where its termination was observed.
- Correlate teardown, cancellation, service exit, and port-deallocation events.
- Ensure asynchronous callbacks cannot issue new work after the owning object begins shutdown.
- Use the subsystem supported completion or invalidation signal before discarding the original cause.
References
- Apple XNU: kern_return.h
- Apple Kernel Programming Guide: tasks, threads, and ports
- Apple Kernel Programming Guide: synchronization and shutdown-sensitive waits
Looking for a different code? Search another status or error code.
