[zeromq-dev] Send&Receive is broken in v2.1.5?
Pieter Hintjens
ph at imatix.com
Wed Apr 20 16:14:29 CEST 2011
Artem,
Thanks for identifying this error. I'm assuming it's a bug in some new
code that checks zmq_msg_t's for validity. The error is in libzmq
master, and was pushed downstream to the 2.1 branch without sufficient
checking. Mea maxima culpa.
I'm making a new 2.1.5 release now with your patch, which indeed fixes
the tests.
-Pieter
On Wed, Apr 20, 2011 at 3:35 PM, Artem Rodygin <artem.rodygin at gmail.com> wrote:
> Hello,
>
> I have upgraded to v2.1.5 (was 2.1.4 before), rebuilt my application,
> and my unit-test suite returned a lot of failures after that.
> I took a look at the delta between 2.1.4 and 2.1.5 - maybe I don't
> understand the idea, but probably you meant:
>
> if (unlikely ((msg_->flags | ZMQ_MSG_MASK) != ZMQ_MSG_MASK)) {
>
> instead of:
>
> if (unlikely ((msg_->flags | ZMQ_MSG_MASK) != 0xff)) {
>
> This appears twice (lines 468 and 513) in the "socket_base.cpp". When
> I changed these two lines as I described above - everything started to
> work fine.
>
> Please let me know, what do you tihink.
>
> Thank you,
> Artem
>
> P.S. I have raised new issue #197 at github, and just informing about
> it by this email as advised at the "Report an Issue" how-to on the
> site.
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
More information about the zeromq-dev
mailing list