activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Strasheim (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQCPP-86) Valgrind reports memory leaks in unit tests
Date Tue, 13 Mar 2007 15:08:34 GMT
Valgrind reports memory leaks in unit tests
-------------------------------------------

                 Key: AMQCPP-86
                 URL: https://issues.apache.org/activemq/browse/AMQCPP-86
             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


Valgrind reports a memory leak when running the unit tests.

However is calling cloneDataStructure probably isn't deleting the message that is returned.

==20515== 61 (44 direct, 17 indirect) bytes in 1 blocks are definitely lost in loss record
3 of 4
==20515==    at 0x4005BA5: operator new(unsigned) (vg_replace_malloc.c:163)
==20515==    by 0x81266BD: activemq::connector::openwire::commands::ActiveMQDestinationTest::test()
(ActiveMQDestinationTest2.h:55)
==20515==    by 0x4B6706: CppUnit::TestCaseMethodFunctor::operator()() const (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4A813D: CppUnit::DefaultProtector::protect(CppUnit::Functor const&,
CppUnit::ProtectorContext const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4B2302: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in
/usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4B2054: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext
const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4BEC70: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*,
std::string const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4B60AC: CppUnit::TestCase::run(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4B6D6E: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in
/usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4B6CA9: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4B6D6E: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in
/usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4B6CA9: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4C111F: CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) (in
/usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4BE8D9: CppUnit::TestResult::runTest(CppUnit::Test*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4C0F5F: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&)
(in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4C46AA: CppUnit::TextTestRunner::run(CppUnit::TestResult&, std::string
const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x4C4724: CppUnit::TextTestRunner::run(std::string, bool, bool, bool) (in
/usr/lib/libcppunit-1.12.so.0.0.0)
==20515==    by 0x81C0206: main (main.cpp:34)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message