| Anterior | Siguiente |
| MACH_SEND_INTERRUPTED | MACH_SEND_INVALID_REPLY |
MACH_SEND_MSG_TOO_SMALL
Qué significa MACH_SEND_MSG_TOO_SMALL
Como mínimo debe abarcar la cabecera y, en mensajes complejos, los descriptors que msgh_bits/count anuncian. Un msgh_size incoherente hace que el parser no pueda confiar en la estructura.
El problema suele ser cálculo de tamaño o packing del caller.
Qué comprobar
- Comprueba msgh_size contra sizeof(header) y body real.
- Verifica descriptor count y offsets.
- Revisa alignment/padding de structs.
- No use strlen u otros tamaños de payload como tamaño total del Mach message.
Referencias técnicas
- Mach Kernel Interface Reference: mach_msg
- Apple XNU source: mach/message.h
- GNU Mach Reference Manual: interprocess communication
¿Buscas un código diferente? Buscar otro código de estado o error.
