[zeromq-dev] Possible memory leak in zmq::msg_t

Procter, Stephen Stephen.Procter at salik.ae
Thu Apr 3 10:08:36 CEST 2014


Apologies, forgot to include details of my config:

0MQ 4.0.4, CZMQ 2.1.0
OpenSUSE 13.1 x86_64 (Linux 3.11.10-7)
HP ProBook 440 Notebook, Intel Core i7


-----Original Message-----
From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of Procter, Stephen
Sent: Thursday, April 03, 2014 12:00 PM
To: zeromq-dev at lists.zeromq.org
Subject: [zeromq-dev] Possible memory leak in zmq::msg_t

Hi all,

First, the obligatory note of thanks to Pieter and the 0MQ community for such a beautiful artefact. I have finally managed to engineer an opportunity to use 0MQ at work and am enjoying it immensely!

On to business: I think I'm experiencing this issue (or at least a close relation), first raised against v3.0.2:

  http://lists.zeromq.org/pipermail/zeromq-dev/2011-October/014048.html

I have reproduced it by connecting a PUSH and a PULL socket via inproc, destroying the puller, and then trying to send a message via the pusher. The leak only occurs if the message is at least 30 bytes in length; shorter messages do not provoke a leak.

Minimal test case (in CZMQ, as that's what I'm using, although it looks like the issue is in 0MQ itself) and valgrind output here:

  http://pastebin.com/nTcbQm3z

Best regards,

Steve


This transmission is intended solely for the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you have received this transmission in error, please notify us immediately by e-mail at info at salik.ae _______________________________________________
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