[zeromq-dev] Assertion failure in libzm msg.cpp:296 when reading from ZMQ_STREAM socket

Auer, Jens jens.auer at cgi.com
Tue Nov 17 15:00:50 CET 2015


Hi,

we have a spurious crash in our program form inside the zeroMQ library with zeroMQ 4.1.3. The backtrace points to code reading from a TCP socket to a ZMQ_STREAM socket:
#0  0x00007fa8341145d7 in raise () from /lib64/libc.so.6
#1  0x00007fa834115cc8 in abort () from /lib64/libc.so.6
#2  0x00007fa83410d546 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007fa83410d5f2 in __assert_fail () from /lib64/libc.so.6
#4  0x00007fa834f0097a in zmq::msg_t::set_metadata (this=this at entry=0x7fa82c06ca88, metadata_=0x7fa82c06eb30) at src/msg.cpp:296
#5  0x00007fa834f1c270 in zmq::stream_engine_t::push_raw_msg_to_session (this=0x7fa82c06a600, msg_=0x7fa82c06ca88) at src/stream_engine.cpp:846
#6  0x00007fa834f1cff5 in zmq::stream_engine_t::restart_input (this=0x7fa82c06a600) at src/stream_engine.cpp:428
#7  0x00007fa834f11452 in zmq::session_base_t::write_activated (this=0x2265310, pipe_=0x2264b00) at src/session_base.cpp:278
#8  0x00007fa834efa46c in zmq::io_thread_t::in_event (this=0x2249be0) at src/io_thread.cpp:83
#9  0x00007fa834ef93de in zmq::epoll_t::loop (this=0x22485b0) at src/epoll.cpp:176
#10 0x00007fa834f25030 in thread_routine (arg_=0x2248630) at src/thread.cpp:96
#11 0x00007fa834cc6df5 in start_thread () from /lib64/libpthread.so.0
#12 0x00007fa8341d51ad in clone () from /lib64/libc.so.6

The code basically reads polls on the socket in a Reactor, and then reads all available message parts from the socket with ZMQ_DONTWAIT. Does anybody know this problem? I don't know if we cause the problem, but I tried valgrind to rule out memory corruption problems.

Best wishes,
  Jens

--
Jens Auer | CGI | Software-Engineer
CGI (Germany) GmbH & Co. KG
Rheinstraße 95 | 64295 Darmstadt | Germany
T: +49 6151 36860 154
jens.auer at cgi.com<mailto:jens.auer at cgi.com>
Unsere Pflichtangaben gemäß § 35a GmbHG / §§ 161, 125a HGB finden Sie unter de.cgi.com/pflichtangaben<http://de.cgi.com/pflichtangaben>.

CONFIDENTIALITY NOTICE: Proprietary/Confidential information belonging to CGI Group Inc. and its affiliates may be contained in this message. If you are not a recipient indicated or intended in this message (or responsible for delivery of this message to such person), or you think for any reason that this message may have been addressed to you in error, you may not use or copy or deliver this message to anyone else. In such case, you should destroy this message and are asked to notify the sender by reply e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20151117/18b3d62d/attachment.htm>


More information about the zeromq-dev mailing list