[
https://issues.apache.org/activemq/browse/AMQCPP-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timothy Bish closed AMQCPP-52.
------------------------------
Resolution: Fixed
This is code that is still in development. Code that is tagged with AMQCPP-30
submitals is for openwire support and is all still in flux. Lets leave these
alone for now as its unstable.
> Valgrind reports memory leaks when running PrimitiveMapTest
> -----------------------------------------------------------
>
> Key: AMQCPP-52
> URL: https://issues.apache.org/activemq/browse/AMQCPP-52
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Albert Strasheim
> Assigned To: Nathan Mittler
> Priority: Minor
> Fix For: 2.0
>
>
> Valgrind reports the following leaks when running PrimitiveMapTest from
> r499127.
> ==30238== 16 (12 direct, 4 indirect) bytes in 1 blocks are definitely lost in
> loss record 6 of 11
> ==30238== at 0x4005BA5: operator new(unsigned) (vg_replace_malloc.c:163)
> ==30238== by 0x8173256: activemq::util::PrimitiveMapTest::testValueNode()
> (PrimitiveMap.h:311)
> ...
> ==30238== by 0x818EE36: main (main.cpp:34)
> ----
> ==30238== 50 (36 direct, 14 indirect) bytes in 3 blocks are definitely lost
> in loss record 7 of 11
> ==30238== at 0x4005BA5: operator new(unsigned) (vg_replace_malloc.c:163)
> ==30238== by 0x81CD009:
> activemq::util::PrimitiveMap::setByteArray(std::string const&,
> std::vector<unsigned char, std::allocator<unsigned char> > const&)
> (PrimitiveMap.h:311)
> ==30238== by 0x80FC6CB:
> activemq::connector::openwire::marshal::PrimitiveMapMarshallerTest::test()
> (PrimitiveMapMarshallerTest.cpp:65)
> ==30238== by 0x4B6706: CppUnit::TestCaseMethodFunctor::operator()() const
> (in /usr/lib/libcppunit-1.12.so.0.0.0)
> ...
> ==30238== by 0x818EE36: main (main.cpp:34)
> ----
> ==30238== 50 (36 direct, 14 indirect) bytes in 3 blocks are definitely lost
> in loss record 8 of 11
> ==30238== at 0x4005BA5: operator new(unsigned) (vg_replace_malloc.c:163)
> ==30238== by 0x81CD176:
> activemq::util::PrimitiveMap::setByteArray(std::string const&,
> std::vector<unsigned char, std::allocator<unsigned char> > const&)
> (PrimitiveMap.h:110)
> ==30238== by 0x80FC6CB:
> activemq::connector::openwire::marshal::PrimitiveMapMarshallerTest::test()
> (PrimitiveMapMarshallerTest.cpp:65)
> ==30238== by 0x4B6706: CppUnit::TestCaseMethodFunctor::operator()() const
> (in /usr/lib/libcppunit-1.12.so.0.0.0)
> ...
> ==30238== by 0x818EE36: main (main.cpp:34)
> ----
> ==30238== 50 (36 direct, 14 indirect) bytes in 3 blocks are definitely lost
> in loss record 9 of 11
> ==30238== at 0x4005BA5: operator new(unsigned) (vg_replace_malloc.c:163)
> ==30238== by 0x81CEEFF: activemq::util::Map<std::string,
> activemq::util::PrimitiveMap::ValueNode>::setValue(std::string const&,
> activemq::util::PrimitiveMap::ValueNode) (PrimitiveMap.h:110)
> ==30238== by 0x81CD0BE:
> activemq::util::PrimitiveMap::setByteArray(std::string const&,
> std::vector<unsigned char, std::allocator<unsigned char> > const&)
> (PrimitiveMap.cpp:218)
> ==30238== by 0x80FC6CB:
> activemq::connector::openwire::marshal::PrimitiveMapMarshallerTest::test()
> (PrimitiveMapMarshallerTest.cpp:65)
> ==30238== by 0x4B6706: CppUnit::TestCaseMethodFunctor::operator()() const
> (in /usr/lib/libcppunit-1.12.so.0.0.0)
> ...
> ==30238== by 0x818EE36: main (main.cpp:34)
> ----
> ==30238== 50 (36 direct, 14 indirect) bytes in 3 blocks are definitely lost
> in loss record 10 of 11
> ==30238== at 0x4005BA5: operator new(unsigned) (vg_replace_malloc.c:163)
> ==30238== by 0x81CE182: activemq::util::Map<std::string,
> activemq::util::PrimitiveMap::ValueNode>::getValue(std::string const&) const
> (PrimitiveMap.h:110)
> ==30238== by 0x81CBAB2: activemq::util::PrimitiveMap::getValue(std::string
> const&) const (PrimitiveMap.cpp:242)
> ==30238== by 0x81C00B4:
> activemq::connector::openwire::marshal::PrimitiveMapMarshaller::marshal(activemq::util::PrimitiveMap
> const*, std::vector<unsigned char, std::allocator<unsigned char> >&)
> (PrimitiveMapMarshaller.cpp:59)
> ==30238== by 0x80FC717:
> activemq::connector::openwire::marshal::PrimitiveMapMarshallerTest::test()
> (PrimitiveMapMarshallerTest.cpp:70)
> ==30238== by 0x4B6706: CppUnit::TestCaseMethodFunctor::operator()() const
> (in /usr/lib/libcppunit-1.12.so.0.0.0)
> ...
> ==30238== by 0x4C4724: CppUnit::TextTestRunner::run(std::string, bool,
> bool, bool) (in /usr/lib/libcppunit-1.12.so.0.0.0)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.