You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "James Xu (JIRA)" <ji...@apache.org> on 2013/12/14 08:59:06 UTC

[jira] [Created] (STORM-83) zeromq send can cause divide by 0 in multithreaded cod

James Xu created STORM-83:
-----------------------------

             Summary: zeromq send can cause divide by 0 in multithreaded cod
                 Key: STORM-83
                 URL: https://issues.apache.org/jira/browse/STORM-83
             Project: Apache Storm (Incubating)
          Issue Type: Bug
            Reporter: James Xu
            Priority: Minor


https://github.com/nathanmarz/storm/issues/474

When running the unit tests I got a SIGFPE (FPE_INTDIV) in zmq::lb_t::send(zmq_msg_t*, int)+0x176 I traced this down to line 137 of lb.cpp in version 2.1.7 of zeromq. The error is a divide by 0 error. The denominator in this code is an active count, and about 7 lines above active passed a check for 0. zmq::lb_t is very much not thread safe, but it looks like we are somehow calling a single instance of it from multiple threads.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)