[zeromq-dev] Assertion failed: nbytes == sizeof (command_t) (mailbox.cpp:246) during orderly shutdown.

Mike Pearce mike at kaew.be
Fri May 13 14:45:46 CEST 2011

The linux man page describes that the socket recv command will return 0 when
the peer has performed an orderly shutdown. Ref(

ZMQ v2.1.6  is throwing an assertion
"Assertion failed: nbytes == sizeof (command_t) (mailbox.cpp:246)"

I added some debug and the assert occurs because the recv function returns
0. The assert triggers because 0<>24 (sizeof(command_t)). This seems to be a
bug in ZMQ that it throws an assertion during an orderly shut down.

This fault occurred using Ubuntu with Linux kernel 2.6.35
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110513/1f22e144/attachment.htm>

More information about the zeromq-dev mailing list