[zeromq-dev] ZeroMQ crashes when using epgm?

Ming Ji finalguy at gmail.com
Fri Sep 25 05:31:49 CEST 2015


Hi all,

    I am using ZeroMQ with epgm. Occasionally the app crashes. It does
generate a core file.  GDB backtrace gives the following information:

(gdb)
(gdb) bt
#0  0x0000003fe348995e in memcpy () from /lib64/libc.so.6
#1  0x00007f942b6b04a9 in
zmq::decoder_base_t<zmq::v1_decoder_t>::decode(unsigned char const*,
unsigned long, unsigned long&) ()
    at decoder.hpp:119
#2  0x00007f942b68823c in
zmq::pgm_receiver_t::process_input(zmq::v1_decoder_t*) () at
pgm_receiver.cpp:261
#3  0x00007f942b687a69 in zmq::pgm_receiver_t::restart_input() () at
pgm_receiver.cpp:124
#4  0x00007f942b695bb5 in
zmq::session_base_t::write_activated(zmq::pipe_t*) () at
session_base.cpp:260
#5  0x00007f942b68d9e9 in zmq::pipe_t::process_activate_write(unsigned
long) () at pipe.cpp:233
#6  0x00007f942b682d2d in zmq::object_t::process_command(zmq::command_t&)
() from /opt/yadev/3rdParty/cpp/ZeroMQ/4.0.5/lib/libzmq.so.4
#7  0x00007f942b6789da in zmq::io_thread_t::in_event() () at
io_thread.cpp:73
#8  0x00007f942b676c3d in zmq::epoll_t::loop() () at epoll.cpp:165
#9  0x00007f942b676cfa in zmq::epoll_t::worker_routine(void*) () at
epoll.cpp:178
#10 0x00007f942b6a78be in thread_routine () from
/opt/yadev/3rdParty/cpp/ZeroMQ/4.0.5/lib/libzmq.so.4
#11 0x0000003fe3c079d1 in start_thread () from /lib64/libpthread.so.0
#12 0x0000003fe34e8b6d in clone () from /lib64/libc.so.6


It looks like memory out of bound. Anyone can point out how to solve this?


Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150925/09e71d26/attachment.htm>


More information about the zeromq-dev mailing list