[zeromq-dev] C++ - Poll multiple sockets in different classes

Martin Sustrik sustrik at moloch.sk
Sat Oct 9 19:52:01 CEST 2010


Piero,
> Program received signal SIGSEGV, Segmentation fault.
> zmq::signaler_t::get_fd (this=0x30) at signaler.cpp:38
> 38    {
> (gdb) bt
> #0  zmq::signaler_t::get_fd (this=0x30) at signaler.cpp:38
> #1  0x00007ffff7dc0935 in zmq_poll (items_=0x7fffffffdc60,
>     nitems_=<value optimized out>, timeout_=-1) at zmq.cpp:421
> #2  0x00000000004022eb in zmq::poll(zmq_pollitem_t*, int, long) ()
> #3  0x0000000000401eeb in MultiServer::receive(long) ()
> #4  0x0000000000402034 in main ()
My guess would be that pollitem array is not filled in correctly. Isn't 
there an ivalid 0MQ socket handle?

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101009/42318abd/attachment.htm>


More information about the zeromq-dev mailing list