What steps will reproduce the problem?
1.CXXFLAGS=-fexceptions ./configure
2.make
3.sudo make install
4.build.sh (use HEAPCHECK=draconian)
5.pprof ./HeapCheckerTest "/tmp/HeapCheckerTest.22709._main_-end.heap"
--inuse_objects --lines --heapcheck --edgefraction=1e-10 --nodefraction=1e-10
--pdf > 1.pdf
PID 22709 is from gperftools output.
What is the expected output? What do you see instead?
The following objects inside gperftools are not cleaned.
Why I use draconian, not other ways can I find fopen but no fclose error.
5 29.4% 29.4% 5 29.4% std::basic_string::_Rep::_S_create ??:0
2 11.8% 41.2% 3 17.6% HeapLeakChecker_InternalInitStart ??:0
2 11.8% 52.9% 2 11.8% __add_to_environ /build/buildd/eglibc-2.15/stdlib/setenv.c:194
2 11.8% 64.7% 2 11.8% __tsearch /build/buildd/eglibc-2.15/misc/tsearch.c:282
1 5.9% 70.6% 1 5.9% HeapLeak /opt/evpp/performance/HeapCheckerTest.cpp:10(This is my test case)
1 5.9% 76.5% 1 5.9% HeapLeakChecker::HeapLeakChecker ??:0
1 5.9% 82.4% 1 5.9% MallocBlock::ProcessFreeQueue ??:0
1 5.9% 88.2% 1 5.9% __add_to_environ /build/buildd/eglibc-2.15/stdlib/setenv.c:145
1 5.9% 94.1% 1 5.9% __fopen_internal /build/buildd/eglibc-2.15/libio/iofopen.c:78(this is my test case)
1 5.9% 100.0% 1 5.9% __static_initialization_and_destruction_0@59b76 symbolize.cc:0
What version of the product are you using? On what operating system?
gperftools 2.0.99+ubuntu 12.04
Please provide any additional information below.
Original issue reported on code.google.com by xiaoyur...@gmail.com on 25 Jul 2013 at 1:01
Original issue reported on code.google.com by
xiaoyur...@gmail.com
on 25 Jul 2013 at 1:01Attachments: