Skip to content

Instantly share code, notes, and snippets.

@SteveBronder
Created October 8, 2020 22:31
Show Gist options
  • Save SteveBronder/d199bff5a9be58a6c3bbc1616c445af1 to your computer and use it in GitHub Desktop.
Save SteveBronder/d199bff5a9be58a6c3bbc1616c445af1 to your computer and use it in GitHub Desktop.
valgrind -s --show-leak-kinds=all --leak-check=full test/unit/math/mix/fun/tcrossprod_test
==1151514== Memcheck, a memory error detector
==1151514== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1151514== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==1151514== Command: test/unit/math/mix/fun/tcrossprod_test
==1151514==
Running main() from lib/benchmark_1.5.1/googletest/googletest/src/gtest_main.cc
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from MathMixMatFun
[ RUN ] MathMixMatFun.try_to_ub
[ OK ] MathMixMatFun.try_to_ub (30 ms)
[----------] 1 test from MathMixMatFun (33 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (49 ms total)
[ PASSED ] 1 test.
==1151514==
==1151514== HEAP SUMMARY:
==1151514== in use at exit: 1,565 bytes in 4 blocks
==1151514== total heap usage: 217 allocs, 213 frees, 456,182 bytes allocated
==1151514==
==1151514== 55 bytes in 1 blocks are still reachable in loss record 1 of 4
==1151514== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1151514== by 0x401F53E: strdup (strdup.c:42)
==1151514== by 0x400A5A9: _dl_map_object (dl-load.c:2168)
==1151514== by 0x4015D36: dl_open_worker (dl-open.c:513)
==1151514== by 0x4D948B7: _dl_catch_exception (dl-error-skeleton.c:208)
==1151514== by 0x40155F9: _dl_open (dl-open.c:837)
==1151514== by 0x4E2434B: dlopen_doit (dlopen.c:66)
==1151514== by 0x4D948B7: _dl_catch_exception (dl-error-skeleton.c:208)
==1151514== by 0x4D94982: _dl_catch_error (dl-error-skeleton.c:227)
==1151514== by 0x4E24B58: _dlerror_run (dlerror.c:170)
==1151514== by 0x4E243D9: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==1151514== by 0x485F1E8: tbb::internal::dynamic_load(char const*, tbb::internal::dynamic_link_descriptor const*, unsigned long) (in /home/steve/stan/origin/math/lib/tbb/libtbb.so.2)
==1151514==
==1151514== 55 bytes in 1 blocks are still reachable in loss record 2 of 4
==1151514== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1151514== by 0x400D5A7: _dl_new_object (dl-object.c:196)
==1151514== by 0x4006E96: _dl_map_object_from_fd (dl-load.c:997)
==1151514== by 0x400A61A: _dl_map_object (dl-load.c:2236)
==1151514== by 0x4015D36: dl_open_worker (dl-open.c:513)
==1151514== by 0x4D948B7: _dl_catch_exception (dl-error-skeleton.c:208)
==1151514== by 0x40155F9: _dl_open (dl-open.c:837)
==1151514== by 0x4E2434B: dlopen_doit (dlopen.c:66)
==1151514== by 0x4D948B7: _dl_catch_exception (dl-error-skeleton.c:208)
==1151514== by 0x4D94982: _dl_catch_error (dl-error-skeleton.c:227)
==1151514== by 0x4E24B58: _dlerror_run (dlerror.c:170)
==1151514== by 0x4E243D9: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==1151514==
==1151514== 216 bytes in 1 blocks are still reachable in loss record 3 of 4
==1151514== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1151514== by 0x401330A: _dl_check_map_versions (dl-version.c:274)
==1151514== by 0x40160EC: dl_open_worker (dl-open.c:577)
==1151514== by 0x4D948B7: _dl_catch_exception (dl-error-skeleton.c:208)
==1151514== by 0x40155F9: _dl_open (dl-open.c:837)
==1151514== by 0x4E2434B: dlopen_doit (dlopen.c:66)
==1151514== by 0x4D948B7: _dl_catch_exception (dl-error-skeleton.c:208)
==1151514== by 0x4D94982: _dl_catch_error (dl-error-skeleton.c:227)
==1151514== by 0x4E24B58: _dlerror_run (dlerror.c:170)
==1151514== by 0x4E243D9: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==1151514== by 0x485F1E8: tbb::internal::dynamic_load(char const*, tbb::internal::dynamic_link_descriptor const*, unsigned long) (in /home/steve/stan/origin/math/lib/tbb/libtbb.so.2)
==1151514== by 0x485F3D6: tbb::internal::dynamic_link(char const*, tbb::internal::dynamic_link_descriptor const*, unsigned long, void**, int) (in /home/steve/stan/origin/math/lib/tbb/libtbb.so.2)
==1151514==
==1151514== 1,239 bytes in 1 blocks are still reachable in loss record 4 of 4
==1151514== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1151514== by 0x400D273: _dl_new_object (dl-object.c:89)
==1151514== by 0x4006E96: _dl_map_object_from_fd (dl-load.c:997)
==1151514== by 0x400A61A: _dl_map_object (dl-load.c:2236)
==1151514== by 0x4015D36: dl_open_worker (dl-open.c:513)
==1151514== by 0x4D948B7: _dl_catch_exception (dl-error-skeleton.c:208)
==1151514== by 0x40155F9: _dl_open (dl-open.c:837)
==1151514== by 0x4E2434B: dlopen_doit (dlopen.c:66)
==1151514== by 0x4D948B7: _dl_catch_exception (dl-error-skeleton.c:208)
==1151514== by 0x4D94982: _dl_catch_error (dl-error-skeleton.c:227)
==1151514== by 0x4E24B58: _dlerror_run (dlerror.c:170)
==1151514== by 0x4E243D9: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==1151514==
==1151514== LEAK SUMMARY:
==1151514== definitely lost: 0 bytes in 0 blocks
==1151514== indirectly lost: 0 bytes in 0 blocks
==1151514== possibly lost: 0 bytes in 0 blocks
==1151514== still reachable: 1,565 bytes in 4 blocks
==1151514== suppressed: 0 bytes in 0 blocks
==1151514==
==1151514== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment