Skip to content

Instantly share code, notes, and snippets.

@thvasilo
Last active August 17, 2018 01:20
Show Gist options
  • Save thvasilo/364ebda5a86aaf3aa0cc53b4e898fb0f to your computer and use it in GitHub Desktop.
Save thvasilo/364ebda5a86aaf3aa0cc53b4e898fb0f to your computer and use it in GitHub Desktop.
Error ouput from datasketch-cpp
==18350== Invalid free() / delete / delete[] / realloc()
==18350== at 0x4C2F74B: operator delete[](void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==18350== by 0x469786: datasketches::kll_sketch<float>::~kll_sketch() (kll_sketch.hpp:173)
==18350== by 0x4A0056: void std::_Destroy<datasketches::kll_sketch<float> >(datasketches::kll_sketch<float>*) (stl_construct.h:93)
==18350== by 0x494DF3: void std::_Destroy_aux<false>::__destroy<datasketches::kll_sketch<float>*>(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*) (stl_construct.h:103)
==18350== by 0x4890D4: void std::_Destroy<datasketches::kll_sketch<float>*>(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*) (stl_construct.h:126)
==18350== by 0x479AE0: void std::_Destroy<datasketches::kll_sketch<float>*, datasketches::kll_sketch<float> >(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*, std::allocator<datasketches::kll_sketch<float> >&) (stl_construct.h:151)
==18350== by 0x4693C4: std::vector<datasketches::kll_sketch<float>, std::allocator<datasketches::kll_sketch<float> > >::~vector() (stl_vector.h:424)
==18350== by 0x4519EB: hist_agg::RunWorker() (block_distributed_histogram_aggregation.h:77)
==18350== by 0x451D07: main (main.cpp:20)
==18350== Address 0x854a580 is 0 bytes inside a block of size 12 free'd
==18350== at 0x4C2F74B: operator delete[](void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==18350== by 0x469786: datasketches::kll_sketch<float>::~kll_sketch() (kll_sketch.hpp:173)
==18350== by 0x4A0056: void std::_Destroy<datasketches::kll_sketch<float> >(datasketches::kll_sketch<float>*) (stl_construct.h:93)
==18350== by 0x494DF3: void std::_Destroy_aux<false>::__destroy<datasketches::kll_sketch<float>*>(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*) (stl_construct.h:103)
==18350== by 0x4890D4: void std::_Destroy<datasketches::kll_sketch<float>*>(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*) (stl_construct.h:126)
==18350== by 0x479AE0: void std::_Destroy<datasketches::kll_sketch<float>*, datasketches::kll_sketch<float> >(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*, std::allocator<datasketches::kll_sketch<float> >&) (stl_construct.h:151)
==18350== by 0x4693C4: std::vector<datasketches::kll_sketch<float>, std::allocator<datasketches::kll_sketch<float> > >::~vector() (stl_vector.h:424)
==18350== by 0x45180E: hist_agg::RunWorker() (block_distributed_histogram_aggregation.h:93)
==18350== by 0x451D07: main (main.cpp:20)
==18350== Block was alloc'd at
==18350== at 0x4C2E80F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==18350== by 0x489252: datasketches::kll_sketch<float>::add_empty_top_level_to_completely_full_sketch() (kll_sketch.hpp:554)
==18350== by 0x479B20: datasketches::kll_sketch<float>::compress_while_updating() (kll_sketch.hpp:487)
==18350== by 0x46983E: datasketches::kll_sketch<float>::update(float) (kll_sketch.hpp:185)
==18350== by 0x451716: hist_agg::RunWorker() (block_distributed_histogram_aggregation.h:86)
==18350== by 0x451D07: main (main.cpp:20)
==18350==
==18350== Invalid free() / delete / delete[] / realloc()
==18350== at 0x4C2F74B: operator delete[](void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==18350== by 0x4697A3: datasketches::kll_sketch<float>::~kll_sketch() (kll_sketch.hpp:174)
==18350== by 0x4A0056: void std::_Destroy<datasketches::kll_sketch<float> >(datasketches::kll_sketch<float>*) (stl_construct.h:93)
==18350== by 0x494DF3: void std::_Destroy_aux<false>::__destroy<datasketches::kll_sketch<float>*>(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*) (stl_construct.h:103)
==18350== by 0x4890D4: void std::_Destroy<datasketches::kll_sketch<float>*>(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*) (stl_construct.h:126)
==18350== by 0x479AE0: void std::_Destroy<datasketches::kll_sketch<float>*, datasketches::kll_sketch<float> >(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*, std::allocator<datasketches::kll_sketch<float> >&) (stl_construct.h:151)
==18350== by 0x4693C4: std::vector<datasketches::kll_sketch<float>, std::allocator<datasketches::kll_sketch<float> > >::~vector() (stl_vector.h:424)
==18350== by 0x4519EB: hist_agg::RunWorker() (block_distributed_histogram_aggregation.h:77)
==18350== by 0x451D07: main (main.cpp:20)
==18350== Address 0x854a5d0 is 0 bytes inside a block of size 1,332 free'd
==18350== at 0x4C2F74B: operator delete[](void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==18350== by 0x4697A3: datasketches::kll_sketch<float>::~kll_sketch() (kll_sketch.hpp:174)
==18350== by 0x4A0056: void std::_Destroy<datasketches::kll_sketch<float> >(datasketches::kll_sketch<float>*) (stl_construct.h:93)
==18350== by 0x494DF3: void std::_Destroy_aux<false>::__destroy<datasketches::kll_sketch<float>*>(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*) (stl_construct.h:103)
==18350== by 0x4890D4: void std::_Destroy<datasketches::kll_sketch<float>*>(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*) (stl_construct.h:126)
==18350== by 0x479AE0: void std::_Destroy<datasketches::kll_sketch<float>*, datasketches::kll_sketch<float> >(datasketches::kll_sketch<float>*, datasketches::kll_sketch<float>*, std::allocator<datasketches::kll_sketch<float> >&) (stl_construct.h:151)
==18350== by 0x4693C4: std::vector<datasketches::kll_sketch<float>, std::allocator<datasketches::kll_sketch<float> > >::~vector() (stl_vector.h:424)
==18350== by 0x45180E: hist_agg::RunWorker() (block_distributed_histogram_aggregation.h:93)
==18350== by 0x451D07: main (main.cpp:20)
==18350== Block was alloc'd at
==18350== at 0x4C2E80F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==18350== by 0x48932E: datasketches::kll_sketch<float>::add_empty_top_level_to_completely_full_sketch() (kll_sketch.hpp:564)
==18350== by 0x479B20: datasketches::kll_sketch<float>::compress_while_updating() (kll_sketch.hpp:487)
==18350== by 0x46983E: datasketches::kll_sketch<float>::update(float) (kll_sketch.hpp:185)
==18350== by 0x451716: hist_agg::RunWorker() (block_distributed_histogram_aggregation.h:86)
==18350== by 0x451D07: main (main.cpp:20)
==18350==
==18350==
==18350== HEAP SUMMARY:
==18350== in use at exit: 72,864 bytes in 5 blocks
==18350== total heap usage: 27,541 allocs, 27,562 frees, 3,932,483 bytes allocated
==18350==
==18350== LEAK SUMMARY:
==18350== definitely lost: 0 bytes in 0 blocks
==18350== indirectly lost: 0 bytes in 0 blocks
==18350== possibly lost: 0 bytes in 0 blocks
==18350== still reachable: 72,864 bytes in 5 blocks
==18350== suppressed: 0 bytes in 0 blocks
==18350== Rerun with --leak-check=full to see details of leaked memory
==18350==
==18350== For counts of detected and suppressed errors, rerun with: -v
==18350== ERROR SUMMARY: 26 errors from 2 contexts (suppressed: 0 from 0)
==18352==
==18352== HEAP SUMMARY:
==18352== in use at exit: 72,864 bytes in 5 blocks
==18352== total heap usage: 534 allocs, 529 frees, 1,557,333 bytes allocated
==18352==
==18352== LEAK SUMMARY:
==18352== definitely lost: 0 bytes in 0 blocks
==18352== indirectly lost: 0 bytes in 0 blocks
==18352== possibly lost: 0 bytes in 0 blocks
==18352== still reachable: 72,864 bytes in 5 blocks
==18352== suppressed: 0 bytes in 0 blocks
==18352== Rerun with --leak-check=full to see details of leaked memory
==18352==
==18352== For counts of detected and suppressed errors, rerun with: -v
==18352== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==18351==
==18351== HEAP SUMMARY:
==18351== in use at exit: 72,864 bytes in 5 blocks
==18351== total heap usage: 566 allocs, 561 frees, 1,605,153 bytes allocated
==18351==
==18351== LEAK SUMMARY:
==18351== definitely lost: 0 bytes in 0 blocks
==18351== indirectly lost: 0 bytes in 0 blocks
==18351== possibly lost: 0 bytes in 0 blocks
==18351== still reachable: 72,864 bytes in 5 blocks
==18351== suppressed: 0 bytes in 0 blocks
==18351== Rerun with --leak-check=full to see details of leaked memory
==18351==
==18351== For counts of detected and suppressed errors, rerun with: -v
==18351== Use --track-origins=yes to see where uninitialised values come from
==18351== ERROR SUMMARY: 576 errors from 74 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment