Hello,

This is a response to a request made in another thread [1] for a test case 
allowing to reproduce the "Assertion failed: nbytes == sizeof (command_t)" 
error on orderly shutdown. I should obviously have replied to the request 
directly but I only recently joined the list and I don't have the original 
message ;) Sorry about that.

I'm posting this because I actually just had this problem in a personal project 
too and I was able to build a minimal testcase to demonstrate it. I'm not the 
original poster, and I'm not sure if the context is similar but here it goes: 

https://gist.github.com/1020628

Note that:

* This is using ZMQ 2.1.7.
* The problem never occurs if the tcp ZMQ_ROUTER socket is not bound.
* The problem occurs relatively consistently, but sometimes does not.
* I get *three* possible different assertions: 
  - sometimes it's "Assertion failed: nbytes == sizeof (command_t) 
(mailbox.cpp:194)"
  - sometimes it's "nbytes != -1 (mailbox.cpp:190)"
  - sometimes it's both.

Let me know if you need more context or info.


[1] http://lists.zeromq.org/pipermail/zeromq-dev/2011-May/011196.html

-- 
Luc Heinrich - [email protected]

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to