[zeromq-dev] inproc ZMQ_PUB/SUB crashed at zmq_msg_recv( using libuv at sametime )

ymonster ymonster at 163.com
Wed Jun 18 03:32:26 CEST 2014

      It's the first time i am using a mail list . So if there are something wrong about this mail or I offens someone, Please point it out.

      As I described at libzmq/issues/1095, I found my code would crash from time to time at function zmq_msg_recv.
      I writed a simple server to test libuv. Casue libuv are not thread safe, so i use recursion-like function to call uv_write for each connection.
When connection established, I create a zeromq socket (inproc-zmq-sub) to receive data form a inpro-zeromq-publish socket coninuouslly. And call function
uv_server::_write_data, in this function i called zmg_msg_recv. Sometimes it would crash at here.

attachment : My test case (vs2010 project ), you may need libuv to build this project

Best regards.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140618/69a87e76/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uv_trail_shrink.7z
Type: application/x-7z-compressed
Size: 4539 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140618/69a87e76/attachment.7z>

More information about the zeromq-dev mailing list