Skip to content

Instantly share code, notes, and snippets.

@Manu343726
Created September 9, 2016 11:54
Show Gist options
  • Select an option

  • Save Manu343726/24453dfcc6845c09475e16579a32a7ab to your computer and use it in GitHub Desktop.

Select an option

Save Manu343726/24453dfcc6845c09475e16579a32a7ab to your computer and use it in GitHub Desktop.
Valgrind showing backward-cpp memory leaks when running siplasplas tests
3 FAILED TESTS
==7554==
==7554== HEAP SUMMARY:
==7554== in use at exit: 87,808 bytes in 60 blocks
==7554== total heap usage: 9,511 allocs, 9,451 frees, 1,600,428 bytes allocated
==7554==
==7554== 768 bytes in 3 blocks are definitely lost in loss record 1 of 4
==7554== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7554== by 0x4C2CF1F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7554== by 0x5A3B5B3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x5A43C85: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x5A43F49: __cxa_demangle (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x70A018: backward::details::demangler_impl<backward::system_tag::linux_tag>::demangle(char const*) (backward.hpp:407)
==7554== by 0x709F1E: backward::TraceResolverLinuxImplBase::demangle(char const*) (in /home/manuel-sanchez/Documentos/siplasplas/build/test/typeerasure/tests-typeerasure)
==7554== by 0x70869B: backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::backtrace_symbol>::resolve(backward::ResolvedTrace) (backward.hpp:751)
==7554== by 0x70814D: void cpp::utility::logErrorSkippingFrames<char [26], ctti::detail::string const&, std::string const&>(unsigned long, char const (&) [26], ctti::detail::string const&, std::string const&) (error_logger.hpp:101)
==7554== by 0x7078B6: void cpp::logException<std::runtime_error, std::string>(std::string const&, unsigned long) (exception.hpp:40)
==7554== by 0x712876: std::runtime_error cpp::exceptionSkippingFrames<std::runtime_error, ctti::detail::string const&, ctti::detail::string const&>(unsigned long, std::string const&, ctti::detail::string const&, ctti::detail::string const&) (exception.hpp:145)
==7554== by 0x7127AC: std::runtime_error cpp::exception<std::runtime_error, ctti::detail::string const&, ctti::detail::string const&>(std::string const&, ctti::detail::string const&, ctti::detail::string const&) (in /home/manuel-sanchez/Documentos/siplasplas/build/test/typeerasure/tests-typeerasure)
==7554==
==7554== 3,072 bytes in 12 blocks are definitely lost in loss record 2 of 4
==7554== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7554== by 0x4C2CF1F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7554== by 0x5A3B5B3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x5A43C85: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x5A43F49: __cxa_demangle (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x70A018: backward::details::demangler_impl<backward::system_tag::linux_tag>::demangle(char const*) (backward.hpp:407)
==7554== by 0x709F1E: backward::TraceResolverLinuxImplBase::demangle(char const*) (in /home/manuel-sanchez/Documentos/siplasplas/build/test/typeerasure/tests-typeerasure)
==7554== by 0x70869B: backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::backtrace_symbol>::resolve(backward::ResolvedTrace) (backward.hpp:751)
==7554== by 0x70814D: void cpp::utility::logErrorSkippingFrames<char [26], ctti::detail::string const&, std::string const&>(unsigned long, char const (&) [26], ctti::detail::string const&, std::string const&) (error_logger.hpp:101)
==7554== by 0x7078B6: void cpp::logException<std::runtime_error, std::string>(std::string const&, unsigned long) (exception.hpp:40)
==7554== by 0x707791: std::runtime_error cpp::exceptionSkippingFrames<std::runtime_error, ctti::detail::string const&>(unsigned long, std::string const&, ctti::detail::string const&) (exception.hpp:145)
==7554== by 0x7076F5: std::runtime_error cpp::exception<std::runtime_error, ctti::detail::string const&>(std::string const&, ctti::detail::string const&) (in /home/manuel-sanchez/Documentos/siplasplas/build/test/typeerasure/tests-typeerasure)
==7554==
==7554== 11,264 bytes in 44 blocks are definitely lost in loss record 3 of 4
==7554== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7554== by 0x4C2CF1F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7554== by 0x5A3B5B3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x5A43C85: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x5A43F49: __cxa_demangle (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==7554== by 0x70A018: backward::details::demangler_impl<backward::system_tag::linux_tag>::demangle(char const*) (backward.hpp:407)
==7554== by 0x709F1E: backward::TraceResolverLinuxImplBase::demangle(char const*) (in /home/manuel-sanchez/Documentos/siplasplas/build/test/typeerasure/tests-typeerasure)
==7554== by 0x70869B: backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::backtrace_symbol>::resolve(backward::ResolvedTrace) (backward.hpp:751)
==7554== by 0x70814D: void cpp::utility::logErrorSkippingFrames<char [26], ctti::detail::string const&, std::string const&>(unsigned long, char const (&) [26], ctti::detail::string const&, std::string const&) (error_logger.hpp:101)
==7554== by 0x5306246: void cpp::logException<cpp::AssertException, std::string>(std::string const&, unsigned long) (exception.hpp:40)
==7554== by 0x530AB0A: cpp::AssertException cpp::exceptionSkippingFrames<cpp::AssertException, std::string&, unsigned long&, std::string&, std::string&>(unsigned long, std::string const&, std::string&, unsigned long&, std::string&, std::string&) (exception.hpp:145)
==7554== by 0x52ECB17: cpp::AssertException cpp::exception<cpp::AssertException, std::string&, unsigned long&, std::string&, std::string&>(std::string const&, std::string&, unsigned long&, std::string&, std::string&) (in /home/manuel-sanchez/Documentos/siplasplas/build/src/utility/libsiplasplas-utility.so)
==7554==
==7554== LEAK SUMMARY:
==7554== definitely lost: 15,104 bytes in 59 blocks
==7554== indirectly lost: 0 bytes in 0 blocks
==7554== possibly lost: 0 bytes in 0 blocks
==7554== still reachable: 72,704 bytes in 1 blocks
==7554== suppressed: 0 bytes in 0 blocks
==7554== Reachable blocks (those to which a pointer was found) are not shown.
==7554== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==7554==
==7554== For counts of detected and suppressed errors, rerun with: -v
==7554== ERROR SUMMARY: 66 errors from 6 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment