[zeromq-dev] [2.1.0] encoder hanging in remote_thr tests

Steven McCoy steven.mccoy at miru.hk
Thu Dec 2 07:11:06 CET 2010


On 2 December 2010 13:51, Steven McCoy <steven.mccoy at miru.hk> wrote:

> Looks like a concurrency issue.  If I add the following simple trace the
> issue disappears,
>
>
Or just a compiler bug or feature, too much code being inlined and being
wiped out by the global optimiser.

*Run without trace:*
14# pos 614 buffersize 1426 write_pos 0014FA8A
call next()
size_ready === true
rc = TRUE
to_write 100
15# pos 714 buffersize 1426 write_pos 0014FEB0
call next()
rc = TRUE
to_write 0
16# pos 714 buffersize 1426 write_pos 0014FEB0
call next()
rc = TRUE
to_write 0
Assertion failed: !!to_write
(\sapporo\groups\miru\projects\zeromq\win32\src\encoder.hpp:94)


***

*Run with trace:*
14# pos 614 buffersize 1426 write_pos 000CFA8A
call next()
size_ready === true
rc = TRUE
to_write 100
15# pos 714 buffersize 1426 write_pos 000CD858
call next()
no new message
rc = FALSE
/encoder.get_data
pgm_socket.send
/pgm_socket.send
/pgm_sender_t::out_event
pgm_sender_t::terminate
pgm_sender_t::unplug
pgm_sender_t::~pgm_sender_t

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101202/6e154191/attachment.htm>


More information about the zeromq-dev mailing list