View in context in the libbitcoin Slack #general mirror.
./bn -t Using default configuration settings. Database is started. Getting first [100] output address hashes. Segmentation fault
./bn 2025-01-03T16:18:31Z.0 ====================== startup ======================= 2025-01-03T16:18:31Z.0 Using default configuration settings. 2025-01-03T16:18:31Z.0 Database failed to start with error 'flush lock failure'. 2025-01-03T16:18:31Z.0 Please wait while restoring from most recent snapshot... 2025-01-03T16:18:31Z.0 restore::recover_snapshot(store) 2025-01-03T16:18:31Z.0 Database restore failed with error 'missing snapshot'. 2025-01-03T16:18:31Z.0 Node stopped successfully. 2025-01-03T16:18:31Z.0 ====================== shutdown ====================== 2025-01-03T16:18:31Z.0 Press <enter> to exit...
void executor::read_test(bool dump) const
{
using namespace database;
constexpr auto start_tx = 1'000'000_u32;
constexpr auto target_count = 100_size;
// Set ensures unique addresses.
std::set<hash_digest> keys{};
auto tx = start_tx;
logger(format("Getting first [%1%] output address hashes.") % target_count);
auto start = fine_clock::now();
while (!cancel_ && keys.size() < target_count)
{
const auto outputs = query_.get_outputs(tx++);
if (outputs->empty())
{
// fault, tx with no outputs.
return;
}
for (const auto& put: *outputs)
{
keys.emplace(put->script().hash());
if (cancel_ || keys.size() == target_count)
break;
}
}
auto span = duration_cast<milliseconds>(fine_clock::now() - start);
logger(format("Got first [%1%] unique addresses above tx [%2%] in [%3%] ms.") %
keys.size() % start_tx % span.count()); const auto outputs = query_.get_outputs(tx++);
if (is_null(outputs))..../bn 2025-01-03T16:57:47Z.0 ====================== startup ======================= 2025-01-03T16:57:47Z.0 Using default configuration settings. 2025-01-03T16:57:47Z.0 The "bitcoin" database directory does not exist. 2025-01-03T16:57:47Z.0 Using default configuration settings. 2025-01-03T16:57:47Z.0 Initializing "bitcoin" directory... 2025-01-03T16:57:47Z.0 Failed because the directory "bitcoin" already exists. 2025-01-03T16:57:47Z.0 Node stopped successfully. 2025-01-03T16:57:47Z.0 ====================== shutdown ====================== 2025-01-03T16:57:47Z.0 Press <enter> to exit...
./bn -n Using default configuration settings. Initializing "bitcoin" directory... Please wait while creating the database... create::create_file(header_head) create::create_file(header_body) create::create_file(input_head) create::create_file(input_body) create::create_file(output_head) create::create_file(output_body) create::create_file(point_head) create::create_file(point_body) create::create_file(puts_head) create::create_file(puts_body) create::create_file(spend_head) create::create_file(spend_body) create::create_file(tx_head) create::create_file(tx_body) create::create_file(txs_head) create::create_file(txs_body) create::create_file(candidate_head) create::create_file(candidate_body) create::create_file(confirmed_head) create::create_file(confirmed_body) create::create_file(strong_tx_head) create::create_file(strong_tx_body) create::create_file(validated_bk_head) create::create_file(validated_bk_body) create::create_file(validated_tx_head) create::create_file(validated_tx_body) create::create_file(address_head) create::create_file(address_body) create::create_file(neutrino_head) create::create_file(neutrino_body) create::open_file(header_head) create::open_file(header_body) create::open_file(input_head) create::open_file(input_body) create::open_file(output_head) create::open_file(output_body) create::open_file(point_head) create::open_file(point_body) create::open_file(puts_head) create::open_file(puts_body) create::open_file(spend_head) create::open_file(spend_body) create::open_file(tx_head) create::open_file(tx_body) create::open_file(txs_head) create::open_file(txs_body) create::open_file(candidate_head) create::open_file(candidate_body) create::open_file(confirmed_head) create::open_file(confirmed_body) create::open_file(strong_tx_head) create::open_file(strong_tx_body) create::open_file(validated_bk_head) create::open_file(validated_bk_body) create::open_file(validated_tx_head) create::open_file(validated_tx_body) create::open_file(address_head) create::open_file(address_body) create::open_file(neutrino_head) create::open_file(neutrino_body) create::load_file(header_head) create::load_file(header_body) create::load_file(input_head) create::load_file(input_body) create::load_file(output_head) create::load_file(output_body) create::load_file(point_head) create::load_file(point_body) create::load_file(puts_head) create::load_file(puts_body) create::load_file(spend_head) create::load_file(spend_body) create::load_file(tx_head) create::load_file(tx_body) create::load_file(txs_head) create::load_file(txs_body) create::load_file(candidate_head) create::load_file(candidate_body) create::load_file(confirmed_head) create::load_file(confirmed_body) create::load_file(strong_tx_head) create::load_file(strong_tx_body) create::load_file(validated_bk_head) create::load_file(validated_bk_body) create::load_file(validated_tx_head) create::load_file(validated_tx_body) create::load_file(address_head) create::load_file(address_body) create::load_file(neutrino_head) create::load_file(neutrino_body) create::create_table(header_table) create::create_table(input_table) create::create_table(output_table) create::create_table(point_table) create::create_table(puts_table) create::create_table(spend_table) create::create_table(tx_table) Bus error
Another cause of bus errors (on Linux anyway) is when the operating system can't back a virtual page with physical memory (e.g. low-memory conditions or out of huge pages when using huge page memory.)
It failed once and then it worked another time?
Return value true if a directory was newly created for the directory p resolves to, false otherwise.
Initializing "M:/bitcoin/" directory... Failed creating directory "M:/bitcoin/" with error 'is a directory'.
./bn 2025-01-05T16:58:12Z.0 ====================== startup ======================= 2025-01-05T16:58:12Z.0 Using default configuration settings. 2025-01-05T16:58:12Z.0 The "bitcoin" database directory does not exist. 2025-01-05T16:58:12Z.0 Using default configuration settings. 2025-01-05T16:58:12Z.0 Initializing "bitcoin" directory... 2025-01-05T16:58:12Z.0 Please wait while creating the database... 2025-01-05T16:58:12Z.0 create::create_file(header_head) 2025-01-05T16:58:12Z.0 create::create_file(header_body) 2025-01-05T16:58:12Z.0 create::create_file(input_head) 2025-01-05T16:58:12Z.0 create::create_file(input_body) 2025-01-05T16:58:12Z.0 create::create_file(output_head) 2025-01-05T16:58:12Z.0 create::create_file(output_body) 2025-01-05T16:58:12Z.0 create::create_file(point_head) 2025-01-05T16:58:12Z.0 create::create_file(point_body) 2025-01-05T16:58:12Z.0 create::create_file(puts_head) 2025-01-05T16:58:12Z.0 create::create_file(puts_body) 2025-01-05T16:58:12Z.0 create::create_file(spend_head) 2025-01-05T16:58:12Z.0 create::create_file(spend_body) 2025-01-05T16:58:12Z.0 create::create_file(tx_head) 2025-01-05T16:58:12Z.0 create::create_file(tx_body) 2025-01-05T16:58:12Z.0 create::create_file(txs_head) 2025-01-05T16:58:12Z.0 create::create_file(txs_body) 2025-01-05T16:58:12Z.0 create::create_file(candidate_head) 2025-01-05T16:58:12Z.0 create::create_file(candidate_body) 2025-01-05T16:58:12Z.0 create::create_file(confirmed_head) 2025-01-05T16:58:12Z.0 create::create_file(confirmed_body) 2025-01-05T16:58:12Z.0 create::create_file(strong_tx_head) 2025-01-05T16:58:12Z.0 create::create_file(strong_tx_body) 2025-01-05T16:58:12Z.0 create::create_file(validated_bk_head) 2025-01-05T16:58:12Z.0 create::create_file(validated_bk_body) 2025-01-05T16:58:12Z.0 create::create_file(validated_tx_head) 2025-01-05T16:58:12Z.0 create::create_file(validated_tx_body) 2025-01-05T16:58:12Z.0 create::create_file(address_head) 2025-01-05T16:58:12Z.0 create::create_file(address_body) 2025-01-05T16:58:12Z.0 create::create_file(neutrino_head) 2025-01-05T16:58:12Z.0 create::create_file(neutrino_body) 2025-01-05T16:58:12Z.0 create::open_file(header_head) 2025-01-05T16:58:12Z.0 create::open_file(header_body) 2025-01-05T16:58:12Z.0 create::open_file(input_head) 2025-01-05T16:58:12Z.0 create::open_file(input_body) 2025-01-05T16:58:12Z.0 create::open_file(output_head) 2025-01-05T16:58:12Z.0 create::open_file(output_body) 2025-01-05T16:58:12Z.0 create::open_file(point_head) 2025-01-05T16:58:12Z.0 create::open_file(point_body) 2025-01-05T16:58:12Z.0 create::open_file(puts_head) 2025-01-05T16:58:12Z.0 create::open_file(puts_body) 2025-01-05T16:58:12Z.0 create::open_file(spend_head) 2025-01-05T16:58:12Z.0 create::open_file(spend_body) 2025-01-05T16:58:12Z.0 create::open_file(tx_head) 2025-01-05T16:58:12Z.0 create::open_file(tx_body) 2025-01-05T16:58:12Z.0 create::open_file(txs_head) 2025-01-05T16:58:12Z.0 create::open_file(txs_body) 2025-01-05T16:58:12Z.0 create::open_file(candidate_head) 2025-01-05T16:58:12Z.0 create::open_file(candidate_body) 2025-01-05T16:58:12Z.0 create::open_file(confirmed_head) 2025-01-05T16:58:12Z.0 create::open_file(confirmed_body) 2025-01-05T16:58:12Z.0 create::open_file(strong_tx_head) 2025-01-05T16:58:12Z.0 create::open_file(strong_tx_body) 2025-01-05T16:58:12Z.0 create::open_file(validated_bk_head) 2025-01-05T16:58:12Z.0 create::open_file(validated_bk_body) 2025-01-05T16:58:12Z.0 create::open_file(validated_tx_head) 2025-01-05T16:58:12Z.0 create::open_file(validated_tx_body) 2025-01-05T16:58:12Z.0 create::open_file(address_head) 2025-01-05T16:58:12Z.0 create::open_file(address_body) 2025-01-05T16:58:12Z.0 create::open_file(neutrino_head) 2025-01-05T16:58:12Z.0 create::open_file(neutrino_body) 2025-01-05T16:58:12Z.0 create::load_file(header_head) 2025-01-05T16:58:12Z.0 create::load_file(header_body) 2025-01-05T16:58:12Z.0 create::load_file(input_head) 2025-01-05T16:58:12Z.0 create::load_file(input_body) 2025-01-05T16:58:12Z.0 create::load_file(output_head) 2025-01-05T16:58:12Z.0 create::load_file(output_body) 2025-01-05T16:58:12Z.0 create::load_file(point_head) 2025-01-05T16:58:12Z.0 create::load_file(point_body) 2025-01-05T16:58:12Z.0 create::load_file(puts_head) 2025-01-05T16:58:12Z.0 create::load_file(puts_body) 2025-01-05T16:58:12Z.0 create::load_file(spend_head) 2025-01-05T16:58:12Z.0 create::load_file(spend_body) 2025-01-05T16:58:12Z.0 create::load_file(tx_head) 2025-01-05T16:58:12Z.0 create::load_file(tx_body) 2025-01-05T16:58:12Z.0 create::load_file(txs_head) 2025-01-05T16:58:12Z.0 create::load_file(txs_body) 2025-01-05T16:58:12Z.0 create::load_file(candidate_head) 2025-01-05T16:58:12Z.0 create::load_file(candidate_body) 2025-01-05T16:58:12Z.0 create::load_file(confirmed_head) 2025-01-05T16:58:12Z.0 create::load_file(confirmed_body) 2025-01-05T16:58:12Z.0 create::load_file(strong_tx_head) 2025-01-05T16:58:12Z.0 create::load_file(strong_tx_body) 2025-01-05T16:58:12Z.0 create::load_file(validated_bk_head) 2025-01-05T16:58:12Z.0 create::load_file(validated_bk_body) 2025-01-05T16:58:12Z.0 create::load_file(validated_tx_head) 2025-01-05T16:58:12Z.0 create::load_file(validated_tx_body) 2025-01-05T16:58:12Z.0 create::load_file(address_head) 2025-01-05T16:58:12Z.0 create::load_file(address_body) 2025-01-05T16:58:12Z.0 create::load_file(neutrino_head) 2025-01-05T16:58:12Z.0 create::load_file(neutrino_body) 2025-01-05T16:58:12Z.0 create::create_table(header_table) 2025-01-05T16:58:12Z.0 create::create_table(input_table) 2025-01-05T16:58:12Z.0 create::create_table(output_table) 2025-01-05T16:58:12Z.0 create::create_table(point_table) 2025-01-05T16:58:15Z.0 create::create_table(puts_table) 2025-01-05T16:58:15Z.0 create::create_table(spend_table) 2025-01-05T16:58:24Z.0 create::create_table(tx_table) 2025-01-05T16:58:27Z.0 create::create_table(txs_table) 2025-01-05T16:58:27Z.0 create::create_table(candidate_table) 2025-01-05T16:58:27Z.0 create::create_table(confirmed_table) 2025-01-05T16:58:27Z.0 create::create_table(strong_tx_table) 2025-01-05T16:58:31Z.0 create::create_table(validated_bk_table) 2025-01-05T16:58:31Z.0 create::create_table(validated_tx_table) 2025-01-05T16:58:35Z.0 create::create_table(address_table) 2025-01-05T16:58:35Z.0 create::create_table(neutrino_table) 2025-01-05T16:58:35Z.0 Storing genesis block. 2025-01-05T16:58:35Z.0 Created the database in 23 secs. 2025-01-05T16:58:35Z.0 Body sizes... header :98 txs :18 tx :62 point :0 input :79 output :81 puts :9 candidate :3 confirmed :3 spend :24 strong_tx :12 valid_tx :0 valid_bk :0 address :0 neutrino :0 2025-01-05T16:58:35Z.0 Table records... header :1 tx :1 point :0 candidate :1 confirmed :1 spend :1 strong_tx :1 address :0 2025-01-05T16:58:35Z.0 Head buckets... header :524493 txs :524493 tx :551320125 point :546188501 spend :1459791875 strong_tx :551320125 valid_tx :551320125 valid_bk :524493 address :1 neutrino :1 2025-01-05T16:58:35Z.0 Version Information... libbitcoin-node: 4.0.0 libbitcoin-database: 4.0.0 libbitcoin-network: 4.0.0 libbitcoin-system: 4.0.0 2025-01-05T16:58:35Z.0 Hardware configuration... 2025-01-05T16:58:35Z.0 arm..... platform:0. 2025-01-05T16:58:35Z.0 intel... platform:1. 2025-01-05T16:58:35Z.0 avx512.. platform:0 compiled:0. 2025-01-05T16:58:35Z.0 avx2.... platform:1 compiled:0. 2025-01-05T16:58:35Z.0 sse41... platform:1 compiled:0. 2025-01-05T16:58:35Z.0 shani... platform:1 compiled:0. 2025-01-05T16:58:35Z.0 neon.... platform:0 compiled:0. 2025-01-05T16:58:35Z.0 Log system configuration... 2025-01-05T16:58:35Z.0 [a]pplication.. compiled:1 enabled:1. 2025-01-05T16:58:35Z.0 [n]ews......... compiled:1 enabled:1. 2025-01-05T16:58:35Z.0 [s]ession...... compiled:1 enabled:1. 2025-01-05T16:58:35Z.0 [p]rotocol..... compiled:1 enabled:0. 2025-01-05T16:58:35Z.0 [x]proxy....... compiled:1 enabled:0. 2025-01-05T16:58:35Z.0 [r]emote....... compiled:1 enabled:1. 2025-01-05T16:58:35Z.0 [f]ault........ compiled:1 enabled:1. 2025-01-05T16:58:35Z.0 [q]uitting..... compiled:1 enabled:0. 2025-01-05T16:58:35Z.0 [o]bjects...... compiled:1 enabled:0. 2025-01-05T16:58:35Z.0 [v]erbose...... compiled:1 enabled:0. 2025-01-05T16:58:35Z.0 Press CTRL-C to stop the node. Segmentation fault
2025-01-05T22:27:32Z.0 Press CTRL-C to stop the node. 2025-01-05T22:27:32Z.0 Please wait while network is starting... 2025-01-05T22:27:32Z.1 Candidate top [000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f:0]. 2025-01-05T22:27:32Z.1 Fork point (0) unassociated (0). 2025-01-05T22:27:33Z.1 Loaded (50000) addresses. 2025-01-05T22:27:33Z.1 Bypassed seeding because outbound connections disabled. 2025-01-05T22:27:33Z.0 Node is started. 2025-01-05T22:27:33Z.1 Not configured for inbound connections. 2025-01-05T22:27:33Z.1 Not configured for outbound connections. 2025-01-05T22:27:33Z.0 Node is running.
// These are thread safe.
const bool concurrent_;
const size_t maximum_backlog_;
const uint64_t initial_subsidy_;
const uint32_t subsidy_interval_;
network::asio::strand independent_strand_;
// These are protected by strand.
network::threadpool threadpool_;block txs % 000k 1 0.00% 050k 50,780 0.00% 100k 216,577 0.02% 150k 1,718,407 0.17% 200k 7,316,696 0.71% 250k 21,491,097 2.08% 300k 38,463,787 3.73% 350k 63,960,713 6.20% 400k 112,477,764 10.90% 450k 190,757,159 18.48% 500k 283,595,037 27.47% 550k 356,588,225 34.54% 600k 466,297,403 45.17% 650k 571,876,797 55.40% 700k 669,566,380 64.86% 750k 757,720,472 73.40% 800k 868,965,224 84.18% 850k 1,032,289,555 100.00%
One thing at a time. What happened with the directory question?
I'm also curious about your build process. Are you using the node repository install.sh or are you building manually and incrementally?
No issues with the path?