[zeromq-dev] shutdown mutex issue with 2.10

Martin Sustrik sustrik at moloch.sk
Thu Oct 14 08:32:09 CEST 2010


Oliver,
>    Recently upgraded from an earlier 2.x (2.0.7 I think) to 2.1.0. I
> immediately ran into an unusual problem under Linux where my unit test
> module passed all tests but then failed to terminate.
>
> The test unit keeps getting stuck with this backtrace, apparently in the
> destructor for a static zmq::context being destroyed at shutdown.
>    

Version 2.1 has new shutdown semantics. zmq_term waits till all pending 
outgoing messages are sent. Given that you close the receiving socket so 
fast that the sending socket has no chance to send your message, 
termination of sender's context waits till the pending message can be sent.

Martin



More information about the zeromq-dev mailing list