Advertisement
Guest User

bitcoind retardation

a guest
Oct 30th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.41 KB | None | 0 0
  1. censored@censored ~/btc_clean/b/src $ valgrind --leak-check=full ./bitcoind
  2. ==23177== Memcheck, a memory error detector
  3. ==23177== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
  4. ==23177== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
  5. ==23177== Command: ./bitcoind
  6. ==23177==
  7. ^C==23177==
  8. ==23177== HEAP SUMMARY:
  9. ==23177== in use at exit: 53,259,628 bytes in 700,361 blocks
  10. ==23177== total heap usage: 22,484,102 allocs, 21,783,741 frees, 10,654,353,323 bytes allocated
  11. ==23177==
  12. ==23177== 63 bytes in 1 blocks are possibly lost in loss record 12 of 77
  13. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  14. ==23177== by 0x67ACFD8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in
  15. /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
  16. ==23177== by 0x67ADBCA: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in
  17. /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
  18. ==23177== by 0x67ADC63: std::string::reserve(unsigned long) (in
  19. /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
  20. ==23177== by 0x67ADEBE: std::string::append(char const*, unsigned long) (in
  21. /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
  22. ==23177== by 0x43BF96: std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char,
  23. std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
  24. const&, char const*) (basic_string.h:1009)
  25. ==23177== by 0x43889C: AppInit2(int, char**) (init.cpp:258)
  26. ==23177== by 0x43B2C9: AppInit(int, char**) (init.cpp:98)
  27. ==23177== by 0x413798: main (init.cpp:84)
  28. ==23177==
  29. ==23177== 304 bytes in 1 blocks are possibly lost in loss record 35 of 77
  30. ==23177== at 0x4C2A830: calloc (vg_replace_malloc.c:618)
  31. ==23177== by 0x4011111: allocate_dtv (in /lib64/ld-2.19.so)
  32. ==23177== by 0x401175D: _dl_allocate_tls (in /lib64/ld-2.19.so)
  33. ==23177== by 0x64D8D82: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.19.so)
  34. ==23177== by 0x43B4FE: CreateThread(void (*)(void*), void*, bool) (util.h:603)
  35. ==23177== by 0x43A467: AppInit2(int, char**) (init.cpp:470)
  36. ==23177== by 0x43B2C9: AppInit(int, char**) (init.cpp:98)
  37. ==23177== by 0x413798: main (init.cpp:84)
  38. ==23177==
  39. ==23177== 304 bytes in 1 blocks are possibly lost in loss record 36 of 77
  40. ==23177== at 0x4C2A830: calloc (vg_replace_malloc.c:618)
  41. ==23177== by 0x4011111: allocate_dtv (in /lib64/ld-2.19.so)
  42. ==23177== by 0x401175D: _dl_allocate_tls (in /lib64/ld-2.19.so)
  43. ==23177== by 0x64D8D82: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.19.so)
  44. ==23177== by 0x472BD9: StartNode(void*) (util.h:603)
  45. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  46. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  47. ==23177==
  48. ==23177== 328 bytes in 8 blocks are possibly lost in loss record 37 of 77
  49. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  50. ==23177== by 0x67ACFD8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in
  51. /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
  52. ==23177== by 0x67ADBCA: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in
  53. /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
  54. ==23177== by 0x67ADC63: std::string::reserve(unsigned long) (in
  55. /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
  56. ==23177== by 0x67AE035: std::string::append(unsigned long, char) (in
  57. /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19)
  58. ==23177== by 0x448081: void Unserialize<CDataStream, char>(CDataStream&, std::basic_string<char,
  59. std::char_traits<char>, std::allocator<char> >&, int, int) [clone .isra.512] (basic_string.h:754)
  60. ==23177== by 0x456FC2: ProcessMessage(CNode*, std::string, CDataStream&) (serialize.h:1144)
  61. ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
  62. ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
  63. ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
  64. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  65. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  66. ==23177==
  67. ==23177== 768 bytes in 4 blocks are possibly lost in loss record 45 of 77
  68. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  69. ==23177== by 0x46599E: CTransaction*
  70. std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<CTransaction const*,
  71. std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*>(__gnu_cxx::__normal_iterator<CTransaction
  72. const*, std::vector<CTransaction, std::allocator<CTransaction> > >, __gnu_cxx::__normal_iterator<CTransaction const*,
  73. std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*) (new_allocator.h:104)
  74. ==23177== by 0x465BF1: CBlock::CBlock(CBlock const&) (stl_uninitialized.h:117)
  75. ==23177== by 0x45505A: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
  76. ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
  77. ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
  78. ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
  79. ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
  80. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  81. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  82. ==23177==
  83. ==23177== 975 bytes in 39 blocks are possibly lost in loss record 48 of 77
  84. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  85. ==23177== by 0x465971: CTransaction*
  86. std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<CTransaction const*,
  87. std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*>(__gnu_cxx::__normal_iterator<CTransaction
  88. const*, std::vector<CTransaction, std::allocator<CTransaction> > >, __gnu_cxx::__normal_iterator<CTransaction const*,
  89. std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*) (new_allocator.h:104)
  90. ==23177== by 0x465BF1: CBlock::CBlock(CBlock const&) (stl_uninitialized.h:117)
  91. ==23177== by 0x45505A: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
  92. ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
  93. ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
  94. ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
  95. ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
  96. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  97. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  98. ==23177==
  99. ==23177== 1,240 (776 direct, 464 indirect) bytes in 1 blocks are definitely lost in loss record 49 of 77
  100. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  101. ==23177== by 0x470A6B: ConnectNode(CAddress, long long) (net.cpp:656)
  102. ==23177== by 0x470D22: OpenNetworkConnection(CAddress const&) (net.cpp:1440)
  103. ==23177== by 0x473BF0: ThreadOpenConnections2(void*) (net.cpp:1424)
  104. ==23177== by 0x473E96: ThreadOpenConnections(void*) (net.cpp:1245)
  105. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  106. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  107. ==23177==
  108. ==23177== 1,669 (72 direct, 1,597 indirect) bytes in 1 blocks are definitely lost in loss record 51 of 77
  109. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  110. ==23177== by 0x4606CD: std::_Rb_tree<CInv, CInv, std::_Identity<CInv>, std::less<CInv>, std::allocator<CInv>
  111. >::_M_insert_unique(CInv const&) (new_allocator.h:104)
  112. ==23177== by 0x457EE3: ProcessMessage(CNode*, std::string, CDataStream&) (stl_set.h:463)
  113. ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
  114. ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
  115. ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
  116. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  117. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  118. ==23177==
  119. ==23177== 19,008 bytes in 12 blocks are possibly lost in loss record 58 of 77
  120. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  121. ==23177== by 0x4659D2: CTransaction*
  122. std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<CTransaction const*,
  123. std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*>(__gnu_cxx::__normal_iterator<CTransaction
  124. const*, std::vector<CTransaction, std::allocator<CTransaction> > >, __gnu_cxx::__normal_iterator<CTransaction const*,
  125. std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*) (new_allocator.h:104)
  126. ==23177== by 0x465BF1: CBlock::CBlock(CBlock const&) (stl_uninitialized.h:117)
  127. ==23177== by 0x45505A: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
  128. ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
  129. ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
  130. ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
  131. ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
  132. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  133. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  134. ==23177==
  135. ==23177== 38,452 bytes in 286 blocks are possibly lost in loss record 61 of 77
  136. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  137. ==23177== by 0x4657B9: CTransaction*
  138. std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<CTransaction const*,
  139. std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*>(__gnu_cxx::__normal_iterator<CTransaction
  140. const*, std::vector<CTransaction, std::allocator<CTransaction> > >, __gnu_cxx::__normal_iterator<CTransaction const*,
  141. std::vector<CTransaction, std::allocator<CTransaction> > >, CTransaction*) (new_allocator.h:104)
  142. ==23177== by 0x465BF1: CBlock::CBlock(CBlock const&) (stl_uninitialized.h:117)
  143. ==23177== by 0x45505A: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
  144. ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
  145. ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
  146. ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
  147. ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
  148. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  149. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  150. ==23177==
  151. ==23177== 64,000 (112 direct, 63,888 indirect) bytes in 1 blocks are definitely lost in loss record 62 of 77
  152. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  153. ==23177== by 0x41DEE7: InsertBlockIndex(uint256) (db.cpp:482)
  154. ==23177== by 0x41FCE1: CTxDB::LoadBlockIndex() (db.cpp:523)
  155. ==23177== by 0x45ACD4: LoadBlockIndex(bool) (main.cpp:1584)
  156. ==23177== by 0x4389FC: AppInit2(int, char**) (init.cpp:288)
  157. ==23177== by 0x43B2C9: AppInit(int, char**) (init.cpp:98)
  158. ==23177== by 0x413798: main (init.cpp:84)
  159. ==23177==
  160. ==23177== 17,600,411 (7,752 direct, 17,592,659 indirect) bytes in 57 blocks are definitely lost in loss record 77 of 77
  161. ==23177== at 0x4C28CA0: operator new(unsigned long) (vg_replace_malloc.c:319)
  162. ==23177== by 0x45504C: ProcessBlock(CNode*, CBlock*) (main.cpp:1465)
  163. ==23177== by 0x4598C8: ProcessMessage(CNode*, std::string, CDataStream&) (main.cpp:2201)
  164. ==23177== by 0x45A4B7: ProcessMessages(CNode*) (main.cpp:2381)
  165. ==23177== by 0x46FD02: ThreadMessageHandler2(void*) (net.cpp:1499)
  166. ==23177== by 0x46FEF6: ThreadMessageHandler(void*) (net.cpp:1464)
  167. ==23177== by 0x64D8082: start_thread (in /lib64/libpthread-2.19.so)
  168. ==23177== by 0x6FEC26C: clone (in /lib64/libc-2.19.so)
  169. ==23177==
  170. ==23177== LEAK SUMMARY:
  171. ==23177== definitely lost: 8,712 bytes in 60 blocks
  172. ==23177== indirectly lost: 17,658,608 bytes in 164,299 blocks
  173. ==23177== possibly lost: 60,202 bytes in 352 blocks
  174. ==23177== still reachable: 35,532,106 bytes in 535,650 blocks
  175. ==23177== suppressed: 0 bytes in 0 blocks
  176. ==23177== Reachable blocks (those to which a pointer was found) are not shown.
  177. ==23177== To see them, rerun with: --leak-check=full --show-leak-kinds=all
  178. ==23177==
  179. ==23177== For counts of detected and suppressed errors, rerun with: -v
  180. ==23177== ERROR SUMMARY: 12 errors from 12 contexts (suppressed: 1 from 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement