Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsomapTest leaks #928

Closed
vigsterkr opened this issue Mar 14, 2013 · 1 comment
Closed

IsomapTest leaks #928

vigsterkr opened this issue Mar 14, 2013 · 1 comment

Comments

@vigsterkr
Copy link
Member

[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from IsomapTest
[ RUN ] IsomapTest.distance_preserving_max_k
[ OK ] IsomapTest.distance_preserving_max_k (1328 ms)
[----------] 1 test from IsomapTest (1353 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1450 ms total)
[ PASSED ] 1 test.
==24853==
==24853== HEAP SUMMARY:
==24853== in use at exit: 1,000 bytes in 25 blocks
==24853== total heap usage: 2,315 allocs, 2,290 frees, 353,117 bytes allocated
==24853==
==24853== 200 bytes in 5 blocks are definitely lost in loss record 1 of 5
==24853== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24853== by 0x53D3052: shogun::sg_malloc(unsigned long) (memory.cpp:153)
==24853== by 0x5852BB0: shogun::CGaussian::sample() (memory.h:79)
==24853== by 0x56466DC: shogun::CDataGenerator::generate_gaussians(int, int, int) (DataGenerator.cpp:105)
==24853== by 0x44D344: IsomapTest_distance_preserving_max_k_Test::TestBody() (Isomap_unittest.cc:17)
==24853== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test_, void (testing::Test::)(), char const) (gtest.cc:2090)
==24853== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==24853== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==24853== by 0x49B566: testing::TestCase::Run() (gtest.cc:2445)
==24853== by 0x49BD76: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4237)
==24853== by 0x49BF96: testing::UnitTest::Run() (gtest.cc:2090)
==24853== by 0x4126D4: main (main_unittest.cc:13)
==24853==
==24853== 200 bytes in 5 blocks are definitely lost in loss record 2 of 5
==24853== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24853== by 0x53D3052: shogun::sg_malloc(unsigned long) (memory.cpp:153)
==24853== by 0x5852BB0: shogun::CGaussian::sample() (memory.h:79)
==24853== by 0x564681F: shogun::CDataGenerator::generate_gaussians(int, int, int) (DataGenerator.cpp:105)
==24853== by 0x44D344: IsomapTest_distance_preserving_max_k_Test::TestBody() (Isomap_unittest.cc:17)
==24853== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test_, void (testing::Test::)(), char const) (gtest.cc:2090)
==24853== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==24853== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==24853== by 0x49B566: testing::TestCase::Run() (gtest.cc:2445)
==24853== by 0x49BD76: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4237)
==24853== by 0x49BF96: testing::UnitTest::Run() (gtest.cc:2090)
==24853== by 0x4126D4: main (main_unittest.cc:13)
==24853==
==24853== 200 bytes in 5 blocks are definitely lost in loss record 3 of 5
==24853== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24853== by 0x53D3052: shogun::sg_malloc(unsigned long) (memory.cpp:153)
==24853== by 0x5852BB0: shogun::CGaussian::sample() (memory.h:79)
==24853== by 0x5646865: shogun::CDataGenerator::generate_gaussians(int, int, int) (DataGenerator.cpp:105)
==24853== by 0x44D344: IsomapTest_distance_preserving_max_k_Test::TestBody() (Isomap_unittest.cc:17)
==24853== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test_, void (testing::Test::)(), char const) (gtest.cc:2090)
==24853== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==24853== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==24853== by 0x49B566: testing::TestCase::Run() (gtest.cc:2445)
==24853== by 0x49BD76: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4237)
==24853== by 0x49BF96: testing::UnitTest::Run() (gtest.cc:2090)
==24853== by 0x4126D4: main (main_unittest.cc:13)
==24853==
==24853== 200 bytes in 5 blocks are definitely lost in loss record 4 of 5
==24853== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24853== by 0x53D3052: shogun::sg_malloc(unsigned long) (memory.cpp:153)
==24853== by 0x5852BB0: shogun::CGaussian::sample() (memory.h:79)
==24853== by 0x56468AC: shogun::CDataGenerator::generate_gaussians(int, int, int) (DataGenerator.cpp:105)
==24853== by 0x44D344: IsomapTest_distance_preserving_max_k_Test::TestBody() (Isomap_unittest.cc:17)
==24853== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test_, void (testing::Test::)(), char const) (gtest.cc:2090)
==24853== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==24853== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==24853== by 0x49B566: testing::TestCase::Run() (gtest.cc:2445)
==24853== by 0x49BD76: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4237)
==24853== by 0x49BF96: testing::UnitTest::Run() (gtest.cc:2090)
==24853== by 0x4126D4: main (main_unittest.cc:13)
==24853==
==24853== 200 bytes in 5 blocks are definitely lost in loss record 5 of 5
==24853== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24853== by 0x53D3052: shogun::sg_malloc(unsigned long) (memory.cpp:153)
==24853== by 0x5852BB0: shogun::CGaussian::sample() (memory.h:79)
==24853== by 0x56468F2: shogun::CDataGenerator::generate_gaussians(int, int, int) (DataGenerator.cpp:105)
==24853== by 0x44D344: IsomapTest_distance_preserving_max_k_Test::TestBody() (Isomap_unittest.cc:17)
==24853== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test_, void (testing::Test::_)(), char const*) (gtest.cc:2090)
==24853== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==24853== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==24853== by 0x49B566: testing::TestCase::Run() (gtest.cc:2445)
==24853== by 0x49BD76: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4237)
==24853== by 0x49BF96: testing::UnitTest::Run() (gtest.cc:2090)
==24853== by 0x4126D4: main (main_unittest.cc:13)
==24853==
==24853== LEAK SUMMARY:
==24853== definitely lost: 1,000 bytes in 25 blocks
==24853== indirectly lost: 0 bytes in 0 blocks
==24853== possibly lost: 0 bytes in 0 blocks
==24853== still reachable: 0 bytes in 0 blocks
==24853== suppressed: 0 bytes in 0 blocks
==24853==
==24853== For counts of detected and suppressed errors, rerun with: -v
==24853== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 2 from 2)

@vigsterkr
Copy link
Member Author

fixed by 807d8ca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant