Skip to content

Instantly share code, notes, and snippets.

@lambday
Created February 21, 2017 13:24
Show Gist options
  • Save lambday/4dc6bc9e0b8355d61069c2e0fabf6349 to your computer and use it in GitHub Desktop.
Save lambday/4dc6bc9e0b8355d61069c2e0fabf6349 to your computer and use it in GitHub Desktop.
(shogun_env) [lambday@lambday.iitb.ac.in debug]$ valgrind --leak-check=full --track-origins=yes ./test
==18674== Memcheck, a memory error detector
==18674== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==18674== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==18674== Command: ./test
==18674==
terminate called without an active exception
==18674==
==18674== HEAP SUMMARY:
==18674== in use at exit: 891,281 bytes in 9,148 blocks
==18674== total heap usage: 10,421 allocs, 1,273 frees, 1,092,331 bytes allocated
==18674==
==18674== 368 bytes in 1 blocks are possibly lost in loss record 3,279 of 3,481
==18674== at 0x4C2D9C6: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==18674== by 0x4012C8A: _dl_allocate_tls (in /usr/lib64/ld-2.23.so)
==18674== by 0x943E132: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.23.so)
==18674== by 0x88878E4: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib64/libstdc++.so.6.0.22)
==18674== by 0x730056B: std::thread::thread<void* (*)(void*), shogun::CInputParser<double>*>(void* (*&&)(void*), shogun::CInputParser<double>*&&) (thread:136)
==18674== by 0x72FC24C: shogun::CInputParser<double>::start_parser() (InputParser.h:473)
==18674== by 0x72EFF00: shogun::CStreamingDenseFeatures<double>::start_parser() (StreamingDenseFeatures.cpp:213)
==18674== by 0x400F29: main (StreamingDenseFeatures_unittest.cc:37)
==18674==
==18674== LEAK SUMMARY:
==18674== definitely lost: 0 bytes in 0 blocks
==18674== indirectly lost: 0 bytes in 0 blocks
==18674== possibly lost: 368 bytes in 1 blocks
==18674== still reachable: 890,913 bytes in 9,147 blocks
==18674== suppressed: 0 bytes in 0 blocks
==18674== Reachable blocks (those to which a pointer was found) are not shown.
==18674== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==18674==
==18674== For counts of detected and suppressed errors, rerun with: -v
==18674== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment