[zeromq-dev] Test case for the "Assertion failed: nbytes == sizeof (command_t)" error.

Pieter Hintjens ph at imatix.com
Sun Jun 12 15:28:02 CEST 2011

On Sun, Jun 12, 2011 at 3:13 PM, Luc Heinrich <luc at honk-honk.com> wrote:

> That makes sense, I changed the test case so the signal handler does nothing but switch the keep_looping variable (which is now therefore global) from 1 to 0. I have also removed the controlling socket which was used from the signal handler to wake up the poll call. So I'm down to this...

This seems correct code, so we're at the real error message here. Does
not happen on Linux afaict. So, we'll debug remotely :-)

> ^CAssertion failed: nbytes == sizeof (command_t) (mailbox.cpp:194)
> [1]    25990 abort      ./testcase

Can you get a debug backtrace?


More information about the zeromq-dev mailing list