Guest User

Untitled

a guest
Sep 2nd, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.25 KB | None | 0 0
  1. [I] [12:50] ubuntu:bitcoin (v23.0) | ₿ gdb --args src/bitcoind
  2. GNU gdb (Ubuntu 12.0.90-0ubuntu1) 12.0.90
  3. Copyright (C) 2022 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.
  7. Type "show copying" and "show warranty" for details.
  8. This GDB was configured as "x86_64-linux-gnu".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <https://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13. <http://www.gnu.org/software/gdb/documentation/>.
  14.  
  15. For help, type "help".
  16. Type "apropos word" to search for commands related to "word"...
  17. Reading symbols from src/bitcoind...
  18. sour(gdb) source ~/src/obc/threads.brk
  19. ~/src/obc/threads.brk: No such file or directory.
  20. (gdb) source ~/src/obc/threads
  21. ~/src/obc/threads:1: Error in sourced command file:
  22. Undefined command: "ThreadImport". Try "help".
  23. (gdb) quit
  24. [I] [12:51] ubuntu:bitcoin (v23.0) | ₿ nvim ~/src/obc/threads
  25. [I] [12:51] ubuntu:bitcoin (v23.0) | ₿ nvim threads.brk
  26. [I] [12:51] ubuntu:bitcoin (v23.0) | ₿ gdb --args src/bitcoind
  27. GNU gdb (Ubuntu 12.0.90-0ubuntu1) 12.0.90
  28. Copyright (C) 2022 Free Software Foundation, Inc.
  29. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  30. This is free software: you are free to change and redistribute it.
  31. There is NO WARRANTY, to the extent permitted by law.
  32. Type "show copying" and "show warranty" for details.
  33. This GDB was configured as "x86_64-linux-gnu".
  34. Type "show configuration" for configuration details.
  35. For bug reporting instructions, please see:
  36. <https://www.gnu.org/software/gdb/bugs/>.
  37. Find the GDB manual and other documentation resources online at:
  38. <http://www.gnu.org/software/gdb/documentation/>.
  39.  
  40. For help, type "help".
  41. Type "apropos word" to search for commands related to "word"...
  42. Reading symbols from src/bitcoind...
  43. sou(gdb) source threads.brk
  44. Breakpoint 1 at 0x23cb01: file ./src/node/blockstorage.cpp, line 861.
  45. Breakpoint 2 at 0x5dd98c: file ./src/validation.cpp, line 1831.
  46. Breakpoint 3 at 0x6e65b1: file ./src/httpserver.cpp, line 286.
  47. Breakpoint 4 at 0x6e610c: file ./src/httpserver.cpp, line 424.
  48. Breakpoint 5 at 0x707df1: file ./src/index/base.cpp, line 132.
  49. Breakpoint 6 at 0x658329: file ./scheduler.h, line 130.
  50. Breakpoint 7 at 0x5497d4: file ./src/torcontrol.cpp, line 608.
  51. Breakpoint 8 at 0xfba4b: file ./src/net.cpp, line 2315.
  52. Breakpoint 9 at 0xf59e6: file ./src/net.cpp, line 1731.
  53. Breakpoint 10 at 0xe0589: file ./src/mapport.cpp, line 226.
  54. Breakpoint 11 at 0xf5945: file ./src/net.cpp, line 1711.
  55. Breakpoint 12 at 0xfb681: file ./src/net.cpp, line 2251.
  56. Breakpoint 13 at 0xf8308: file ./src/net.cpp, line 1914.
  57. Breakpoint 14 at 0xfbf31: file ./src/net.cpp, line 2358.
  58. (gdb) start
  59. Temporary breakpoint 15 at 0x5a3f1: file ./src/bitcoind.cpp, line 262.
  60. Starting program: /home/will/src/bitcoin/src/bitcoind
  61. [Thread debugging using libthread_db enabled]
  62. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  63.  
  64. Temporary breakpoint 15, main (argc=1, argv=0x7fffffffdce8) at ./src/bitcoind.cpp:262
  65. 262 NodeContext node;
  66. (gdb) c
  67. Continuing.
  68. Bitcoin Core starting
  69. [Attaching after Thread 0x7ffff74389c0 (LWP 29390) fork to child process 29927]
  70. [New inferior 2 (process 29927)]
  71. [Detaching after fork from parent process 29390]
  72. [Inferior 1 (process 29390) detached]
  73. [Thread debugging using libthread_db enabled]
  74. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  75. [Switching to Thread 0x7ffff74389c0 (LWP 29927)]
  76.  
  77. Thread 2.1 "bitcoind" hit Breakpoint 2, StartScriptCheckWorkerThreads (threads_num=15) at ./src/validation.cpp:1831
  78. 1831 scriptcheckqueue.StartWorkerThreads(threads_num);
  79. (gdb) c
  80. Continuing.
  81. [New Thread 0x7ffff4e80640 (LWP 29936)]
  82. [New Thread 0x7ffff467f640 (LWP 29937)]
  83. [New Thread 0x7ffff3e7e640 (LWP 29938)]
  84. [New Thread 0x7ffff367d640 (LWP 29939)]
  85. [New Thread 0x7ffff2e7c640 (LWP 29940)]
  86. [New Thread 0x7ffff267b640 (LWP 29941)]
  87. [New Thread 0x7ffff1e7a640 (LWP 29942)]
  88. [New Thread 0x7ffff1679640 (LWP 29943)]
  89. [New Thread 0x7ffff0e78640 (LWP 29944)]
  90. [New Thread 0x7fffd3fff640 (LWP 29945)]
  91. [New Thread 0x7fffd37fe640 (LWP 29946)]
  92. [New Thread 0x7fffd2ffd640 (LWP 29947)]
  93. [New Thread 0x7fffd27fc640 (LWP 29948)]
  94. [New Thread 0x7fffd1ffb640 (LWP 29949)]
  95. [New Thread 0x7fffd17fa640 (LWP 29950)]
  96. [New Thread 0x7fffd0ff9640 (LWP 29951)]
  97.  
  98. Thread 2.1 "bitcoind" hit Breakpoint 6, SingleThreadedSchedulerClient::SingleThreadedSchedulerClient (this=0x5555568f9b08, pschedulerIn=0x55555690d0c0) at ./scheduler.h:130
  99. 130 explicit SingleThreadedSchedulerClient(CScheduler* pschedulerIn) : m_pscheduler(pschedulerIn) {}
  100. (gdb) c
  101. Continuing.
  102.  
  103. Thread 2.1 "bitcoind" hit Breakpoint 4, StartHTTPServer () at ./src/httpserver.cpp:424
  104. 424 LogPrint(BCLog::HTTP, "Starting HTTP server\n");
  105. (gdb) c
  106. Continuing.
  107. [New Thread 0x7fffaffff640 (LWP 29963)]
  108. [New Thread 0x7fffaf7fe640 (LWP 29964)]
  109. [New Thread 0x7fffaeffd640 (LWP 29965)]
  110. [Switching to Thread 0x7fffaffff640 (LWP 29963)]
  111.  
  112. Thread 2.18 "bitcoind" hit Breakpoint 3, ThreadHTTP (base=0x555556986160) at ./src/httpserver.cpp:286
  113. 286 util::ThreadRename("http");
  114. (gdb) c
  115. Continuing.
  116. [New Thread 0x7fffae7fc640 (LWP 29966)]
  117. [New Thread 0x7fffadffb640 (LWP 29967)]
  118. [New Thread 0x7fffad7fa640 (LWP 29968)]
  119. [New Thread 0x7fffacff9640 (LWP 29969)]
  120. [New Thread 0x7fff93fff640 (LWP 29970)]
  121. [New Thread 0x7fff937fe640 (LWP 29971)]
  122. [New Thread 0x7fff92ffd640 (LWP 29972)]
  123. [New Thread 0x7fff927fc640 (LWP 29973)]
  124. [New Thread 0x7fff91ffb640 (LWP 29974)]
  125. [New Thread 0x7fff917fa640 (LWP 29975)]
  126. [New Thread 0x7fff90ff9640 (LWP 29976)]
  127. [New Thread 0x7fff6ffff640 (LWP 29977)]
  128. [New Thread 0x7fff6f7fe640 (LWP 29978)]
  129. [New Thread 0x7fff6effd640 (LWP 29979)]
  130. [New Thread 0x7fff6e7fc640 (LWP 29980)]
  131. [New Thread 0x7fff6dffb640 (LWP 29981)]
  132. (gdb) [New Thread 0x7ffee0bb2640 (LWP 30748)]
  133. [New Thread 0x7ffee1c58640 (LWP 30762)]
  134. [New Thread 0x7ffedbbd9640 (LWP 30763)]
  135. [Switching to Thread 0x7ffee1c58640 (LWP 30762)]
  136.  
  137. Thread 2.38 "b-txindex" hit Breakpoint 5, BaseIndex::ThreadSync (this=0x555561d21f30) at ./src/index/base.cpp:132
  138. 132 SetSyscallSandboxPolicy(SyscallSandboxPolicy::TX_INDEX);
  139. (gdb) c
  140. Continuing.
  141. [New Thread 0x7ffedb3d8640 (LWP 30766)]
  142. [New Thread 0x7ffedabd7640 (LWP 30767)]
  143. [Thread 0x7ffee1c58640 (LWP 30762) exited]
  144. [Switching to Thread 0x7ffedb3d8640 (LWP 30766)]
  145.  
  146. Thread 2.40 "b-torcontrol" hit Breakpoint 7, TorControlThread (onion_service_target=...) at ./src/torcontrol.cpp:608
  147. 608 SetSyscallSandboxPolicy(SyscallSandboxPolicy::TOR_CONTROL);
  148. (gdb) c
  149. Continuing.
  150. [New Thread 0x7ffeda3d6640 (LWP 30775)]
  151. [Switching to Thread 0x7ffedbbd9640 (LWP 30763)]
  152.  
  153. Thread 2.39 "b-loadblk" hit Breakpoint 1, node::ThreadImport (chainman=..., vImportFiles=std::vector of length 0, capacity 0, args=...) at ./src/node/blockstorage.cpp:861
  154. 861 SetSyscallSandboxPolicy(SyscallSandboxPolicy::INITIALIZATION_LOAD_BLOCKS);
  155. (gdb) c
  156. Continuing.
  157. [New Thread 0x7ffed9bd5640 (LWP 30776)]
  158. [Switching to Thread 0x7ffedabd7640 (LWP 30767)]
  159.  
  160. Thread 2.41 "b-net" hit Breakpoint 11, CConnman::ThreadSocketHandler (this=0x55555793b1d0) at ./src/net.cpp:1711
  161. 1711 SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET);
  162. (gdb) c
  163. Continuing.
  164. [New Thread 0x7ffed93d4640 (LWP 30778)]
  165. [New Thread 0x7ffed8bd3640 (LWP 30779)]
  166. [New Thread 0x7ffec3fff640 (LWP 30780)]
  167. [Switching to Thread 0x7ffed93d4640 (LWP 30778)]
  168.  
  169. Thread 2.44 "b-opencon" hit Breakpoint 13, CConnman::ThreadOpenConnections (this=0x55555793b1d0, connect=std::vector of length 0, capacity 0) at ./src/net.cpp:1914
  170. 1914 SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET_OPEN_CONNECTION);
  171. (gdb) c
  172. Continuing.
  173. [Switching to Thread 0x7ffed8bd3640 (LWP 30779)]
  174.  
  175. Thread 2.45 "b-msghand" hit Breakpoint 8, CConnman::ThreadMessageHandler (this=0x55555793b1d0) at ./src/net.cpp:2315
  176. 2315 SetSyscallSandboxPolicy(SyscallSandboxPolicy::MESSAGE_HANDLER);
  177. (gdb) c
  178. Continuing.
  179. [Switching to Thread 0x7ffed9bd5640 (LWP 30776)]
  180.  
  181. Thread 2.43 "b-addcon" hit Breakpoint 12, CConnman::ThreadOpenAddedConnections (this=0x55555793b1d0) at ./src/net.cpp:2251
  182. 2251 SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET_ADD_CONNECTION);
  183. (gdb) c
  184. Continuing.
  185. [Switching to Thread 0x7ffeda3d6640 (LWP 30775)]
  186.  
  187. Thread 2.42 "b-dnsseed" hit Breakpoint 9, CConnman::ThreadDNSAddressSeed (this=0x55555793b1d0) at ./src/net.cpp:1731
  188. 1731 SetSyscallSandboxPolicy(SyscallSandboxPolicy::INITIALIZATION_DNS_SEED);
  189. (gdb) c
  190. Continuing.
  191. [Switching to Thread 0x7ffec3fff640 (LWP 30780)]
  192.  
  193. Thread 2.46 "b-i2paccept" hit Breakpoint 14, CConnman::ThreadI2PAcceptIncoming (this=0x55555793b1d0) at ./src/net.cpp:2358
  194. 2358 auto err_wait = err_wait_begin;
  195. (gdb) c
  196. Continuing.
  197.  
  198. Thread 2.37 "bitcoind" received signal SIGBUS, Bus error.
  199. [Switching to Thread 0x7ffee0bb2640 (LWP 30748)]
  200. 0x0000555556231179 in leveldb::DecodeFixed32 (ptr=0x7fff2c90c12a <error: Cannot access memory at address 0x7fff2c90c12a>) at ./leveldb/util/coding.h:112
  201. 112 std::memcpy(&result, buffer, sizeof(uint32_t));
  202. (gdb) c
  203. Continuing.
  204. Couldn't get registers: No such process.
  205. (gdb) [Thread 0x7ffec3fff640 (LWP 30780) exited]
  206. [Thread 0x7ffed8bd3640 (LWP 30779) exited]
  207. [Thread 0x7ffed93d4640 (LWP 30778) exited]
  208. [Thread 0x7ffed9bd5640 (LWP 30776) exited]
  209. [Thread 0x7ffeda3d6640 (LWP 30775) exited]
  210. [Thread 0x7ffedabd7640 (LWP 30767) exited]
  211. [Thread 0x7ffedb3d8640 (LWP 30766) exited]
  212. [Thread 0x7ffedbbd9640 (LWP 30763) exited]
  213. [Thread 0x7ffee0bb2640 (LWP 30748) exited]
  214. [Thread 0x7fff6dffb640 (LWP 29981) exited]
  215. [Thread 0x7fff6e7fc640 (LWP 29980) exited]
  216. [Thread 0x7fff6effd640 (LWP 29979) exited]
  217. [Thread 0x7fff6f7fe640 (LWP 29978) exited]
  218. [Thread 0x7fff6ffff640 (LWP 29977) exited]
  219. [Thread 0x7fff90ff9640 (LWP 29976) exited]
  220. [Thread 0x7fff917fa640 (LWP 29975) exited]
  221. [Thread 0x7fff91ffb640 (LWP 29974) exited]
  222. [Thread 0x7fff927fc640 (LWP 29973) exited]
  223. [Thread 0x7fff92ffd640 (LWP 29972) exited]
  224. [Thread 0x7fff937fe640 (LWP 29971) exited]
  225. [Thread 0x7fff93fff640 (LWP 29970) exited]
  226. [Thread 0x7fffacff9640 (LWP 29969) exited]
  227. [Thread 0x7fffad7fa640 (LWP 29968) exited]
  228. [Thread 0x7fffadffb640 (LWP 29967) exited]
  229. [Thread 0x7fffae7fc640 (LWP 29966) exited]
  230. [Thread 0x7fffaeffd640 (LWP 29965) exited]
  231. [Thread 0x7fffaf7fe640 (LWP 29964) exited]
  232. [Thread 0x7fffaffff640 (LWP 29963) exited]
  233. [Thread 0x7fffd0ff9640 (LWP 29951) exited]
  234. [Thread 0x7fffd17fa640 (LWP 29950) exited]
  235. [Thread 0x7fffd1ffb640 (LWP 29949) exited]
  236. [Thread 0x7fffd27fc640 (LWP 29948) exited]
  237. [Thread 0x7fffd2ffd640 (LWP 29947) exited]
  238. [Thread 0x7fffd37fe640 (LWP 29946) exited]
  239. [Thread 0x7fffd3fff640 (LWP 29945) exited]
  240. [Thread 0x7ffff0e78640 (LWP 29944) exited]
  241. [Thread 0x7ffff1679640 (LWP 29943) exited]
  242. [Thread 0x7ffff1e7a640 (LWP 29942) exited]
  243. [Thread 0x7ffff267b640 (LWP 29941) exited]
  244. [Thread 0x7ffff2e7c640 (LWP 29940) exited]
  245. [Thread 0x7ffff367d640 (LWP 29939) exited]
  246. [Thread 0x7ffff3e7e640 (LWP 29938) exited]
  247. [Thread 0x7ffff467f640 (LWP 29937) exited]
  248. [Thread 0x7ffff4e80640 (LWP 29936) exited]
  249.  
  250. Program terminated with signal SIGBUS, Bus error.
  251. The program no longer exists.
  252. (gdb) c
  253. The program is not being run.
  254. (gdb)
  255.  
Add Comment
Please, Sign In to add comment