By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,655 Members | 964 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,655 IT Pros & Developers. It's quick & easy.

leak detected using valgrind

P: n/a
Hi,
I'm currently investigating a leak in a c++ program. I've run
valgrind to detect it and valgrind give me some result like this
one...
==5336== 64064 bytes in 728 blocks are still reachable in loss record
14 of 16
==5336== at 0x40026B30: __builtin_new (vg_replace_malloc.c:172)
==5336== by 0x4028C531: AnObject::AnObject(AnObject const &)
(anobject.cpp:140)
==5336== by 0x85310EF: ClassA::ClassA(ClassA const &)
(/usr/include/g++-3/stl_pair.h:68)
==5336== by 0x852F863: ClassB::ClassB(ClassB const &)
(/usr/include/g++-3/stl_pair.h:68)

Are those still reachable block a real problem ?? Or do I need to
look elsewhere...

Thanks
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Alexandre wrote:
Hi,
I'm currently investigating a leak in a c++ program. I've run
valgrind to detect it and valgrind give me some result like this
one...
==5336== 64064 bytes in 728 blocks are still reachable in loss record
14 of 16
==5336== at 0x40026B30: __builtin_new (vg_replace_malloc.c:172)
==5336== by 0x4028C531: AnObject::AnObject(AnObject const &)
(anobject.cpp:140)
==5336== by 0x85310EF: ClassA::ClassA(ClassA const &)
(/usr/include/g++-3/stl_pair.h:68)
==5336== by 0x852F863: ClassB::ClassB(ClassB const &)
(/usr/include/g++-3/stl_pair.h:68)

Are those still reachable block a real problem ?? Or do I need to
look elsewhere...


Which version of GCC are you using ? Does it support GLIBCPP_FORCE_NEW ?

See this:

http://groups.google.com/groups?selm...ing.google.com

and this:

http://vv.cs.byu.edu/cs586/archive/000186.html

I just read up that in GCC 3.4 this is now GLIBCXX_FORCE_NEW ...

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.