{"action":"created","issue":{"url":"https://api.github.com/repos/zeromq/pyzmq/issues/846","repository_url":"https://api.github.com/repos/zeromq/pyzmq","labels_url":"https://api.github.com/repos/zeromq/pyzmq/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/pyzmq/issues/846/comments","events_url":"https://api.github.com/repos/zeromq/pyzmq/issues/846/events","html_url":"https://github.com/zeromq/pyzmq/issues/846","id":155752064,"number":846,"title":"`Assertion failed: written` on address reuse","user":{"login":"Wild-M","id":19473170,"avatar_url":"https://avatars.githubusercontent.com/u/19473170?v=3","gravatar_id":"","url":"https://api.github.com/users/Wild-M","html_url":"https://github.com/Wild-M","followers_url":"https://api.github.com/users/Wild-M/followers","following_url":"https://api.github.com/users/Wild-M/following{/other_user}","gists_url":"https://api.github.com/users/Wild-M/gists{/gist_id}","starred_url":"https://api.github.com/users/Wild-M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wild-M/subscriptions","organizations_url":"https://api.github.com/users/Wild-M/orgs","repos_url":"https://api.github.com/users/Wild-M/repos","events_url":"https://api.github.com/users/Wild-M/events{/privacy}","received_events_url":"https://api.github.com/users/Wild-M/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-19T14:34:10Z","updated_at":"2016-05-19T14:51:15Z","closed_at":"2016-05-19T14:51:15Z","body":"To put it simply:\r\n\r\n```\r\n> import zmq\r\nzmq.__version__\r\n'15.2.0'\r\nzmq.zmq_version()\r\n'4.1.4'\r\ncontext = zmq.Context.instance()\r\nsock1 = context.socket(zmq.REP)\r\nsock1.connect(\"inproc://mtest\")\r\nsock1.disconnect(\"inproc://mtest\")\r\nsock1.close()\r\nsock2 = context.socket(zmq.REP)\r\nsock2.bind(\"inproc://mtest\")\r\nAssertion failed: written (src/ctx.cpp:559)\r\nAborted (core dumped)\r\n```\r\n\r\nSince this issue doesn't happen if sock1 is never opened/closed, it seems that the inproc system does not correctly tear down the initial socket."},"comment":{"url":"https://api.github.com/repos/zeromq/pyzmq/issues/comments/220348286","html_url":"https://github.com/zeromq/pyzmq/issues/846#issuecomment-220348286","issue_url":"https://api.github.com/repos/zeromq/pyzmq/issues/846","id":220348286,"user":{"login":"Wild-M","id":19473170,"avatar_url":"https://avatars.githubusercontent.com/u/19473170?v=3","gravatar_id":"","url":"https://api.github.com/users/Wild-M","html_url":"https://github.com/Wild-M","followers_url":"https://api.github.com/users/Wild-M/followers","following_url":"https://api.github.com/users/Wild-M/following{/other_user}","gists_url":"https://api.github.com/users/Wild-M/gists{/gist_id}","starred_url":"https://api.github.com/users/Wild-M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wild-M/subscriptions","organizations_url":"https://api.github.com/users/Wild-M/orgs","repos_url":"https://api.github.com/users/Wild-M/repos","events_url":"https://api.github.com/users/Wild-M/events{/privacy}","received_events_url":"https://api.github.com/users/Wild-M/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T14:51:15Z","updated_at":"2016-05-19T14:51:15Z","body":"Understood. I suspected possible misuse of the underlying C library, but I'll close and follow up with them once I learn to build equivalent code in C. Thanks!"}}