[zeromq-dev] Assertion failure when receiving

Doron Somech somdoron at gmail.com
Fri May 6 18:01:25 CEST 2016


it seems you didn't initialize the zmq_msg structure before calling the
receive method.

Make sure to call zmq_msg_init before receiving the message.

On Fri, May 6, 2016 at 6:38 PM, Ale Strooisma <
a.strooisma at student.utwente.nl> wrote:

> Hi guys,
>
> when receiving a message I get this error/warning:
>
>     Assertion failed: check () (msg.cpp:220)
>
> That is on the "unlikely" line of this bit:
>
> int zmq::msg_t::close ()
> {
>     // Check the validity of the message.
>     if (unlikely (!check ())) {
>         errno = EFAULT;
>         return -1;
>     }
>     ...
>
>
> I don't really know what I should be looking for here. Could somebody give
> some hints?
>
>
> Kind regards,
> Ale Strooisma
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160506/2a1e2de4/attachment.htm>


More information about the zeromq-dev mailing list