BTCPrivate / BTCP-Rebase

Work in progress. DO NOT USE.
https://btcprivate.org
Other
113 stars 23 forks source link

Failed tests for test_bitcoin #81

Open aguilaair opened 6 years ago

aguilaair commented 6 years ago

blockencoding_tests is in an infinite loop (ran 24hrs)

bloom_tests has an output of:

test_bitcoin: merkleblock.cpp:43: uint256 CPartialMerkleTree::CalcHash(int, unsigned int, const std::vector<uint256>&): Assertion `vTxid.size() != 0' failed. test_bitcoin: key.cpp:324: void ECC_Start(): Assertion `secp256k1_context_sign == nullptr' failed. test_bitcoin: key.cpp:324: void ECC_Start(): Assertion `secp256k1_context_sign == nullptr' failed. test_bitcoin: key.cpp:324: void ECC_Start(): Assertion `secp256k1_context_sign == nullptr' failed. test_bitcoin: key.cpp:324: void ECC_Start(): Assertion `secp256k1_context_sign == nullptr' failed. test_bitcoin: key.cpp:324: void ECC_Start(): Assertion `secp256k1_context_sign == nullptr' failed. test_bitcoin: key.cpp:324: void ECC_Start(): Assertion `secp256k1_context_sign == nullptr' failed. test_bitcoin: key.cpp:324: void ECC_Start(): Assertion `secp256k1_context_sign == nullptr' failed. *** 8 failures are detected in the test module "Bitcoin Test Suite"

OR credit to @dskjkljdas

test/bloom_tests.cpp(178): Entering test case "merkle_block_1"
test_bitcoin: merkleblock.cpp:43: uint256 CPartialMerkleTree::CalcHash(int, unsigned int, const std::vector&): Assertion vTxid.size() != 0' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_1": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(178): last checkpoint: "merkle_block_1" entry. test/bloom_tests.cpp(178): Leaving test case "merkle_block_1"; testing time: 3331us test/bloom_tests.cpp(219): Entering test case "merkle_block_2" test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed.
unknown location(0): fatal error: in "bloom_tests/merkle_block_2": signal: SIGABRT (application abort requested)
test/bloom_tests.cpp(219): last checkpoint: "merkle_block_2" fixture entry.
test/bloom_tests.cpp(219): Leaving test case "merkle_block_2"; testing time: 501us
test/bloom_tests.cpp(274): Entering test case "merkle_block_2_with_update_none"
test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_2_with_update_none": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(274): last checkpoint: "merkle_block_2_with_update_none" fixture entry. test/bloom_tests.cpp(274): Leaving test case "merkle_block_2_with_update_none"; testing time: 444us test/bloom_tests.cpp(326): Entering test case "merkle_block_3_and_serialize" test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed.
unknown location(0): fatal error: in "bloom_tests/merkle_block_3_and_serialize": signal: SIGABRT (application abort requested)
test/bloom_tests.cpp(326): last checkpoint: "merkle_block_3_and_serialize" fixture entry.
test/bloom_tests.cpp(326): Leaving test case "merkle_block_3_and_serialize"; testing time: 439us
test/bloom_tests.cpp(365): Entering test case "merkle_block_4"
test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_4": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(365): last checkpoint: "merkle_block_4" fixture entry. test/bloom_tests.cpp(365): Leaving test case "merkle_block_4"; testing time: 446us test/bloom_tests.cpp(411): Entering test case "merkle_block_4_test_p2pubkey_only" test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed.
unknown location(0): fatal error: in "bloom_tests/merkle_block_4_test_p2pubkey_only": signal: SIGABRT (application abort requested)
test/bloom_tests.cpp(411): last checkpoint: "merkle_block_4_test_p2pubkey_only" fixture entry.
test/bloom_tests.cpp(411): Leaving test case "merkle_block_4_test_p2pubkey_only"; testing time: 443us
test/bloom_tests.cpp(434): Entering test case "merkle_block_4_test_update_none"
test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_4_test_update_none": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(434): last checkpoint: "merkle_block_4_test_update_none" fixture entry. test/bloom_tests.cpp(434): Leaving test case "merkle_block_4_test_update_none"; testing time: 440us test/bloom_tests.cpp(462): Entering test case "rolling_bloom" test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed.
unknown location(0): fatal error: in "bloom_tests/rolling_bloom": signal: SIGABRT (application abort requested)
test/bloom_tests.cpp(462): last checkpoint: "rolling_bloom" fixture entry.
test/bloom_tests.cpp(462): Leaving test case "rolling_bloom"; testing time: 449us
test/bloom_tests.cpp(24): Leaving test suite "bloom_tests"; testing time: 52421us
Leaving test module "Bitcoin Test Suite"; testing time: 52496us

DoS_tests has an output of:

not getting exact error thank you to @dskjkljdas

test/DoS_tests.cpp(130): info: check node->fDisconnect == false has passed
test/DoS_tests.cpp(138): error: in "DoS_tests/stale_tip_peer_management": check connman->GetTryNewOutboundPeer() has failed

key_io_tests has an output of:

not getting exact errors

*** 113 failures are detected in the test module "Bitcoin Test Suite

key_tests has an output of:

not getting exact errors

*** 4 failures are detected in the test module "Bitcoin Test Suite

main_tests has an output of:

not getting exact errors

*** 11 failures are detected in the test module "Bitcoin Test Suite

merkleblock_tests has an output of:

Running 2 test cases... Entering test module "Bitcoin Test Suite" test/merkleblock_tests.cpp(12): Entering test suite "merkleblock_tests" test/merkleblock_tests.cpp(18): Entering test case "merkleblock_construct_from_txids_found" test_bitcoin: merkleblock.cpp:43: uint256 CPartialMerkleTree::CalcHash(int, unsigned int, const std::vector<uint256>&): Assertion `vTxid.size() != 0' failed. unknown location(0): fatal error: in "merkleblock_tests/merkleblock_construct_from_txids_found": signal: SIGABRT (application abort requested) test/merkleblock_tests.cpp(18): last checkpoint: "merkleblock_construct_from_txids_found" entry. test/merkleblock_tests.cpp(18): Leaving test case "merkleblock_construct_from_txids_found"; testing time: 29477us test/merkleblock_tests.cpp(59): Entering test case "merkleblock_construct_from_txids_not_found" test_bitcoin: key.cpp:324: void ECC_Start(): Assertion `secp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "merkleblock_tests/merkleblock_construct_from_txids_not_found": signal: SIGABRT (application abort requested) test/merkleblock_tests.cpp(59): last checkpoint: "merkleblock_construct_from_txids_not_found" fixture entry. test/merkleblock_tests.cpp(59): Leaving test case "merkleblock_construct_from_txids_not_found"; testing time: 938us test/merkleblock_tests.cpp(12): Leaving test suite "merkleblock_tests"; testing time: 30449us Leaving test module "Bitcoin Test Suite"; testing time: 30539us *** 2 failures are detected in the test module "Bitcoin Test Suite"

miner_tests has an output of:

not getting exact errors

*** 2 failures are detected in the test module "Bitcoin Test Suite

pow_tests has an output of:

not getting exact errors

*** 1 failures are detected in the test module "Bitcoin Test Suite

rpc_tests has an output of:

not getting exact errors

*** 1 failures are detected in the test module "Bitcoin Test Suite

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/64639190-failed-tests-for-test_bitcoin?utm_campaign=plugin&utm_content=tracker%2F94169766&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F94169766&utm_medium=issues&utm_source=github). --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/64639190-failed-tests-for-test_bitcoin?utm_campaign=plugin&utm_content=tracker%2F94169766&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F94169766&utm_medium=issues&utm_source=github).
dskjkljdas commented 6 years ago

DoS_tests 1 error

test/DoS_tests.cpp(130): info: check node->fDisconnect == false has passed test/DoS_tests.cpp(138): error: in "DoS_tests/stale_tip_peer_management": check connman->GetTryNewOutboundPeer() has failed

bloom_tests 8 errors

test/bloom_tests.cpp(178): Entering test case "merkle_block_1" test_bitcoin: merkleblock.cpp:43: uint256 CPartialMerkleTree::CalcHash(int, unsigned int, const std::vector&): Assertion vTxid.size() != 0' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_1": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(178): last checkpoint: "merkle_block_1" entry. test/bloom_tests.cpp(178): Leaving test case "merkle_block_1"; testing time: 3331us test/bloom_tests.cpp(219): Entering test case "merkle_block_2" test_bitcoin: key.cpp:324: void ECC_Start(): Assertionsecp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_2": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(219): last checkpoint: "merkle_block_2" fixture entry. test/bloom_tests.cpp(219): Leaving test case "merkle_block_2"; testing time: 501us test/bloom_tests.cpp(274): Entering test case "merkle_block_2_with_update_none" test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_2_with_update_none": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(274): last checkpoint: "merkle_block_2_with_update_none" fixture entry. test/bloom_tests.cpp(274): Leaving test case "merkle_block_2_with_update_none"; testing time: 444us test/bloom_tests.cpp(326): Entering test case "merkle_block_3_and_serialize" test_bitcoin: key.cpp:324: void ECC_Start(): Assertionsecp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_3_and_serialize": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(326): last checkpoint: "merkle_block_3_and_serialize" fixture entry. test/bloom_tests.cpp(326): Leaving test case "merkle_block_3_and_serialize"; testing time: 439us test/bloom_tests.cpp(365): Entering test case "merkle_block_4" test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_4": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(365): last checkpoint: "merkle_block_4" fixture entry. test/bloom_tests.cpp(365): Leaving test case "merkle_block_4"; testing time: 446us test/bloom_tests.cpp(411): Entering test case "merkle_block_4_test_p2pubkey_only" test_bitcoin: key.cpp:324: void ECC_Start(): Assertionsecp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_4_test_p2pubkey_only": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(411): last checkpoint: "merkle_block_4_test_p2pubkey_only" fixture entry. test/bloom_tests.cpp(411): Leaving test case "merkle_block_4_test_p2pubkey_only"; testing time: 443us test/bloom_tests.cpp(434): Entering test case "merkle_block_4_test_update_none" test_bitcoin: key.cpp:324: void ECC_Start(): Assertion secp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/merkle_block_4_test_update_none": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(434): last checkpoint: "merkle_block_4_test_update_none" fixture entry. test/bloom_tests.cpp(434): Leaving test case "merkle_block_4_test_update_none"; testing time: 440us test/bloom_tests.cpp(462): Entering test case "rolling_bloom" test_bitcoin: key.cpp:324: void ECC_Start(): Assertionsecp256k1_context_sign == nullptr' failed. unknown location(0): fatal error: in "bloom_tests/rolling_bloom": signal: SIGABRT (application abort requested) test/bloom_tests.cpp(462): last checkpoint: "rolling_bloom" fixture entry. test/bloom_tests.cpp(462): Leaving test case "rolling_bloom"; testing time: 449us test/bloom_tests.cpp(24): Leaving test suite "bloom_tests"; testing time: 52421us Leaving test module "Bitcoin Test Suite"; testing time: 52496us

work in progress key_io_tests all 113 like >>

test/key_io_tests.cpp(113): error: in "key_io_tests/key_io_valid_gen": check address == exp_base58string has failed [b1NQZBNLLdsszztv9NS1gfKoyS2QKVJkFaY != 1JwMWBVLtiqtscbaRHai4pqHokhFCbtoB4] test/key_io_tests.cpp(113): error: in "key_io_tests/key_io_valid_gen": check address == exp_base58string has failed [bxydRZHpNjabQCBabi8EK3qothYRf47bSBn != 3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y] test/key_io_tests.cpp(113): error: in "key_io_tests/key_io_valid_gen": check address == exp_base58string has failed [n1HzRjG7URTPhGKNYLSUGh67Eo1tGngV5Yv != mizXiucXRCsEriQCHUkCqef9ph9qtPbZZ6] test/key_io_tests.cpp(113): error: in "key_io_tests/key_io_valid_gen": check address == exp_base58string has failed [nxj5VCHWsTiBakGRFqNDksryM3PLCV7S9NH != 2NEWDzHWwY5ZZ

key_tests

test/key_tests.cpp(71): error: in "key_tests/key_test1": check DecodeDestination(addr1) == CTxDestination(pubkey1.GetID()) has failed test/key_tests.cpp(72): error: in "key_tests/key_test1": check DecodeDestination(addr2) == CTxDestination(pubkey2.GetID()) has failed test/key_tests.cpp(73): error: in "key_tests/key_test1": check DecodeDestination(addr1C) == CTxDestination(pubkey1C.GetID()) has failed test/key_tests.cpp(74): error: in "key_tests/key_test1": check DecodeDestination(addr2C) == CTxDestination(pubkey2C.GetID()) has failed

main_tests

test/main_tests.cpp(58): error: in "main_tests/subsidy_limit_test": check nSum == CAmount{2099999997690000} has failed [397031247690000 != 2099999997690000] test/main_tests.cpp(48): Leaving test case "subsidy_limit_test"; testing time: 137665us

test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [1250000000 != 5000000000]

test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [1250000000 != 5000000000] test/main_tests.cpp(26): info: check nSubsidy <= nInitialSubsidy has passed test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [19531250 != 625000000] test/main_tests.cpp(26): info: check nSubsidy <= nInitialSubsidy has passed test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [1220703 != 9765625] test/main_tests.cpp(26): info: check nSubsidy <= nInitialSubsidy has passed test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [76293 != 610351] test/main_tests.cpp(26): info: check nSubsidy <= nInitialSubsidy has passed test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [4768 != 38146] test/main_tests.cpp(26): info: check nSubsidy <= nInitialSubsidy has passed test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [298 != 2384] test/main_tests.cpp(26): info: check nSubsidy <= nInitialSubsidy has passed test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [18 != 149] test/main_tests.cpp(26): info: check nSubsidy <= nInitialSubsidy has passed test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [1 != 9] test/main_tests.cpp(26): info: check nSubsidy <= nInitialSubsidy has passed

test/main_tests.cpp(27): error: in "main_tests/block_subsidy_test": check nSubsidy == nPreviousSubsidy / 2 has failed [1250000000 != 5000000000]

miner_tests

test/miner_tests.cpp(283): error: in "miner_tests/CreateNewBlock_validity": exception "std::runtime_error" raised as expected: validation on the raised exception through predicate "HasReason("bad-blk-sigops")" unknown location(0): fatal error: in "miner_tests/CreateNewBlock_validity": std::runtime_error: CreateNewBlock: TestBlockValidity failed: bad-txns-inputs-missingorspent, CheckTxInputs: inputs missing/spent (code 16)

pow_tests

test/pow_tests.cpp(50): error: in "pow_tests/get_next_work_pow_limit": check 0x1f07ffff == CalculateNextWorkRequired(bnAvg, nThisTime, nLastRetargetTime, params) has failed [520617983 != 520785754]

rpc_tests

unknown location(0): fatal error: in "rpc_tests/rpc_rawsign": std::runtime_error: Invalid Bitcoin address: 3HqAe9LtNBjnsfM4CyYaWTnvCaUYT7v4oZ

cryptozeny commented 5 years ago

same here

miner_tests

test/miner_tests.cpp(283): error: in "miner_tests/CreateNewBlock_validity": exception "std::runtime_error" raised as expected: validation on the raised exception through predicate "HasReason("bad-blk-sigops")"
unknown location(0): fatal error: in "miner_tests/CreateNewBlock_validity": std::runtime_error: CreateNewBlock: TestBlockValidity failed: bad-txns-inputs-missingorspent, CheckTxInputs: inputs missing/spent (code 16)