Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitcoin-node segfaults when interrupted #123

Open
ryanofsky opened this issue Dec 4, 2024 · 3 comments
Open

bitcoin-node segfaults when interrupted #123

ryanofsky opened this issue Dec 4, 2024 · 3 comments

Comments

@ryanofsky
Copy link
Collaborator

Originally posted by @darosior in bitcoin/bitcoin#10102 (comment)

Not sure if it's worth sharing here but hey what's an 1300th comment.

Running bitcoin-node from bitcoin/bitcoin#29409 with commits 1045047a73a0b3ae15647ab5bf1829d27141b7cd..9ca113f326fc9ba2f661595283f4aef390df984d from this PR cherry-picked on top.

Simply compiled with cmake -B multiprocbuild/ -DWITH_MULTIPROCESS=ON && cmake --build multiprocbuild/ -j20. (Although i did have to apply the following diff to be able to compile on Debian stable.)

Expand diff to compile on Debian stable
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ae988ac90..ca0880b3cd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,7 @@ set(CLIENT_VERSION_BUILD 0)
 set(CLIENT_VERSION_RC 0)
 set(CLIENT_VERSION_IS_RELEASE "false")
 set(COPYRIGHT_YEAR "2024")
+set(FOUND_LIBATOMIC TRUE)
 
 # During the enabling of the CXX and CXXOBJ languages, we modify
 # CMake's compiler/linker invocation strings by appending the content
diff --git a/src/test/ipc_test.cpp b/src/test/ipc_test.cpp
index 91eba9214f..af37434980 100644
--- a/src/test/ipc_test.cpp
+++ b/src/test/ipc_test.cpp
@@ -62,7 +62,7 @@ void IpcPipeTest()
 
         auto connection_client = std::make_unique<mp::Connection>(loop, kj::mv(pipe.ends[0]));
         auto foo_client = std::make_unique<mp::ProxyClient<gen::FooInterface>>(
-            connection_client->m_rpc_system.bootstrap(mp::ServerVatId().vat_id).castAs<gen::FooInterface>(),
+            connection_client->m_rpc_system->bootstrap(mp::ServerVatId().vat_id).castAs<gen::FooInterface>(),
             connection_client.get(), /* destroy_connection= */ false);
         foo_promise.set_value(std::move(foo_client));
         disconnect_client = [&] { loop.sync([&] { connection_client.reset(); }); };

Just starting bitcoin-node and stopping it with a SIGKILL results in the following crash:

2024-12-03T20:49:29Z [ipc] {bitcoin-node-69380/bitcoin-node-69380} IPC client exception kj::Exception: kj/async-io-unix.c++:323: disconnected: ::read(fd, buffer, maxBytes): Connection reset by peer
stack: 7f53be1b41d4 7f53be1bf95b 7f53be15a911 7f53be1ab560 7f53be3147f0 7f53be30e0a0 7f53be3120f0 7f53be370bf0 7f53be36b6d0 7f53be361de0 7f53be35bea0 7f53be34e160 7f53be34ebc4 7f53be34b7a0 562975c42300 562975c4c8c0
2024-12-03T20:49:29Z [ipc] kj::Exception: kj/async-io-unix.c++:323: disconnected: ::read(fd, buffer, maxBytes): Connection reset by peer
stack: 7f53be1b41d4 7f53be1bf95b 7f53be15a911 7f53be1ab560 7f53be3147f0 7f53be30e0a0 7f53be3120f0 7f53be370bf0 7f53be36b6d0 7f53be361de0 7f53be35bea0 7f53be34e160 7f53be34ebc4 7f53be34b7a0 562975c42300 562975c4c8c0
2024-12-03T20:49:29Z [ipc] {bitcoin-node-69380/b-capnp-loop-69383} IPC client: unexpected network disconnect.
terminate called after throwing an instance of 'ipc::Exception'
  what():  kj::Exception: kj/async-io-unix.c++:323: disconnected: ::read(fd, buffer, maxBytes): Connection reset by peer
stack: 7f53be1b41d4 7f53be1bf95b 7f53be15a911 7f53be1ab560 7f53be3147f0 7f53be30e0a0 7f53be3120f0 7f53be370bf0 7f53be36b6d0 7f53be361de0 7f53be35bea0 7f53be34e160 7f53be34ebc4 7f53be34b7a0 562975c42300 562975c4c8c0
Aborted

The command i used to start it is ./multiprocbuild/src/bitcoin-node -regtest -ipcbind=unix -debug=ipc.

With a simple hacked up client which constructs an Init interface and stops, the crash becomes (still only when stopping bitcoin-node):

terminate called after throwing an instance of 'std::logic_error'
  what():  clientInvoke call made after disconnect
Aborted

Now if the client requested a thread before stopping, this becomes a segfault (still only when stopping bitcoin-node):

2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client exception kj::Exception: kj/async-io-unix.c++:532: disconnected: ::writev(fd, iov.begin(), iov.size()): Broken pipe; iovTotal = 176; iov.size() = 2
stack: 7f70b535079f 7f70b5350cad 7f70b54a9544 7f70b54a9732 7f70b54a978a 7f70b550825d 7f70b5507180 7f70b55016d0 7f70b54f7de0 7f70b54f1ea0 7f70b54e4160 7f70b54e4bc4 7f70b54e17a0 56041e62f300 56041e6398c0
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC client: unexpected network disconnect.
Segmentation fault
@ryanofsky
Copy link
Collaborator Author

(continued)

Here is some logs.

Logs for just starting and stopping `bitcoin-node`
2024-12-03T21:06:40Z Bitcoin Core version v28.99.0-8e2a8fa6a6f4-dirty (release build)                                                                                                                                                                                                                                                                                                                                                   
2024-12-03T21:06:40Z Script verification uses 15 additional threads                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:06:40Z Using the 'x86_shani(1way,2way)' SHA256 implementation                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z Using RdSeed as an additional entropy source                                                                                                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z Using RdRand as an additional entropy source                                                                                                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z Default data directory /home/darosior/.bitcoin                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:06:40Z Using data directory /home/darosior/.bitcoin/regtest                                                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:06:40Z Config file: /home/darosior/.bitcoin/bitcoin.conf (not found, skipping)                                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z Command-line arg: debug="ipc"                                                                                                                                                                                                                                                                                                                                                                                      
2024-12-03T21:06:40Z Command-line arg: ipcbind="unix"                                                                                                                                                                                                                                                                                                                                                                                   
2024-12-03T21:06:40Z Command-line arg: regtest=""                                                                                                                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z Using at most 125 automatic connections (1024 file descriptors available)                                                                                                                                                                                                                                                                                                                                          
2024-12-03T21:06:40Z scheduler thread start                                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z [ipc] Process bitcoin-wallet pid 70740 launched                                                                                                                                                                                                                                                                                                                                                                    
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client first request from current thread, constructing waiter                                                                                                                                                                                                                                                                                                    
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client send Init.construct$Params (threadMap = <external capability>)                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client recv Init.construct$Results (threadMap = <external capability>)                                                                                                                                                                                                                                                                                           
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client send Init.makeWalletLoader$Params (context = (thread = <external capability>, callbackThread = <external capability>), globalArgs = (settings = (forcedSettings = [(key = "server", value = "\\"1\\"")], commandLineOptions = [(key = "debug", value = ["\\"ipc\\""]), (key = "ipcbind", value = ["\\"unix\\""]), (key = "regtest", value = ["\\"\\""])], 
rwSettings = [], roConfig = []), configPath = "/home/darosior/.bitcoin/bitcoin.conf"), chain = <external capability>)                                                                                                                                                                                                                                                                                                                   
2024-12-03T21:06:40Z Using the 'x86_shani(1way,2way)' SHA256 implementation                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z Using RdSeed as an additional entropy source                                                                                                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z Using RdRand as an additional entropy source                                                                                                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z Default data directory /home/darosior/.bitcoin                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:06:40Z Using data directory /home/darosior/.bitcoin/regtest                                                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:06:40Z Config file: /home/darosior/.bitcoin/bitcoin.conf (not found, skipping)                                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server send response #2 Init.makeWalletLoader$Results (result = <external capability>)                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client recv Init.makeWalletLoader$Results (result = <external capability>)                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z Listening for IPC requests on address unix:/home/darosior/.bitcoin/regtest/node.sock                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client send ChainClient.registerRpcs$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server recv request  #3 ChainClient.registerRpcs$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server post request  #3 {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)}                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "rawtransactions", name = "fundrawtransaction", actor = <external capability>, argNames = [(name = "hexstring", namedOnly = false), (name = "add_inputs", namedOnl
y = true), (name = "include_unsafe", namedOnly = true), (name = "minconf", namedOnly = true), (name = "maxconf", namedOnly = true), (name = "changeAddress", namedOnly = true), (name = "changePosition", namedOnly = true), (name = "change_type", namedOnly = true), (name = "includeWatching", namedOnly = true), (name = "lockUnspents", namedOnly = true), (name = "fee_rate", namedOnly = true), (name = "feeRate", namedOnly = tr
ue), (name = "subtractFeeFromOutputs", namedOnly = true), (name = "input_weights", namedOnly = true), (name = "max_tx_weight", namedOnly = true), (name = "conf_target", namedOnly = true), (name = "estimate_mode", namedOnly = true), (name = "replaceable", namedOnly = true), (name = "solving_data", namedOnly ...                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #1 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "rawtransactions", name = "fundrawtransaction", actor = <external capability>, argNames = [(name = "hexstring", namedOnly = false), (name = "add_inputs", namedOnly = true), (name = "include_unsafe", 
namedOnly = true), (name = "minconf", namedOnly = true), (name = "maxconf", namedOnly = true), (name = "changeAddress", namedOnly = true), (name = "changePosition", namedOnly = true), (name = "change_type", namedOnly = true), (name = "includeWatching", namedOnly = true), (name = "lockUnspents", namedOnly = true), (name = "fee_rate", namedOnly = true), (name = "feeRate", namedOnly = true), (name = "subtractFeeFromOutputs"
, namedOnly = true), (name = "input_weights", namedOnly = true), (name = "max_tx_weight", namedOnly = true), (name = "conf_target", namedOnly = true), (name = "estimate_mode", namedOnly = true), (name = "replaceable", namedOnly = true), (name = "solving_data", namedOnly ...                                                                                                                                                      
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #1 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #1 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "abandontransaction", actor = <external capability>, argNames = [(name = "txid", namedOnly = false)], uniqueId = 93936261762176))                
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #2 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "abandontransaction", actor = <external capability>, argNames = [(name = "txid", namedOnly = false)], uniqueId = 93936261762176))                                                     
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #2 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #2 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "abortrescan", actor = <external capability>, argNames = [], uniqueId = 93936261743392))                                                         
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #3 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "abortrescan", actor = <external capability>, argNames = [], uniqueId = 93936261743392))                                                                                              
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #3 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #3 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "addmultisigaddress", actor = <external capability>, argNames = [(name = "nrequired", namedOnly = false), (name = "keys", namedOnly = false), (na
me = "label", namedOnly = false), (name = "address_type", namedOnly = false)], uniqueId = 93936261211840))                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #4 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "addmultisigaddress", actor = <external capability>, argNames = [(name = "nrequired", namedOnly = false), (name = "keys", namedOnly = false), (name = "label", namedOnly = false), (na
me = "address_type", namedOnly = false)], uniqueId = 93936261211840))                                                                                                                                                                                                                                                                                                                                                                   
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #4 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #4 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "backupwallet", actor = <external capability>, argNames = [(name = "destination", namedOnly = false)], uniqueId = 93936261285808))               
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #5 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "backupwallet", actor = <external capability>, argNames = [(name = "destination", namedOnly = false)], uniqueId = 93936261285808))                                                    
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #5 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #5 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "bumpfee", actor = <external capability>, argNames = [(name = "txid", namedOnly = false), (name = "conf_target", namedOnly = true), (name = "fee_
rate", namedOnly = true), (name = "replaceable", namedOnly = true), (name = "estimate_mode", namedOnly = true), (name = "outputs", namedOnly = true), (name = "original_change_index", namedOnly = true), (name = "options", namedOnly = false)], uniqueId = 93936261561168))                                                                                                                                                           
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #6 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "bumpfee", actor = <external capability>, argNames = [(name = "txid", namedOnly = false), (name = "conf_target", namedOnly = true), (name = "fee_rate", namedOnly = true), (name = "re
placeable", namedOnly = true), (name = "estimate_mode", namedOnly = true), (name = "outputs", namedOnly = true), (name = "original_change_index", namedOnly = true), (name = "options", namedOnly = false)], uniqueId = 93936261561168))                                                                                                                                                                                                
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #6 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #6 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "psbtbumpfee", actor = <external capability>, argNames = [(name = "txid", namedOnly = false), (name = "conf_target", namedOnly = true), (name = "
fee_rate", namedOnly = true), (name = "replaceable", namedOnly = true), (name = "estimate_mode", namedOnly = true), (name = "outputs", namedOnly = true), (name = "original_change_index", namedOnly = true), (name = "options", namedOnly = false)], uniqueId = 93936261561328))                                                                                                                                                       
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #7 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "psbtbumpfee", actor = <external capability>, argNames = [(name = "txid", namedOnly = false), (name = "conf_target", namedOnly = true), (name = "fee_rate", namedOnly = true), (name =
 "replaceable", namedOnly = true), (name = "estimate_mode", namedOnly = true), (name = "outputs", namedOnly = true), (name = "original_change_index", namedOnly = true), (name = "options", namedOnly = false)], uniqueId = 93936261561328))                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #7 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #7 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "createwallet", actor = <external capability>, argNames = [(name = "wallet_name", namedOnly = false), (name = "disable_private_keys", namedOnly =
 false), (name = "blank", namedOnly = false), (name = "passphrase", namedOnly = false), (name = "avoid_reuse", namedOnly = false), (name = "descriptors", namedOnly = false), (name = "load_on_startup", namedOnly = false), (name = "external_signer", namedOnly = false)], uniqueId = 93936260236864))                                                                                                                                
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #8 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "createwallet", actor = <external capability>, argNames = [(name = "wallet_name", namedOnly = false), (name = "disable_private_keys", namedOnly = false), (name = "blank", namedOnly =
 false), (name = "passphrase", namedOnly = false), (name = "avoid_reuse", namedOnly = false), (name = "descriptors", namedOnly = false), (name = "load_on_startup", namedOnly = false), (name = "external_signer", namedOnly = false)], uniqueId = 93936260236864))                                                                                                                                                                     
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #8 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #8 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "createwalletdescriptor", actor = <external capability>, argNames = [(name = "type", namedOnly = false), (name = "internal", namedOnly = true), (
name = "hdkey", namedOnly = true), (name = "options", namedOnly = false)], uniqueId = 93936260233536))                                                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #9 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "createwalletdescriptor", actor = <external capability>, argNames = [(name = "type", namedOnly = false), (name = "internal", namedOnly = true), (name = "hdkey", namedOnly = true), (n
ame = "options", namedOnly = false)], uniqueId = 93936260233536))                                                                                                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #9 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #9 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "restorewallet", actor = <external capability>, argNames = [(name = "wallet_name", namedOnly = false), (name = "backup_file", namedOnly = false),
 (name = "load_on_startup", namedOnly = false)], uniqueId = 93936261280944))                                                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #10 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "restorewallet", actor = <external capability>, argNames = [(name = "wallet_name", namedOnly = false), (name = "backup_file", namedOnly = false), (name = "load_on_startup", namedOnl
y = false)], uniqueId = 93936261280944))                                                                                                                                                                                                                                                                                                                                                                                                
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #10 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #10 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "dumpprivkey", actor = <external capability>, argNames = [(name = "address", namedOnly = false)], uniqueId = 93936261311280))                    
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #11 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "dumpprivkey", actor = <external capability>, argNames = [(name = "address", namedOnly = false)], uniqueId = 93936261311280))                                                        

[...]

2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletpassphrase", actor = <external capability>, argNames = [(name = "passphrase", namedOnly = false), (name = "timeout", namedOnly =[100/7860]
uniqueId = 93936261485056))                                                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #67 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletpassphrase", actor = <external capability>, argNames = [(name = "passphrase", namedOnly = false), (name = "timeout", namedOnly = false)], uniqueId = 93936261485056))         
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #67 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #67 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletpassphrasechange", actor = <external capability>, argNames = [(name = "oldpassphrase", namedOnly = false), (name = "newpassphrase", namedO
nly = false)], uniqueId = 93936261481040))                                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #68 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletpassphrasechange", actor = <external capability>, argNames = [(name = "oldpassphrase", namedOnly = false), (name = "newpassphrase", namedOnly = false)], uniqueId = 9393626148
1040))                                                                                                                                                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #68 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #68 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletprocesspsbt", actor = <external capability>, argNames = [(name = "psbt", namedOnly = false), (name = "sign", namedOnly = false), (name = "
sighashtype", namedOnly = false), (name = "bip32derivs", namedOnly = false), (name = "finalize", namedOnly = false)], uniqueId = 93936261544736))                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #69 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletprocesspsbt", actor = <external capability>, argNames = [(name = "psbt", namedOnly = false), (name = "sign", namedOnly = false), (name = "sighashtype", namedOnly = false), (n
ame = "bip32derivs", namedOnly = false), (name = "finalize", namedOnly = false)], uniqueId = 93936261544736))                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #69 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #69 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server send response #3 ChainClient.registerRpcs$Results ()                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client recv ChainClient.registerRpcs$Results ()                                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z Binding RPC on address ::1 port 18443                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:06:40Z Binding RPC on address 127.0.0.1 port 18443                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z Using random cookie authentication.                                                                                                                                                                                                                                                                                                                                                                                
2024-12-03T21:06:40Z Generated RPC authentication cookie /home/darosior/.bitcoin/regtest/.cookie                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z Permissions used for cookie: rw-------                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z Starting HTTP server with 4 worker threads                                                                                                                                                                                                                                                                                                                                                                         
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client send ChainClient.verify$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server recv request  #4 ChainClient.verify$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                       
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server post request  #4 {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)}                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z Using wallet directory /home/darosior/.bitcoin/regtest/wallets                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.initMessage$Params (context = (thread = <external capability>, callbackThread = <external capability>), message = "Verifying wallet(s)\ff\ff\ff")                                                                                                                                             
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #70 Chain.initMessage$Params (context = (thread = <external capability>, callbackThread = <external capability>), message = "Verifying wallet(s)\ff\ff\ff")                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #70 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z init message: Verifying wallet(s)…                                                                                                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #70 Chain.initMessage$Results ()                                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.initMessage$Results ()                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.getSettingsList$Params (context = (thread = <external capability>, callbackThread = <external capability>), name = "wallet")                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #71 Chain.getSettingsList$Params (context = (thread = <external capability>, callbackThread = <external capability>), name = "wallet")                                                                                                                                                                                                      
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #71 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #71 Chain.getSettingsList$Results (result = [])                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.getSettingsList$Results (result = [])                                                                                                                                                                                                                                                         
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server send response #4 ChainClient.verify$Results (result = true)                                                                                                                                                                                                                                                                                           
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client recv ChainClient.verify$Results (result = true)                                                                                                                                                                                                                                                                                                           
2024-12-03T21:06:40Z Using /16 prefix for IP bucketing                                                                                                                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z init message: Loading P2P addresses…                                                                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:06:40Z Loaded 0 addresses from peers.dat  0ms                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z init message: Loading banlist…                                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:06:40Z SetNetworkActive: true                                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z Script verification uses 15 additional threads                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:06:40Z Cache configuration:                                                                                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:06:40Z * Using 2.0 MiB for block index database                                                                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:06:40Z * Using 8.0 MiB for chain state database                                                                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:06:40Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z Using obfuscation key for blocksdir *.dat files (/home/darosior/.bitcoin/regtest/blocks): 'c3525d6fe1128def'                                                                                                                                                                                                                                                                                                       
2024-12-03T21:06:40Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:06:40Z init message: Loading block index…                                                                                                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z Validating signatures for all blocks.                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:06:40Z Setting nMinimumChainWork=0000000000000000000000000000000000000000000000000000000000000000                                                                                                                                                                                                                                                                                                                         
2024-12-03T21:06:40Z Opening LevelDB in /home/darosior/.bitcoin/regtest/blocks/index                                                                                                                                                                                                                                                                                                                                                    
2024-12-03T21:06:40Z Opened LevelDB successfully                                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z Using obfuscation key for /home/darosior/.bitcoin/regtest/blocks/index: 0000000000000000                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:06:40Z LoadBlockIndexDB: last block file = 0                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:06:40Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=1, size=293, heights=0...0, time=2011-02-02...2011-02-02)                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z Checking all blk files are present...                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:06:40Z Initializing chainstate Chainstate [ibd] @ height -1 (null)                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z Opening LevelDB in /home/darosior/.bitcoin/regtest/chainstate                                                                                                                                                                                                                                                                                                                                                      
2024-12-03T21:06:40Z Opened LevelDB successfully                                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z Using obfuscation key for /home/darosior/.bitcoin/regtest/chainstate: 639b6bd0024da93b                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z Loaded best chain: hashBestChain=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206 height=0 date=2011-02-02T23:16:42Z progress=1.000000                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z Opening LevelDB in /home/darosior/.bitcoin/regtest/chainstate                                                                                                                                                                                                                                                                                                                                                      
2024-12-03T21:06:40Z Opened LevelDB successfully                                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z Using obfuscation key for /home/darosior/.bitcoin/regtest/chainstate: 639b6bd0024da93b                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z [Chainstate [ibd] @ height 0 (0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206)] resized coinsdb cache to 8.0 MiB                                                                                                                                                                                                                                                                                  
2024-12-03T21:06:40Z [Chainstate [ibd] @ height 0 (0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206)] resized coinstip cache to 440.0 MiB                                                                                                                                                                                                                                                                               
2024-12-03T21:06:40Z init message: Verifying blocks…                                                                                                                                                                                                                                                                                                                                                                                    
2024-12-03T21:06:40Z  block index              21ms                                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client send ChainClient.load$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                                         
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server recv request  #5 ChainClient.load$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                         
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server post request  #5 {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)}                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client send Chain.getSettingsList$Params (context = (thread = <external capability>, callbackThread = <external capability>), name = "wallet")                                                                                                                                                                  
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server recv request  #72 Chain.getSettingsList$Params (context = (thread = <external capability>, callbackThread = <external capability>), name = "wallet")                                                                                                                                                                                                      
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server post request  #72 {bitcoin-node-70738/bitcoin-node-70738}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server send response #72 Chain.getSettingsList$Results (result = [])                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)} IPC client recv Chain.getSettingsList$Results (result = [])                                                                                                                                                                                                                                                         
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server send response #5 ChainClient.load$Results (result = true)                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client recv ChainClient.load$Results (result = true)                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z Setting NODE_NETWORK on non-prune mode                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z block tree size = 1                                                                                                                                                                                                                                                                                                                                                                                                
2024-12-03T21:06:40Z nBestHeight = 0                                                                                                                                                                                                                                                                                                                                                                                                    
2024-12-03T21:06:40Z initload thread start                                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:06:40Z Loading 0 mempool transactions from file...                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z Imported mempool transactions from file: 0 succeeded, 0 failed, 0 expired, 0 already there, 0 waiting for initial broadcast                                                                                                                                                                                                                                                                                        
2024-12-03T21:06:40Z initload thread exit                                                                                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:06:40Z torcontrol thread start                                                                                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:06:40Z Bound to 127.0.0.1:18445                                                                                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:06:40Z Bound to [::]:18444                                                                                                                                                                                                                                                                                                                                                                                                
2024-12-03T21:06:40Z Bound to 0.0.0.0:18444                                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:06:40Z 0 block-relay-only anchors will be tried for connections.
2024-12-03T21:06:40Z init message: Starting network threads…
2024-12-03T21:06:40Z net thread start
2024-12-03T21:06:40Z addcon thread start
2024-12-03T21:06:40Z dnsseed thread start
2024-12-03T21:06:40Z Loading addresses from DNS seed dummySeed.invalid.
2024-12-03T21:06:40Z init message: Done loading
2024-12-03T21:06:40Z msghand thread start
2024-12-03T21:06:40Z opencon thread start
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client send ChainClient.start$Params (context = (thread = <external capability>, callbackThread = <external capability>), scheduler = void)
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server recv request  #6 ChainClient.start$Params (context = (thread = <external capability>, callbackThread = <external capability>), scheduler = void)
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server post request  #6 {bitcoin-wallet-70740/bitcoin-wallet-70742 (from bitcoin-node-70738/bitcoin-node-70738)}
2024-12-03T21:06:40Z [ipc] {bitcoin-wallet-70740/bitcoin-wallet-70740} IPC server send response #6 ChainClient.start$Results ()
2024-12-03T21:06:40Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client recv ChainClient.start$Results ()
2024-12-03T21:06:40Z 0 addresses found from DNS seeds
2024-12-03T21:06:40Z dnsseed thread exit
^C2024-12-03T21:06:41Z tor: Thread interrupt
2024-12-03T21:06:41Z Shutdown: In progress...
2024-12-03T21:06:41Z opencon thread exit
2024-12-03T21:06:41Z addcon thread exit
2024-12-03T21:06:41Z torcontrol thread exit
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client send ChainClient.flush$Params (context = (thread = <external capability>, callbackThread = <external capability>))
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages5ChainEEE
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/bitcoin-node-70738} IPC client exception kj::Exception: kj/async-io-unix.c++:532: disconnected: ::writev(fd, iov.begin(), iov.size()): Broken pipe; iovTotal = 176; iov.size() = 2
stack: 7f4d205f679f 7f4d205f6cad 7f4d2074f544 7f4d2074f732 7f4d2074f78a 7f4d207ae25d 7f4d207ad180 7f4d207a76d0 7f4d2079dde0 7f4d20797ea0 7f4d2078a160 7f4d2078abc4 7f4d207877a0 564973f5a300 564973f648c0
2024-12-03T21:06:41Z [ipc] {bitcoin-node-70738/b-capnp-loop-70741} IPC client: unexpected network disconnect.
2024-12-03T21:06:41Z [ipc] kj::Exception: kj/async-io-unix.c++:532: disconnected: ::writev(fd, iov.begin(), iov.size()): Broken pipe; iovTotal = 176; iov.size() = 2
stack: 7f4d205f679f 7f4d205f6cad 7f4d2074f544 7f4d2074f732 7f4d2074f78a 7f4d207ae25d 7f4d207ad180 7f4d207a76d0 7f4d2079dde0 7f4d20797ea0 7f4d2078a160 7f4d2078abc4 7f4d207877a0 564973f5a300 564973f648c0
terminate called after throwing an instance of 'ipc::Exception'
  what():  kj::Exception: kj/async-io-unix.c++:532: disconnected: ::writev(fd, iov.begin(), iov.size()): Broken pipe; iovTotal = 176; iov.size() = 2
stack: 7f4d205f679f 7f4d205f6cad 7f4d2074f544 7f4d2074f732 7f4d2074f78a 7f4d207ae25d 7f4d207ad180 7f4d207a76d0 7f4d2079dde0 7f4d20797ea0 7f4d2078a160 7f4d2078abc4 7f4d207877a0 564973f5a300 564973f648c0
Aborted
Logs for when the client constructs `Init`, creates a thread, and stops
[...]
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                  [100/7216]
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletpassphrase", actor = <external capability>, argNames = [(name = "passphrase", namedOnly = false), (name = "timeout", namedOnly = false)], 
uniqueId = 94002610455040))                                                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server recv request  #67 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletpassphrase", actor = <external capability>, argNames = [(name = "passphrase", namedOnly = false), (name = "timeout", namedOnly = false)], uniqueId = 94002610455040))         
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server post request  #67 {bitcoin-node-70275/bitcoin-node-70275}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server send response #67 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletpassphrasechange", actor = <external capability>, argNames = [(name = "oldpassphrase", namedOnly = false), (name = "newpassphrase", namedO
nly = false)], uniqueId = 94002610451024))                                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server recv request  #68 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletpassphrasechange", actor = <external capability>, argNames = [(name = "oldpassphrase", namedOnly = false), (name = "newpassphrase", namedOnly = false)], uniqueId = 9400261045
1024))                                                                                                                                                                                                                                                                                                                                                                                                                                  
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server post request  #68 {bitcoin-node-70275/bitcoin-node-70275}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server send response #68 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client send Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletprocesspsbt", actor = <external capability>, argNames = [(name = "psbt", namedOnly = false), (name = "sign", namedOnly = false), (name = "
sighashtype", namedOnly = false), (name = "bip32derivs", namedOnly = false), (name = "finalize", namedOnly = false)], uniqueId = 94002610514720))                                                                                                                                                                                                                                                                                       
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server recv request  #69 Chain.handleRpc$Params (context = (thread = <external capability>, callbackThread = <external capability>), command = (category = "wallet", name = "walletprocesspsbt", actor = <external capability>, argNames = [(name = "psbt", namedOnly = false), (name = "sign", namedOnly = false), (name = "sighashtype", namedOnly = false), (n
ame = "bip32derivs", namedOnly = false), (name = "finalize", namedOnly = false)], uniqueId = 94002610514720))                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server post request  #69 {bitcoin-node-70275/bitcoin-node-70275}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server send response #69 Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                                                                
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client recv Chain.handleRpc$Results (result = <external capability>)                                                                                                                                                                                                                                            
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server send response #3 ChainClient.registerRpcs$Results ()                                                                                                                                                                                                                                                                                                  
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client recv ChainClient.registerRpcs$Results ()                                                                                                                                                                                                                                                                                                                  
2024-12-03T21:02:16Z Binding RPC on address ::1 port 18443                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:02:16Z Binding RPC on address 127.0.0.1 port 18443                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z Using random cookie authentication.                                                                                                                                                                                                                                                                                                                                                                                
2024-12-03T21:02:16Z Generated RPC authentication cookie /home/darosior/.bitcoin/regtest/.cookie                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z Permissions used for cookie: rw-------                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z Starting HTTP server with 4 worker threads                                                                                                                                                                                                                                                                                                                                                                         
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client send ChainClient.verify$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                                       
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server recv request  #4 ChainClient.verify$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                       
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server post request  #4 {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)}                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z Using wallet directory /home/darosior/.bitcoin/regtest/wallets                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client send Chain.initMessage$Params (context = (thread = <external capability>, callbackThread = <external capability>), message = "Verifying wallet(s)\ff\ff\ff")                                                                                                                                             
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server recv request  #70 Chain.initMessage$Params (context = (thread = <external capability>, callbackThread = <external capability>), message = "Verifying wallet(s)\ff\ff\ff")                                                                                                                                                                                 
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server post request  #70 {bitcoin-node-70275/bitcoin-node-70275}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:16Z init message: Verifying wallet(s)…                                                                                                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server send response #70 Chain.initMessage$Results ()                                                                                                                                                                                                                                                                                                            
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client recv Chain.initMessage$Results ()                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client send Chain.getSettingsList$Params (context = (thread = <external capability>, callbackThread = <external capability>), name = "wallet")                                                                                                                                                                  
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server recv request  #71 Chain.getSettingsList$Params (context = (thread = <external capability>, callbackThread = <external capability>), name = "wallet")                                                                                                                                                                                                      
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server post request  #71 {bitcoin-node-70275/bitcoin-node-70275}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server send response #71 Chain.getSettingsList$Results (result = [])                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client recv Chain.getSettingsList$Results (result = [])                                                                                                                                                                                                                                                         
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server send response #4 ChainClient.verify$Results (result = true)                                                                                                                                                                                                                                                                                           
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client recv ChainClient.verify$Results (result = true)                                                                                                                                                                                                                                                                                                           
2024-12-03T21:02:16Z Using /16 prefix for IP bucketing                                                                                                                                                                                                                                                                                                                                                                                  
2024-12-03T21:02:16Z init message: Loading P2P addresses…                                                                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:02:16Z Loaded 0 addresses from peers.dat  0ms                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z init message: Loading banlist…                                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:02:16Z SetNetworkActive: true                                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z Script verification uses 15 additional threads                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:02:16Z Cache configuration:                                                                                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:02:16Z * Using 2.0 MiB for block index database                                                                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:02:16Z * Using 8.0 MiB for chain state database                                                                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:02:16Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:02:16Z Using obfuscation key for blocksdir *.dat files (/home/darosior/.bitcoin/regtest/blocks): 'c3525d6fe1128def'                                                                                                                                                                                                                                                                                                       
2024-12-03T21:02:16Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:02:16Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:02:16Z init message: Loading block index…                                                                                                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:16Z Validating signatures for all blocks.                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:02:16Z Setting nMinimumChainWork=0000000000000000000000000000000000000000000000000000000000000000                                                                                                                                                                                                                                                                                                                         
2024-12-03T21:02:16Z Opening LevelDB in /home/darosior/.bitcoin/regtest/blocks/index                                                                                                                                                                                                                                                                                                                                                    
2024-12-03T21:02:16Z Opened LevelDB successfully                                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z Using obfuscation key for /home/darosior/.bitcoin/regtest/blocks/index: 0000000000000000                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:02:16Z LoadBlockIndexDB: last block file = 0                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:02:16Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=1, size=293, heights=0...0, time=2011-02-02...2011-02-02)                                                                                                                                                                                                                                                                                            
2024-12-03T21:02:16Z Checking all blk files are present...                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:02:16Z Initializing chainstate Chainstate [ibd] @ height -1 (null)                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z Opening LevelDB in /home/darosior/.bitcoin/regtest/chainstate                                                                                                                                                                                                                                                                                                                                                      
2024-12-03T21:02:16Z Opened LevelDB successfully                                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z Using obfuscation key for /home/darosior/.bitcoin/regtest/chainstate: 639b6bd0024da93b                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z Loaded best chain: hashBestChain=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206 height=0 date=2011-02-02T23:16:42Z progress=1.000000                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z Opening LevelDB in /home/darosior/.bitcoin/regtest/chainstate                                                                                                                                                                                                                                                                                                                                                      
2024-12-03T21:02:16Z Opened LevelDB successfully                                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z Using obfuscation key for /home/darosior/.bitcoin/regtest/chainstate: 639b6bd0024da93b                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z [Chainstate [ibd] @ height 0 (0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206)] resized coinsdb cache to 8.0 MiB                                                                                                                                                                                                                                                                                  
2024-12-03T21:02:16Z [Chainstate [ibd] @ height 0 (0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206)] resized coinstip cache to 440.0 MiB                                                                                                                                                                                                                                                                               
2024-12-03T21:02:16Z init message: Verifying blocks…                                                                                                                                                                                                                                                                                                                                                                                    
2024-12-03T21:02:16Z  block index              19ms                                                                                                                                                                                                                                                                                                                                                                                     
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client send ChainClient.load$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                                         
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server recv request  #5 ChainClient.load$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                         
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server post request  #5 {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)}                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client send Chain.getSettingsList$Params (context = (thread = <external capability>, callbackThread = <external capability>), name = "wallet")                                                                                                                                                                  
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server recv request  #72 Chain.getSettingsList$Params (context = (thread = <external capability>, callbackThread = <external capability>), name = "wallet")                                                                                                                                                                                                      
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server post request  #72 {bitcoin-node-70275/bitcoin-node-70275}                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server send response #72 Chain.getSettingsList$Results (result = [])                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)} IPC client recv Chain.getSettingsList$Results (result = [])                                                                                                                                                                                                                                                         
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server send response #5 ChainClient.load$Results (result = true)                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client recv ChainClient.load$Results (result = true)                                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z Setting NODE_NETWORK on non-prune mode                                                                                                                                                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z block tree size = 1                                                                                                                                                                                                                                                                                                                                                                                                
2024-12-03T21:02:16Z nBestHeight = 0                                                                                                                                                                                                                                                                                                                                                                                                    
2024-12-03T21:02:16Z initload thread start                                                                                                                                                                                                                                                                                                                                                                                              
2024-12-03T21:02:16Z torcontrol thread start                                                                                                                                                                                                                                                                                                                                                                                            
2024-12-03T21:02:16Z Loading 0 mempool transactions from file...                                                                                                                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z Imported mempool transactions from file: 0 succeeded, 0 failed, 0 expired, 0 already there, 0 waiting for initial broadcast                                                                                                                                                                                                                                                                                        
2024-12-03T21:02:16Z initload thread exit                                                                                                                                                                                                                                                                                                                                                                                               
2024-12-03T21:02:16Z Bound to 127.0.0.1:18445                                                                                                                                                                                                                                                                                                                                                                                           
2024-12-03T21:02:16Z Bound to [::]:18444                                                                                                                                                                                                                                                                                                                                                                                                
2024-12-03T21:02:16Z Bound to 0.0.0.0:18444                                                                                                                                                                                                                                                                                                                                                                                     [0/7216]
2024-12-03T21:02:16Z 0 block-relay-only anchors will be tried for connections.
2024-12-03T21:02:16Z init message: Starting network threads…
2024-12-03T21:02:16Z net thread start                                                                     
2024-12-03T21:02:16Z addcon thread start                                                                  
2024-12-03T21:02:16Z init message: Done loading                                                           
2024-12-03T21:02:16Z msghand thread start                                                                 
2024-12-03T21:02:16Z opencon thread start                                                                 
2024-12-03T21:02:16Z dnsseed thread start                                                                 
2024-12-03T21:02:16Z Loading addresses from DNS seed dummySeed.invalid.
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client send ChainClient.start$Params (context = (thread = <external capability>, callbackThread = <external capability>), scheduler = void)                                                                                                                                                                                                                      
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server recv request  #6 ChainClient.start$Params (context = (thread = <external capability>, callbackThread = <external capability>), scheduler = void)
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server post request  #6 {bitcoin-wallet-70277/bitcoin-wallet-70279 (from bitcoin-node-70275/bitcoin-node-70275)}                                                                                                                                                                                                                                             
2024-12-03T21:02:16Z [ipc] {bitcoin-wallet-70277/bitcoin-wallet-70277} IPC server send response #6 ChainClient.start$Results ()                                                                                                                                                                                                                                                                                                         
2024-12-03T21:02:16Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client recv ChainClient.start$Results ()                                                                                                                                                                                                                                                                                                                         
2024-12-03T21:02:16Z 0 addresses found from DNS seeds
2024-12-03T21:02:16Z dnsseed thread exit                                                                  
2024-12-03T21:02:48Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server recv request  #73 Init.construct$Params ()                                                                                                                                                                                                                                                                                                                
2024-12-03T21:02:48Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server send response #73 Init.construct$Results (threadMap = <external capability>)                                                                                                                                                                                                                                                                              
2024-12-03T21:02:48Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server: socket disconnected.
2024-12-03T21:02:48Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages4InitEEE                                                                                                                                                                                                                                                                                                    
^C2024-12-03T21:02:50Z tor: Thread interrupt                                                              
2024-12-03T21:02:50Z Shutdown: In progress...                                                             
2024-12-03T21:02:50Z addcon thread exit                                                                   
2024-12-03T21:02:50Z torcontrol thread exit                                                               
2024-12-03T21:02:50Z opencon thread exit                                                                  
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client send ChainClient.flush$Params (context = (thread = <external capability>, callbackThread = <external capability>))                                                                                                                                                                                                                                        
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages7HandlerEEE                                                                                                                                                                                                                                                                                                 
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC server destroy N2mp11ProxyServerIN3ipc5capnp8messages5ChainEEE                                                                                                                                                                                                                                                                                                   
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/bitcoin-node-70275} IPC client exception kj::Exception: kj/async-io-unix.c++:532: disconnected: ::writev(fd, iov.begin(), iov.size()): Broken pipe; iovTotal = 176; iov.size() = 2
stack: 7f70b535079f 7f70b5350cad 7f70b54a9544 7f70b54a9732 7f70b54a978a 7f70b550825d 7f70b5507180 7f70b55016d0 7f70b54f7de0 7f70b54f1ea0 7f70b54e4160 7f70b54e4bc4 7f70b54e17a0 56041e62f300 56041e6398c0                                                                                                                                                                                                                               
2024-12-03T21:02:50Z [ipc] {bitcoin-node-70275/b-capnp-loop-70278} IPC client: unexpected network disconnect.                                                                                                                                                                                                                                                                                                                           
Segmentation fault

@ryanofsky
Copy link
Collaborator Author

I am able to reproduce this pretty easily with a local branch (ryanofsky/bitcoin@e944fe0) running bitcoin-node -regtest and sending it signals.

If I just stop the bitcoin-node process with SIGTERM (kill `pgrep bitcoin-node`​) it shuts down cleanly.

But if I press CTRL-C in the terminal which sends SIGINT there is an unclean shutdown and eventual crash. This seems to happen because the SIGINT reaches the bitcoin-wallet process as well as bitcoin-node process causing the IPC connection to be broken as the node is shutting down and a bunch of objects to be deleted, and an uncaught exception to be thrown.

Could also reproduce this in GDB by running gdb -ex run --args build/src/bitcoin-node -regtest, pressing CTRL-C, typing signal SIGINT command in gdb, and printing a backtrace with bt. The error and stack trace look like:

details

2024-12-04T02:38:33Z [ipc] {bitcoin-node-4009464/b-capnp-loop-4009469} IPC client: unexpected network disconnect.
[New Thread 0x7fffa97fa6c0 (LWP 4009654)]
terminate called after throwing an instance of 'kj::ExceptionImpl'
  what():  /nix/store/0rvzw1dahhd1h8qyhyxmwgr2l745fn3a-capnproto-1.0.2/include/kj/memory.h:258: failed: expected ptr != nullptr; null Own<> dereference
stack: 555557d3fe3d 555555eb3520 55555662980c 55555661e849 555556545220 555556545115 555556545075 55555654502d 555556544fd5 555556544f25 555556544dbd 555557bd7204 555557bd49e8 5555565f1eef 5555565f1d91 5555565f1cf1 5555565f1ca9 5555565f1c51 5555565f1af9 7ffff78e8682 7ffff767d382 7ffff770000b

Thread 3 "b-capnp-loop" received signal SIGABRT, Aborted.
0x00007ffff767f07c in __pthread_kill_implementation () from /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
(gdb) bt
#0  0x00007ffff767f07c in __pthread_kill_implementation () from /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
#1  0x00007ffff762fe06 in raise () from /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
#2  0x00007ffff76188f5 in abort () from /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
#3  0x00007ffff78acc0b in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /nix/store/agp6lqznayysqvqkx4k1ggr8n1rsyi8c-gcc-13.2.0-lib/lib/libstdc++.so.6
#4  0x00007ffff78bc21a in __cxxabiv1::__terminate(void (*)()) () from /nix/store/agp6lqznayysqvqkx4k1ggr8n1rsyi8c-gcc-13.2.0-lib/lib/libstdc++.so.6
#5  0x00007ffff78bc285 in std::terminate() () from /nix/store/agp6lqznayysqvqkx4k1ggr8n1rsyi8c-gcc-13.2.0-lib/lib/libstdc++.so.6
#6  0x00007ffff78bc4d7 in __cxa_throw () from /nix/store/agp6lqznayysqvqkx4k1ggr8n1rsyi8c-gcc-13.2.0-lib/lib/libstdc++.so.6
#7  0x00005555556cef57 in kj::ExceptionCallback::RootExceptionCallback::onFatalException(kj::Exception&&) ()
#8  0x0000555557d44765 in kj::throwFatalException(kj::Exception&&, unsigned int) ()
#9  0x0000555557d405a3 in kj::_::Debug::Fault::fatal() ()
#10 0x0000555557d3fe3e in kj::_::inlineRequireFailure(char const*, int, char const*, char const*, char const*) ()
#11 0x0000555555eb3521 in kj::Own<capnp::ClientHook, decltype(nullptr)>::operator->() (this=0x7fffe8019760) at /nix/store/0rvzw1dahhd1h8qyhyxmwgr2l745fn3a-capnproto-1.0.2/include/kj/memory.h:258
#12 0x000055555662980d in capnp::Capability::Client::newCall<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (this=0x7fffe8019760, 
    interfaceId=16225999917376910712, methodId=5, sizeHint=..., hints=...) at /nix/store/0rvzw1dahhd1h8qyhyxmwgr2l745fn3a-capnproto-1.0.2/include/capnp/capability.h:1113
#13 0x000055555661e84a in ipc::capnp::messages::ChainClient::Client::flushRequest (this=0x7fffe8019758, sizeHint=...) at ./build/src/ipc/./build/src/ipc/capnp/chain.capnp.c++:13499
#14 0x0000555556545221 in mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}::operator()() const (this=0x7ffffffd24a8) at /home/russ/work/mp/build/prefix/include/mp/proxy-types.h:1575
#15 0x0000555556545116 in std::__invoke_impl<void, mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}&>(std::__invoke_other, mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}&) (__f=...)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/invoke.h:61
#16 0x0000555556545076 in std::__invoke<mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}&>(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&&) (__fn=...)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/invoke.h:96
#17 0x000055555654502e in std::reference_wrapper<mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}>::operator()<>() const (this=0x7ffffffd23e8)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/refwrap.h:359
#18 0x0000555556544fd6 in std::__invoke_impl<void, std::reference_wrapper<mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capn--Type <RET> for more, q to quit, c to continue without paging--c
p::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}>&>(std::__invoke_other, std::reference_wrapper<mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}>&) (__f=...)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/invoke.h:61
#19 0x0000555556544f26 in std::__invoke_r<void, std::reference_wrapper<mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}>&>(std::reference_wrapper<mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}>&) (__fn=...)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/invoke.h:111
#20 0x0000555556544dbe in std::_Function_handler<void (), std::reference_wrapper<mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}> >::_M_invoke(std::_Any_data const&) (__functor=...)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/std_function.h:290
#21 0x0000555557bd7205 in std::function<void ()>::operator()() const (this=0x7ffffffd23e8) at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/std_function.h:591
#22 mp::Unlock<std::unique_lock<std::mutex>, std::function<void ()> const&>(std::unique_lock<std::mutex>&, std::function<void ()> const&) (lock=..., callback=...) at /home/russ/work/mp/include/mp/util.h:146
#23 0x0000555557bd49e9 in mp::EventLoop::loop (this=0x5555593b2840) at /home/russ/work/mp/src/mp/proxy.cpp:197
#24 0x00005555565f1ef0 in ipc::capnp::(anonymous namespace)::CapnpProtocol::startLoop(char const*)::{lambda()#1}::operator()() const (this=0x5555593b9578) at ./build/src/ipc/./src/ipc/capnp/protocol.cpp:91
#25 0x00005555565f1d92 in std::__invoke_impl<void, ipc::capnp::(anonymous namespace)::CapnpProtocol::startLoop(char const*)::{lambda()#1}>(std::__invoke_other, ipc::capnp::(anonymous namespace)::CapnpProtocol::startLoop(char const*)::{lambda()#1}&&) (__f=...) at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/invoke.h:61
#26 0x00005555565f1cf2 in std::__invoke<ipc::capnp::(anonymous namespace)::CapnpProtocol::startLoop(char const*)::{lambda()#1}>(ipc::capnp::(anonymous namespace)::CapnpProtocol::startLoop(char const*)::{lambda()#1}&&) (__fn=...) at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/invoke.h:96
#27 0x00005555565f1caa in std::thread::_Invoker<std::tuple<ipc::capnp::(anonymous namespace)::CapnpProtocol::startLoop(char const*)::{lambda()#1}> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) (this=0x5555593b9578)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/std_thread.h:292
#28 0x00005555565f1c52 in std::thread::_Invoker<std::tuple<ipc::capnp::(anonymous namespace)::CapnpProtocol::startLoop(char const*)::{lambda()#1}> >::operator()() (this=0x5555593b9578)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/std_thread.h:299
#29 0x00005555565f1afa in std::thread::_State_impl<std::thread::_Invoker<std::tuple<ipc::capnp::(anonymous namespace)::CapnpProtocol::startLoop(char const*)::{lambda()#1}> > >::_M_run() (this=0x5555593b9570)
    at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/bits/std_thread.h:244
#30 0x00007ffff78e8683 in execute_native_thread_routine () from /nix/store/agp6lqznayysqvqkx4k1ggr8n1rsyi8c-gcc-13.2.0-lib/lib/libstdc++.so.6
#31 0x00007ffff767d383 in start_thread () from /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
#32 0x00007ffff770000c in clone3 () from /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6

Probably the simplest way to fix this would be to make the bitcoin-wallet process ignore SIGINT when it is being controlled by a bitcoin-node process, so existing shutdown code can run cleanly.

But additionally it would make sense to identify cause of the memory.h:258: failed: expected ptr != nullptr; null Own<> dereference exception in bitcoin-node when the bitcoin-wallet process disconnects suddenly, since that seems like a bug that should not happen in any case.

@ryanofsky
Copy link
Collaborator Author

But additionally it would make sense to identify cause of the memory.h:258: failed: expected ptr != nullptr; null Own<> dereference exception in bitcoin-node when the bitcoin-wallet process disconnects suddenly, since that seems like a bug that should not happen in any case.

The cause seems to be a bug in the clientInvoke function.

The crash happens because bitcoin-node main thread is trying to call ChainClient::flush to flush wallets after the bitcoin-wallet process has already disconnected and the ProxyClient::m_context.connection member is null. The clientInvoke method does have a check to handle this being null, but the check happens too early, and if doesn't work if the disconnect happens before clientInvoke can post to the event loop. The check needs to be moved into the event loop thread and also should throw an ipc::capnp::Exception instead of a std::logic_error so bitcoin application code can more easily catch and handle it.

Stack trace for the main thread at the time of the crash looks like:

trace

#0  0x00007ffff7679ebe in __futex_abstimed_wait_common () from /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
#1  0x00007ffff767c720 in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
#2  0x0000555557bd4ebb in std::condition_variable::wait<mp::EventLoop::post(std::function<void ()> const&)::$_2>(std::unique_lock<std::mutex>&, mp::EventLoop::post(std::function<void ()> const&)::$_2) (
    this=0x5555593b28b0, __lock=..., __p=...) at /nix/store/rqga421d43q40blrrgmiw820p01a4nba-gcc-13.2.0/include/c++/13.2.0/condition_variable:105
#3  mp::EventLoop::post(std::function<void ()> const&) (this=0x5555593b2840, fn=...) at /home/russ/work/mp/src/mp/proxy.cpp:229
#4  0x0000555556544a24 in mp::EventLoop::sync<mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&)::{lambda()#1}>(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&&) (this=0x5555593b2840, callable=...)
    at /home/russ/work/mp/build/prefix/include/mp/proxy-io.h:155
#5  0x00005555561df084 in mp::clientInvoke<mp::ProxyClient<ipc::capnp::messages::WalletLoader>, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>> >(mp::ProxyClient<ipc::capnp::messages::WalletLoader>&, capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::* const&)(kj::Maybe<capnp::MessageSize>), mp::ClientParam<mp::Accessor<mp::wallet_fields::Context, 17>>&&) (proxy_client=..., 
    get_request=@0x7ffffffd28a8: (capnp::Request<ipc::capnp::messages::ChainClient::FlushParams, ipc::capnp::messages::ChainClient::FlushResults> (ipc::capnp::messages::ChainClient::Client::*)(ipc::capnp::messages::ChainClient::Client * const, kj::Maybe<capnp::MessageSize>)) 0x55555661e7c0 <ipc::capnp::messages::ChainClient::Client::flushRequest(kj::Maybe<capnp::MessageSize>)>, fields=...)
    at /home/russ/work/mp/build/prefix/include/mp/proxy-types.h:1574
#6  0x00005555561aeabe in mp::ProxyClient<ipc::capnp::messages::WalletLoader>::flush (this=0x7fffe8019750) at ./build/src/ipc/./build/src/ipc/capnp/wallet.capnp.proxy-client.c++:404
#7  0x0000555555706713 in Shutdown (node=...) at ./build/src/./src/init.cpp:290
#8  0x00005555556f6522 in main (argc=2, argv=0x7ffffffd2e68) at ./build/src/./src/bitcoind.cpp:283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant