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

CombinedKernelTest leaks #926

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

CombinedKernelTest leaks #926

vigsterkr opened this issue Mar 14, 2013 · 1 comment

Comments

@vigsterkr
Copy link
Member

[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from CombinedKernelTest
[ RUN ] CombinedKernelTest.weights
[ OK ] CombinedKernelTest.weights (119 ms)
[ RUN ] CombinedKernelTest.serialization
==26643== Conditional jump or move depends on uninitialised value(s)
==26643== at 0x5858430: shogun::CKernel::save_serializable_pre() (Kernel.cpp:921)
==26643== by 0x51E16FA: shogun::CSGObject::save_serializable(shogun::CSerializableFile_, char const_, int) (SGObject.cpp:301)
==26643== by 0x475CED: CombinedKernelTest_serialization_Test::TestBody() (CombinedKernel_unittest.cc:46)
==26643== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test_, void (testing::Test::)(), char const) (gtest.cc:2090)
==26643== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==26643== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==26643== by 0x49B566: testing::TestCase::Run() (gtest.cc:2445)
==26643== by 0x49BD76: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4237)
==26643== by 0x49BF96: testing::UnitTest::Run() (gtest.cc:2090)
==26643== by 0x4126D4: main (main_unittest.cc:13)
==26643==
==26643== Conditional jump or move depends on uninitialised value(s)
==26643== at 0x5858430: shogun::CKernel::save_serializable_pre() (Kernel.cpp:921)
==26643== by 0x51E16FA: shogun::CSGObject::save_serializable(shogun::CSerializableFile_, char const_, int) (SGObject.cpp:301)
==26643== by 0x51EEFD9: shogun::TParameter::save_ptype(shogun::CSerializableFile_, void const_, char const_) (Parameter.cpp:2016)
==26643== by 0x51EFD31: shogun::TParameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2291)
==26643== by 0x51EFFE6: shogun::Parameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2500)
==26643== by 0x51E1747: shogun::CSGObject::save_serializable(shogun::CSerializableFile_, char const_, int) (SGObject.cpp:323)
==26643== by 0x51EEFD9: shogun::TParameter::save_ptype(shogun::CSerializableFile_, void const_, char const_) (Parameter.cpp:2016)
==26643== by 0x51EFD31: shogun::TParameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2291)
==26643== by 0x51EFFE6: shogun::Parameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2500)
==26643== by 0x51E1747: shogun::CSGObject::save_serializable(shogun::CSerializableFile_, char const_, int) (SGObject.cpp:323)
==26643== by 0x51EEFD9: shogun::TParameter::save_ptype(shogun::CSerializableFile_, void const_, char const_) (Parameter.cpp:2016)
==26643== by 0x51EFD31: shogun::TParameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2291)
==26643==
==26643== Conditional jump or move depends on uninitialised value(s)
==26643== at 0x5858470: shogun::CKernel::save_serializable_post() (Kernel.cpp:929)
==26643== by 0x51E1754: shogun::CSGObject::save_serializable(shogun::CSerializableFile_, char const_, int) (SGObject.cpp:328)
==26643== by 0x51EEFD9: shogun::TParameter::save_ptype(shogun::CSerializableFile_, void const_, char const_) (Parameter.cpp:2016)
==26643== by 0x51EFD31: shogun::TParameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2291)
==26643== by 0x51EFFE6: shogun::Parameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2500)
==26643== by 0x51E1747: shogun::CSGObject::save_serializable(shogun::CSerializableFile_, char const_, int) (SGObject.cpp:323)
==26643== by 0x51EEFD9: shogun::TParameter::save_ptype(shogun::CSerializableFile_, void const_, char const_) (Parameter.cpp:2016)
==26643== by 0x51EFD31: shogun::TParameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2291)
==26643== by 0x51EFFE6: shogun::Parameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2500)
==26643== by 0x51E1747: shogun::CSGObject::save_serializable(shogun::CSerializableFile_, char const_, int) (SGObject.cpp:323)
==26643== by 0x51EEFD9: shogun::TParameter::save_ptype(shogun::CSerializableFile_, void const_, char const_) (Parameter.cpp:2016)
==26643== by 0x51EFD31: shogun::TParameter::save(shogun::CSerializableFile_, char const_) (Parameter.cpp:2291)
==26643==
==26643== Conditional jump or move depends on uninitialised value(s)
==26643== at 0x5858470: shogun::CKernel::save_serializable_post() (Kernel.cpp:929)
==26643== by 0x51E1754: shogun::CSGObject::save_serializable(shogun::CSerializableFile_, char const_, int) (SGObject.cpp:328)
==26643== by 0x475CED: CombinedKernelTest_serialization_Test::TestBody() (CombinedKernel_unittest.cc:46)
==26643== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test_, void (testing::Test::)(), char const) (gtest.cc:2090)
==26643== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==26643== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==26643== by 0x49B566: testing::TestCase::Run() (gtest.cc:2445)
==26643== by 0x49BD76: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4237)
==26643== by 0x49BF96: testing::UnitTest::Run() (gtest.cc:2090)
==26643== by 0x4126D4: main (main_unittest.cc:13)
==26643==
==26643== Syscall param write(buf) points to uninitialised byte(s)
==26643== at 0x6CA4900: __write_nocancel (syscall-template.S:82)
==26643== by 0x6C37882: IO_file_write@@GLIBC_2.2.5 (fileops.c:1289)
==26643== by 0x6C37749: new_do_write (fileops.c:543)
==26643== by 0x6C38EB4: IO_do_write@@GLIBC_2.2.5 (fileops.c:516)
==26643== by 0x6C383DF: IO_file_close_it@@GLIBC_2.2.5 (fileops.c:170)
==26643== by 0x6C2C83F: fclose@@GLIBC_2.2.5 (iofclose.c:62)
==26643== by 0x5747690: shogun::CSerializableFile::close() (SerializableFile.cpp:72)
==26643== by 0x51E17D4: shogun::CSGObject::save_serializable(shogun::CSerializableFile
, char const
, int) (SGObject.cpp:347)
==26643== by 0x475CED: CombinedKernelTest_serialization_Test::TestBody() (CombinedKernel_unittest.cc:46)
==26643== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test
, void (testing::Test::_)(), char const*) (gtest.cc:2090)
==26643== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==26643== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==26643== Address 0x402707a is not stack'd, malloc'd or (recently) free'd
==26643==
[ OK ] CombinedKernelTest.serialization (447 ms)
[----------] 2 tests from CombinedKernelTest (592 ms total)

[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (689 ms total)
[ PASSED ] 2 tests.
==26643==
==26643== HEAP SUMMARY:
==26643== in use at exit: 62,604 bytes in 373 blocks
==26643== total heap usage: 4,551 allocs, 4,178 frees, 418,361 bytes allocated
==26643==
==26643== 62,524 (280 direct, 62,244 indirect) bytes in 1 blocks are definitely lost in loss record 193 of 193
==26643== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26643== by 0x53D2DF2: operator new(unsigned long) (memory.cpp:84)
==26643== by 0x475D25: CombinedKernelTest_serialization_Test::TestBody() (CombinedKernel_unittest.cc:51)
==26643== by 0x4A4F4C: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test_, void (testing::Test::_)(), char const*) (gtest.cc:2090)
==26643== by 0x49B240: testing::Test::Run() (gtest.cc:2162)
==26643== by 0x49B321: testing::TestInfo::Run() (gtest.cc:2338)
==26643== by 0x49B566: testing::TestCase::Run() (gtest.cc:2445)
==26643== by 0x49BD76: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4237)
==26643== by 0x49BF96: testing::UnitTest::Run() (gtest.cc:2090)
==26643== by 0x4126D4: main (main_unittest.cc:13)
==26643==
==26643== LEAK SUMMARY:
==26643== definitely lost: 280 bytes in 1 blocks
==26643== indirectly lost: 62,244 bytes in 369 blocks
==26643== possibly lost: 0 bytes in 0 blocks
==26643== still reachable: 80 bytes in 3 blocks
==26643== suppressed: 0 bytes in 0 blocks
==26643== Reachable blocks (those to which a pointer was found) are not shown.
==26643== To see them, rerun with: --leak-check=full --show-reachable=yes
==26643==
==26643== For counts of detected and suppressed errors, rerun with: -v
==26643== Use --track-origins=yes to see where uninitialised values come from
==26643== ERROR SUMMARY: 10 errors from 6 contexts (suppressed: 2 from 2)

@vigsterkr
Copy link
Member Author

fixed in the HEAD of develop branch

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