绑定套接字时Pyzmq分段错误

时间:2014-05-30 21:42:09

标签: python segmentation-fault zeromq pyzmq

我正在尝试使用ZeroMQ和Python启动并运行一个项目,但是当我运行以下代码时它会出现分段错误:

import zmq
context = zmq.Context()
pub_endpoint = 'tcp://127.0.0.1:23310'
pub_sock = context.socket(zmq.PUB)
pub_sock.bind(pub_endpoint)

我得到的错误是:

Python(10252,0x7fff70eb7cc0) malloc: *** error for object 0x1010b8e60: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap

我在OSX 10.6.8上使用ZeroMQ 4.0.4运行Python 2.7.6。

0 个答案:

没有答案