Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 39088 invoked from network); 16 Mar 2007 13:02:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2007 13:02:55 -0000 Received: (qmail 14818 invoked by uid 500); 16 Mar 2007 13:03:03 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 14796 invoked by uid 500); 16 Mar 2007 13:03:03 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 14787 invoked by uid 99); 16 Mar 2007 13:03:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 06:03:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 06:02:54 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9759A71407E for ; Fri, 16 Mar 2007 06:02:34 -0700 (PDT) Message-ID: <9502023.1174050154615.JavaMail.jira@brutus> Date: Fri, 16 Mar 2007 06:02:34 -0700 (PDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQCPP-91) A few more Openwire memory leaks In-Reply-To: <28252489.1174049734493.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQCPP-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_38841 ] Timothy Bish commented on AMQCPP-91: ------------------------------------ Those could be phantom leaks since if you look at the functions in question, they return those allocated objects to the caller. The caller then uses them when performing actions on the Producer of Consumer in question. > A few more Openwire memory leaks > -------------------------------- > > Key: AMQCPP-91 > URL: https://issues.apache.org/activemq/browse/AMQCPP-91 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: Openwire > Affects Versions: 2.0 > Reporter: Albert Strasheim > Assigned To: Nathan Mittler > Priority: Minor > Fix For: 2.0 > > > I've found a few memory leaks in the Openwire code when running the unit tests for our library. I'll report the first few now (the ones I think I've figured out), and I'll add info on further leaks in separate comments. > First possible leak: > ==22866== 1728 (864 direct, 864 indirect) bytes in 12 blocks are definitely lost in loss record 25 of 40 > ==22866== at 0x1B90939A: operator new(unsigned) (vg_replace_malloc.c:132) > ==22866== by 0x81943CA: activemq::connector::openwire::OpenWireConnector::createConsumerInfo(cms::Destination const*, activemq::connector::SessionInfo*) (OpenWireConnector.cpp:621) > ==22866== by 0x81994FD: activemq::connector::openwire::OpenWireConnector::createConsumer(cms::Destination const*, activemq::connector::SessionInfo*, std::string const&, bool) (OpenWireConnector.cpp:382) > ==22866== by 0x8148B89: activemq::core::ActiveMQSession::createConsumer(cms::Destination const*, std::string const&, bool) (ActiveMQSession.cpp:236) > ==22866== by 0x8146CAB: activemq::core::ActiveMQSession::createConsumer(cms::Destination const*, std::string const&) (ActiveMQSession.cpp:208) > OpenWireConnector::createConsumerInfo allocates a commands::ConsumerInfo which is returned to OpenWireConnector::createConsumer which does a few things with it, but doesn't delete it if the member function returns normally. > Next possible leak: > ==22866== 1232 (440 direct, 792 indirect) bytes in 11 blocks are definitely lost in loss record 27 of 40 > ==22866== at 0x1B90939A: operator new(unsigned) (vg_replace_malloc.c:132) > ==22866== by 0x81989F7: activemq::connector::openwire::OpenWireConnector::createProducer(cms::Destination const*, activemq::connector::SessionInfo*) (OpenWireConnector.cpp:680) > ==22866== by 0x8149324: activemq::core::ActiveMQSession::createProducer(cms::Destination const*) (ActiveMQSession.cpp:309) > OpenWireConnector::createProducer allocates a OpenWireProducerInfo which isn't deleted if the member function returns normally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.