Uploaded image for project: 'libzmq'
  1. libzmq
  2. LIBZMQ-325

Crash on two sockets with same identity

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: core
    • Labels:
      None

      Description

      If two sockets connect with the same identity then when one of them disconnects any activity on the other will trigger an assertion on the server.

      I tested this with the master branch, here is an example code here: https://gist.github.com/1860052

      Just run the server and then the client and wait.
      The server will shows this:

      Assertion failed: false (xrep.cpp:93)
      Abort trap: 6

      And the client this:

      Completed
      Assertion failed: (rc == 0 || errno == ETERM), function zsockopt_set_linger, file zsockopt.c, line 641.
      Abort trap: 6

      I am running this on mac os x 10.7.2

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              schmurfy Julien Ammous
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: