[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 16:27:50 CET 2015


Hi,

I could reproduce the issue on the master. I even was lucky and it crashed really early. The stack trace is:
#0  0x00007f8ff2c185d7 in raise () from /lib64/libc.so.6
#1  0x00007f8ff2c19cc8 in abort () from /lib64/libc.so.6
#2  0x00007f8ff2c11546 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007f8ff2c115f2 in __assert_fail () from /lib64/libc.so.6
#4  0x00007f8ff3a07bb9 in zmq::msg_t::set_metadata (this=this at entry=0x7f8fec06c668, metadata_=0x7f8fec06ec10) at src/msg.cpp:390
#5  0x00007f8ff3a25040 in zmq::stream_engine_t::push_raw_msg_to_session (this=0x7f8fec06c730, msg_=0x7f8fec06c668) at src/stream_engine.cpp:873
#6  0x00007f8ff3a25435 in zmq::stream_engine_t::restart_input (this=0x7f8fec06c730) at src/stream_engine.cpp:456
#7  0x00007f8ff3a190c2 in zmq::session_base_t::write_activated (this=0x16c0c50, pipe_=0x16c90f0) at src/session_base.cpp:284
#8  0x00007f8ff3a00eb4 in zmq::io_thread_t::in_event (this=0x16a2eb0) at src/io_thread.cpp:84
#9  0x00007f8ff39ffcde in zmq::epoll_t::loop (this=0x16a17c0) at src/epoll.cpp:178
#10 0x00007f8ff3a2d550 in thread_routine (arg_=0x16a1840) at src/thread.cpp:96
#11 0x00007f8ff37cadf5 in start_thread () from /lib64/libpthread.so.0
#12 0x00007f8ff2cd91ad in clone () from /lib64/libc.so.6

Cheers,
  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.
________________________________
Von: zeromq-dev-bounces at lists.zeromq.org [zeromq-dev-bounces at lists.zeromq.org]" im Auftrag von "Charles Remes [lists at chuckremes.com]
Gesendet: Dienstag, 17. November 2015 15:54
An: ZeroMQ development list
Betreff: Re: [zeromq-dev] Assertion failure in libzm msg.cpp:296 when reading from ZMQ_STREAM socket

Yes, you should build libzmq master and run your application with it. If it solves your problem, all is well.


On Nov 17, 2015, at 08:45, Auer, Jens <jens.auer at cgi.com<mailto:jens.auer at cgi.com>> wrote:

Hi,

have there been any fixes relating to this in the current master? I could check with the code from the repository.

Cheers,
  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.
________________________________
Von: zeromq-dev-bounces at lists.zeromq.org<mailto:zeromq-dev-bounces at lists.zeromq.org> [zeromq-dev-bounces at lists.zeromq.org<mailto:zeromq-dev-bounces at lists.zeromq.org>]" im Auftrag von "Charles Remes [lists at chuckremes.com<mailto:lists at chuckremes.com>]
Gesendet: Dienstag, 17. November 2015 15:43
An: ZeroMQ development list
Betreff: Re: [zeromq-dev] Assertion failure in libzm msg.cpp:296 when reading from ZMQ_STREAM socket

Pieter,

You were probably checking the source in libzmq master repository. Line 296 is blank in the msg.cpp source file.

However, in the zeromq-4-1 repository there is definitely an assertion on that line. Since the OP said they were using 4.1.3 then that’s the correct repository to check.

https://github.com/zeromq/zeromq4-1/blob/master/src/msg.cpp#L296

cr


On Nov 17, 2015, at 08:29, Pieter Hintjens <ph at imatix.com<mailto:ph at imatix.com>> wrote:

I don't see the assertion failure in msg.cpp:296...
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org<mailto:zeromq-dev at lists.zeromq.org>
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org<mailto:zeromq-dev at lists.zeromq.org>
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20151117/3b7c63d8/attachment.htm>


More information about the zeromq-dev mailing list