[zeromq-dev] Assertion failed end_chunk->next in yqueu.hpp 108

Martin Sustrik sustrik at 250bpm.com
Tue Feb 22 12:54:05 CET 2011

Hi Nico,

> we would like to report an assertion failure in the following context:
> 1 publisher to 100 subscriber with a message of 5 million bytes. The
> publisher runs in a periodic loop of 100Hz. The data is allocated
> statically, so no external call for a memory deallocation. Both
> publisher and subscriber are implemented in C linked agains 2.0.9
> version of 0MQ.

The assertion means that malloc() can't allocate the memory:

   end_chunk->next = (chunk_t*) malloc (sizeof (chunk_t));
   zmq_assert (end_chunk->next);

Which, AFAICS means that you've run out of memory. Try using ZMQ_HWM 
option to limit the number of messages queued.


More information about the zeromq-dev mailing list