[zeromq-dev] yet another problem with ZMQ_P2P
Pavel Gushcha
pavimus at gmail.com
Fri Feb 5 15:58:39 CET 2010
I know, that P2P is not in release, i want to help to debug it,
because i wrote big piece of code and don't want temporary rewrite it
with ZMQ_DOWNSTREAM/ZMQ_UPSTREAM sockets :-)
I attached simple test program, that demonstrates some problems (or
may be i missed something in my testapps):
test1.c illustrates simultaneous sending messages from first app (run
it by "test1 bind") to second (run it by"test1 connect"), and second
to first. First app crashes with messages:
msg 0
.....
msg 35
Bad address
msg 36
msg 37
nbytes != -1 (tcp_socket.cpp:197)
msg 38
msg 39
msg 39
Segmentation Fault
error like "nbytes != -1 (tcp_socket.cpp:197)" i see frequent in zmq1.
This is because my apps are connected trough relative slow, unstable
network. As i understand, this error occurs when connection is dropped
while sending/receiving messages. Could you fix this behaviour please
in zmq1/zmq2?
second application crashes too:
msg 0
.....
msg 45
msg 46
Segmentation fault
test2.c illustrates sending messages from first application and
receiving in second. First application crashes as in test2, second
application crashes with different error:
msg 0
Cannot allocate memory
rc == 0 (zmq_decoder.cpp:100)
Segmentation fault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test1.c
Type: text/x-c
Size: 1233 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100205/67e23a10/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.c
Type: text/x-c
Size: 1233 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100205/67e23a10/attachment-0001.bin>
More information about the zeromq-dev
mailing list