[zeromq-dev] Assertion failed on invalid arguments

Ori Barak oribarak at microsoft.com
Tue Jun 2 09:45:12 CEST 2015


We have two production services which uses ZMQ push pull sockets to communicate.
We used ZMQ 3.2.3 and clrzmq running on windows server 2012 for a while and as the traffic increased and perhaps the hosting environment has changed (OS version changes and networking topology) we started noticing that the sending process is crashing from time to time (Every couple of minutes)

I upgraded ZMQ to the latest stable version ( and switched to use clrzmq4 but I'm still seeing the same crashes as before.

The properties we set on the push sockets are: BufferSize: Int.max, HighWatermark: 10000000, Linger: 1 sec
Also since the sender is connected to a load balancer we manually reconnecting the sockets every 3 seconds to get a health receiver machine.

The process crashes silently and the error message printed is: Assertion failed: Invalid argument (..\..\..\..\src\tcp.cpp:48)
When looking at the event viewer I see this error:

Faulting module name: KERNELBASE.dll, version: 6.2.9200.16864, time stamp: 0x531d34d8
Exception code: 0x40000015
Fault offset: 0x0000000000047b8c
Faulting process id: 0xa88
Faulting application start time: 0x01d09cf8127ac087
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: ab433e69-08ec-11e5-93f6-008cfa0438b3
Faulting package full name:
Faulting package-relative application ID:

I saw that there are some known issue on 'Assertion failed: Invalid arguments' at  https://zeromq.jira.com/browse/LIBZMQ-207 and https://zeromq.jira.com/browse/LIBZMQ-526
But they are both seem to be closed as fixed.

Any idea how I can further investigate the problem?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150602/77d90ed8/attachment.htm>

More information about the zeromq-dev mailing list