Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- censored@censored ~/btc_clean/b/src $ valgrind --leak-check=full ./bitcoind
- ==23177== Memcheck, a memory error detector
- ==23177== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
- ==23177== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
- ==23177== Command: ./bitcoind
- ==23177==
- ^C==23177==
- ==23177== HEAP SUMMARY:
- ==23177== in use at exit: 53,259,628 bytes in 700,361 blocks
- ==23177== total heap usage: 22,484,102 allocs, 21,783,741 frees, 10,654,353,323 bytes allocated
- ==23177==
- ==23177== 63 bytes in 1 blocks are possibly lost in loss record 12 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x67ACFD8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in
- /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
- ==23177== by 0x67ADBCA: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in
- /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
- ==23177== by 0x67ADC63: std::string::reserve(unsigned long) (in
- /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
- ==23177== by 0x67ADEBE: std::string::append(char const*, unsigned long) (in
- /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
- ==23177== by 0x43BF96: std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char,
- std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
- const&, char const*) (basic_string.h:1009)
- ==23177== by 0x43889C: AppInit2(int, char**) (init.cpp:258)
- ==23177== by 0x43B2C9: AppInit(int, char**) (init.cpp:98)
- ==23177== by 0x413798: main (init.cpp:84)
- ==23177==
- ==23177== 304 bytes in 1 blocks are possibly lost in loss record 35 of 77
- ==23177== at 0x4C2A830: calloc (vg_replace_malloc.c:618)
- ==23177== by 0x4011111: allocate_dtv (in /lib64/ld-2.19.so)
- ==23177== by 0x401175D: _dl_allocate_tls (in /lib64/ld-2.19.so)
- ==23177== by 0x64D8D82: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.19.so)
- ==23177== by 0x43B4FE: CreateThread(void (*)(void*), void*, bool) (util.h:603)
- ==23177== by 0x43A467: AppInit2(int, char**) (init.cpp:470)
- ==23177== by 0x43B2C9: AppInit(int, char**) (init.cpp:98)
- ==23177== by 0x413798: main (init.cpp:84)
- ==23177==
- ==23177== 304 bytes in 1 blocks are possibly lost in loss record 36 of 77
- ==23177== at 0x4C2A830: calloc (vg_replace_malloc.c:618)
- ==23177== by 0x4011111: allocate_dtv (in /lib64/ld-2.19.so)
- ==23177== by 0x401175D: _dl_allocate_tls (in /lib64/ld-2.19.so)
- ==23177== by 0x64D8D82: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.19.so)
- ==23177== by 0x472BD9: StartNode(void*) (util.h:603)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== 328 bytes in 8 blocks are possibly lost in loss record 37 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x67ACFD8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in
- /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
- ==23177== by 0x67ADBCA: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in
- /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
- ==23177== by 0x67ADC63: std::string::reserve(unsigned long) (in
- /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
- ==23177== by 0x67AE035: std::string::append(unsigned long, char) (in
- /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
- ==23177== by 0x448081: void Unserialize<CDataStream, char>(CDataStream&, std::basic_string<char,
- std::char_traits<char>, std::allocator<char> >&, int, int) [clone .isra.512] (basic_string.h:754)
- ==23177== by 0x456FC2: ProcessMessage(CNode*, std::string, CDataStream&) (serialize.h:1144)
- ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
- ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
- ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== 768 bytes in 4 blocks are possibly lost in loss record 45 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x46599E: CTransaction*
- std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<CTransaction const*,
- std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*>(__gnu_cxx::__normal_iterator<CTransaction
- const*, std::vector<CTransaction, std::allocator<CTransaction> > >, __gnu_cxx::__normal_iterator<CTransaction const*,
- std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*) (new_allocator.h:104)
- ==23177== by 0x465BF1: CBlock::CBlock(CBlock const&) (stl_uninitialized.h:117)
- ==23177== by 0x45505A: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
- ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
- ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
- ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
- ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== 975 bytes in 39 blocks are possibly lost in loss record 48 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x465971: CTransaction*
- std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<CTransaction const*,
- std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*>(__gnu_cxx::__normal_iterator<CTransaction
- const*, std::vector<CTransaction, std::allocator<CTransaction> > >, __gnu_cxx::__normal_iterator<CTransaction const*,
- std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*) (new_allocator.h:104)
- ==23177== by 0x465BF1: CBlock::CBlock(CBlock const&) (stl_uninitialized.h:117)
- ==23177== by 0x45505A: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
- ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
- ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
- ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
- ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== 1,240 (776 direct, 464 indirect) bytes in 1 blocks are definitely lost in loss record 49 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x470A6B: ConnectNode(CAddress, long long) (net.cpp:656)
- ==23177== by 0x470D22: OpenNetworkConnection(CAddress const&) (net.cpp:1440)
- ==23177== by 0x473BF0: ThreadOpenConnections2(void*) (net.cpp:1424)
- ==23177== by 0x473E96: ThreadOpenConnections(void*) (net.cpp:1245)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== 1,669 (72 direct, 1,597 indirect) bytes in 1 blocks are definitely lost in loss record 51 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x4606CD: std::_Rb_tree<CInv, CInv, std::_Identity<CInv>, std::less<CInv>, std::allocator<CInv>
- >::_M_insert_unique(CInv const&) (new_allocator.h:104)
- ==23177== by 0x457EE3: ProcessMessage(CNode*, std::string, CDataStream&) (stl_set.h:463)
- ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
- ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
- ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== 19,008 bytes in 12 blocks are possibly lost in loss record 58 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x4659D2: CTransaction*
- std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<CTransaction const*,
- std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*>(__gnu_cxx::__normal_iterator<CTransaction
- const*, std::vector<CTransaction, std::allocator<CTransaction> > >, __gnu_cxx::__normal_iterator<CTransaction const*,
- std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*) (new_allocator.h:104)
- ==23177== by 0x465BF1: CBlock::CBlock(CBlock const&) (stl_uninitialized.h:117)
- ==23177== by 0x45505A: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
- ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
- ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
- ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
- ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== 38,452 bytes in 286 blocks are possibly lost in loss record 61 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x4657B9: CTransaction*
- std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<CTransaction const*,
- std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*>(__gnu_cxx::__normal_iterator<CTransaction
- const*, std::vector<CTransaction, std::allocator<CTransaction> > >, __gnu_cxx::__normal_iterator<CTransaction const*,
- std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*) (new_allocator.h:104)
- ==23177== by 0x465BF1: CBlock::CBlock(CBlock const&) (stl_uninitialized.h:117)
- ==23177== by 0x45505A: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
- ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
- ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
- ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
- ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== 64,000 (112 direct, 63,888 indirect) bytes in 1 blocks are definitely lost in loss record 62 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x41DEE7: InsertBlockIndex(uint256) (db.cpp:482)
- ==23177== by 0x41FCE1: CTxDB::LoadBlockIndex() (db.cpp:523)
- ==23177== by 0x45ACD4: LoadBlockIndex(bool) (main.cpp:1584)
- ==23177== by 0x4389FC: AppInit2(int, char**) (init.cpp:288)
- ==23177== by 0x43B2C9: AppInit(int, char**) (init.cpp:98)
- ==23177== by 0x413798: main (init.cpp:84)
- ==23177==
- ==23177== 17,600,411 (7,752 direct, 17,592,659 indirect) bytes in 57 blocks are definitely lost in loss record 77 of 77
- ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
- ==23177== by 0x45504C: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
- ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
- ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
- ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
- ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
- ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
- ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
- ==23177==
- ==23177== LEAK SUMMARY:
- ==23177== definitely lost: 8,712 bytes in 60 blocks
- ==23177== indirectly lost: 17,658,608 bytes in 164,299 blocks
- ==23177== possibly lost: 60,202 bytes in 352 blocks
- ==23177== still reachable: 35,532,106 bytes in 535,650 blocks
- ==23177== suppressed: 0 bytes in 0 blocks
- ==23177== Reachable blocks (those to which a pointer was found) are not shown.
- ==23177== To see them, rerun with: --leak-check=full --show-leak-kinds=all
- ==23177==
- ==23177== For counts of detected and suppressed errors, rerun with: -v
- ==23177== ERROR SUMMARY: 12 errors from 12 contexts (suppressed: 1 from 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement