[zeromq-dev] Memory Leak using 0MQ 3.0.2
Benoit Laplante
benoit.laplante at scigilian.com
Mon Oct 31 21:30:36 CET 2011
---------- Forwarded message ----------
From: Benoit Laplante <benoit.laplante at scigilian.com>
Date: Mon, Oct 31, 2011 at 4:28 PM
Subject: Re: [zeromq-dev] Memory Leak using 0MQ 3.0.2
To: Martin Sustrik <sustrik at 250bpm.com>
Yes it helps with my tests using DEALER <=> ROUTER pattern (broker) but it
crashes, on destruction, of my tests using the PUSH <=> PULL pattern (fan)
with this assert
*Bad address*
*rc == 0 (..\..\..\src\decoder.cpp:44)*
*
*
*stack:*
*
libzmq.dll!zmq::decoder_t::~decoder_t() Line 44 + 0x45 bytes C++
libzmq.dll!zmq::zmq_engine_t::~zmq_engine_t() Line 55 + 0x39 bytes C++
libzmq.dll!zmq::zmq_engine_t::`scalar deleting destructor'() + 0x2c bytes
C++
libzmq.dll!zmq::zmq_engine_t::terminate() Line 101 + 0x34 bytes C++
libzmq.dll!zmq::session_t::~session_t() Line 54 + 0x1e bytes C++
libzmq.dll!zmq::connect_session_t::~connect_session_t() Line 41 + 0x46
bytes C++
libzmq.dll!zmq::connect_session_t::`scalar deleting destructor'() + 0x2c
bytes C++
libzmq.dll!zmq::own_t::process_destroy() Line 217 + 0x30 bytes C++
libzmq.dll!zmq::own_t::check_term_acks() Line 213 C++
libzmq.dll!zmq::own_t::process_term(int linger_) Line 176 C++
libzmq.dll!zmq::session_t::proceed_with_term() Line 261 C++
libzmq.dll!zmq::session_t::terminated(zmq::pipe_t * pipe_) Line 131 C++
libzmq.dll!zmq::pipe_t::process_pipe_term_ack() Line 298 C++
libzmq.dll!zmq::object_t::process_command(zmq::command_t & cmd_) Line 109
C++
libzmq.dll!zmq::io_thread_t::in_event() Line 82 C++
libzmq.dll!zmq::select_t::loop() Line 191 C++
libzmq.dll!zmq::select_t::worker_routine(void * arg_) Line 205 C++
libzmq.dll!thread_routine(void * arg_) Line 33 C++
msvcr100d.dll!_callthreadstartex() Line 314 + 0x17 bytes C
msvcr100d.dll!_threadstartex(void * ptd) Line 297 C
*
*
*
I'm testing the same requests on two different types of server.
Benoit.
*
*
*
*
On Mon, Oct 31, 2011 at 3:46 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> On 10/31/2011 04:21 PM, Benoit Laplante wrote:
>
> I detected a small memory leak (76 bytes) when a socket identity is
>> greater than 29 chars on a DEALER socket.
>>
>
> Try adding following line at zmq_init.cpp:114:
>
> msg_->close();
>
> Let me know whether it helps.
>
> Martin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111031/deccfa5a/attachment.htm>
More information about the zeromq-dev
mailing list