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

Pieter Hintjens pieterh at gmail.com
Fri May 13 14:53:55 CEST 2011


Can you retest with 2.1.7 please?

-Pieter
On 13 May 2011 14:45, "Mike Pearce" <mike at kaew.be> wrote:
> The linux man page describes that the socket recv command will return 0
when
> the peer has performed an orderly shutdown. Ref(
> http://linux.die.net/man/2/recv)
>
> 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/d49e6c1e/attachment.htm>


More information about the zeromq-dev mailing list