Socket server crashes with random client data
Description
Environment
MacOSX 10.8.5, zmq 4.x (any version, including current git head), jzmq 2 or 3, java 7
Activity
Show:

Bruno D. Rodrigues October 11, 2013 at 2:43 PM
The patch https://github.com/zeromq/libzmq/pull/708 on zmq branch resolves this issue.
Compile any zmq 4, from download, git master, branches.
Then jzmq 2 or 3.
Create a simple java client similar to the first example from the book, like:
final ZContext context = new ZContext();
final Socket socket = context.createSocket(ZMQ.REP);
socket.bind("tcp://*:5555");
byte[] msg = socket.recv();
On a different console, run telnet localhost 5555 and write some chars plus enter.
The java code (.recv()) dies with the following line:
Assertion failed: buffer_size == header_size (stream_engine.cpp:484