[zeromq-dev] pub sub memory leak problem
david starkweather
starkdg at comcast.net
Thu Aug 5 21:00:33 CEST 2010
just came across an interesting result. As noted from the previous
code, valgrind did not detect any memory leak. However, that was just
one message. In this link, there is code that loops through many
messages. When I add the line at the end of the loop, sleep(1), I can
run the code many times in a loop without any apparent memory leak. But
wihout that line, the memory quickly climbs.
http://pastebin.com/DjGbx6kZ
On Thu, 2010-08-05 at 13:44 -0400, david starkweather wrote:
> I just ran it in valgrind and put the results in the pastebin as well:
>
> http://pastebin.com/2M3yYhmm
>
>
> On Thu, 2010-08-05 at 19:02 +0200, Pieter Hintjens wrote:
> > On Thu, Aug 5, 2010 at 6:50 PM, Matt Weinstein <matt_weinstein at yahoo.com> wrote:
> >
> > > missing free_fn for zmq_msg_init_data?
> >
> > Nope, it's using static data plus the memory leak is in the
> > subscriber, presumably.
> >
> > David, the code looks fine. Can you reduce this to the simplest possible
> > case that demonstrates a memory leak?
> >
> > -Pieter
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list