What does macOS kernel return 0x1000400F (MACH_RCV_INVALID_TRAILER) mean?

 
Previous Next
MACH_RCV_SCATTER_SMALL MACH_RCV_IN_PROGRESS_TIMED

MACH_RCV_INVALID_TRAILER

The requested receive trailer is not a supported combination

MACH_RCV_INVALID_TRAILER is a receive-option error. XNU defines trailer type and element selection through the MACH_RCV_TRAILER_TYPE and MACH_RCV_TRAILER_ELEMENTS masks. The status means the requested trailer type or number of elements is not supported; it does not mean that an arbitrary sender appended corrupt bytes to the message.

Trailers can carry metadata such as a sequence number, sender security information, audit data, context, or access-vector information. Requesting more metadata changes the storage requirement and the compatibility assumptions of the receiver. Code that hard-codes a numeric option mask can silently ask for an unsupported combination after an SDK or binding change.

What to inspect

  • Build trailer options with the named macros and retain the decoded mask in diagnostics.
  • Verify that the receive buffer accounts for the trailer size selected by the option mask.
  • Request only the trailer elements that the receiver actually consumes, then validate their documented structure before use.
  • Do not confuse this receive request error with MACH_SEND_INVALID_TRAILER, which concerns a sender-provided trailer.

References


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