Skip to content

Instantly share code, notes, and snippets.

@dexX7
Created April 26, 2015 01:15
Show Gist options
  • Select an option

  • Save dexX7/8a78b4e84a4abc3ecb24 to your computer and use it in GitHub Desktop.

Select an option

Save dexX7/8a78b4e84a4abc3ecb24 to your computer and use it in GitHub Desktop.
Valgrind --leak-check results for MPPersistencePath with tinyformat
~/Projects/Cpp/omnicore/src/test$ valgrind --leak-check=yes ./test_bitcoin --run_test=mastercore_swapbyteorder_tests
==14672== Memcheck, a memory error detector
==14672== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==14672== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==14672== Command: ./test_bitcoin --run_test=mastercore_swapbyteorder_tests
==14672==
Initializing Omni Core v0.0.9.2-dev [unittest]
Exodus balance: 0.00000000 MSC
Omni Core initialization completed
==14672== Conditional jump or move depends on uninitialised value(s)
==14672== at 0x5AA4174: ??? (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5AA5757: __log_put (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A4E900: __crdel_metasub_log (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A52969: __db_log_page (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x59C40ED: __bam_new_file (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A71892: __db_new_file (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A9A2E6: __fop_file_setup (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A71CE7: __db_open (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A6C5C7: __db_open_pp (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x59AA098: Db::open(DbTxn*, char const*, char const*, DBTYPE, unsigned int, int) (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x50A67A: CDB::CDB(std::string const&, char const*) (db.cpp:257)
==14672== by 0x54C823: CWallet::LoadWallet(bool&) (walletdb.h:79)
==14672==
Running 1 test case...
Omni Core shutdown completed
*** No errors detected
==14672==
==14672== HEAP SUMMARY:
==14672== in use at exit: 1,263 bytes in 10 blocks
==14672== total heap usage: 33,821 allocs, 33,811 frees, 122,261,869 bytes allocated
==14672==
==14672== 287 (216 direct, 71 indirect) bytes in 1 blocks are definitely lost in loss record 8 of 10
==14672== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==14672== by 0x5AB85D4: __os_malloc (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A8706E: __env_alloc (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5AA75D9: __memp_alloc (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5AAD406: __memp_fopen (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A51681: __env_mpool (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A996BE: ??? (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A9A501: __fop_file_setup (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A71CE7: __db_open (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x5A6C5C7: __db_open_pp (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x59AA098: Db::open(DbTxn*, char const*, char const*, DBTYPE, unsigned int, int) (in /usr/lib/libdb_cxx-4.8.so)
==14672== by 0x50A67A: CDB::CDB(std::string const&, char const*) (db.cpp:257)
==14672==
==14672== LEAK SUMMARY:
==14672== definitely lost: 216 bytes in 1 blocks
==14672== indirectly lost: 71 bytes in 3 blocks
==14672== possibly lost: 0 bytes in 0 blocks
==14672== still reachable: 976 bytes in 6 blocks
==14672== suppressed: 0 bytes in 0 blocks
==14672== Reachable blocks (those to which a pointer was found) are not shown.
==14672== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==14672==
==14672== For counts of detected and suppressed errors, rerun with: -v
==14672== Use --track-origins=yes to see where uninitialised values come from
==14672== ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment