Corrupt block found #26983

issue cryptoquick openend this issue on January 28, 2023
  1. cryptoquick commented at 0:18 am on January 28, 2023: none

    Expected behavior

    I had an issue doing an IBD using this command: bitcoind -server -txindex=1 -par=15 -dbcache=16384

    Actual behavior

    It goes for a bit, but then when it gets to this block, it fails.

     02023-01-28T00:10:20Z UpdateTip: new best=000000000000000661ca32dcfffcfbb4a290c86ccdef4e5444a6bbc45d367ade height=269433 version=0x00000002 log2_work=73.842515 tx=26980926 date='2013-11-13T15:58:39Z' progress=0.033783 cache=1038.3MiB(7715007txo)
     12023-01-28T00:10:20Z *** Corrupt block found indicating potential hardware failure; shutting down
     22023-01-28T00:10:20Z Error: A fatal internal error occurred, see debug.log for details
     3Error: A fatal internal error occurred, see debug.log for details
     42023-01-28T00:10:20Z ERROR: ConnectTip: ConnectBlock 0000000000000000f2fae0af54fde656fb542eb80728d941ef4f92ba08c5da16 failed, bad-txnmrklroot, hashMerkleRoot mismatch
     52023-01-28T00:10:20Z tor: Thread interrupt
     62023-01-28T00:10:20Z Shutdown: In progress...
     72023-01-28T00:10:20Z torcontrol thread exit
     82023-01-28T00:10:20Z Loaded 0 blocks from external file in 360619ms
     92023-01-28T00:10:20Z Shutdown requested. Exit ThreadImport
    102023-01-28T00:10:20Z loadblk thread exit
    112023-01-28T00:10:20Z addcon thread exit
    122023-01-28T00:10:21Z net thread exit
    132023-01-28T00:10:21Z txindex thread exit
    142023-01-28T00:10:21Z msghand thread exit
    152023-01-28T00:10:25Z opencon thread exit
    162023-01-28T00:10:25Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat started
    172023-01-28T00:10:25Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat completed (0.00s)
    182023-01-28T00:10:25Z scheduler thread exit
    192023-01-28T00:10:33Z Shutdown: done
    

    After trying to start bitcoind again, I get this error:

    02023-01-28T00:11:47Z *** Corrupt block found indicating potential hardware failure; shutting down
    12023-01-28T00:11:47Z Error: A fatal internal error occurred, see debug.log for details
    2Error: A fatal internal error occurred, see debug.log for details
    32023-01-28T00:11:47Z ERROR: ConnectTip: ConnectBlock 0000000000000000f2fae0af54fde656fb542eb80728d941ef4f92ba08c5da16 failed, bad-txnmrklroot, hashMerkleRoot mismatch
    

    To reproduce

    I can reliably reproduce this, it’s just on IBD on mainnet.

    System information

    Bitcoin Core version v24.0.1 (release build)

    Garuda Linux, Ryzen 5950, 128GB DDR4, Sabrent 4TB PCIe 4 NVMe

  2. cryptoquick added the label Bug on Jan 28, 2023
  3. maflcko added the label Data corruption on Jan 28, 2023
  4. maflcko removed the label Bug on Jan 28, 2023
  5. maflcko added the label Block storage on Jan 28, 2023
  6. maflcko commented at 9:28 am on January 28, 2023: member

    Bitcoin Core makes heavy use of CPU, RAM and disk IO. Hardware defects might only become visible when running Bitcoin Core. You might want to check your hardware for defects.

    • memtest86 to check your RAM
    • to check the CPU behaviour under load, use linpack or Prime95
    • to test your storage device use smartctl or CrystalDiskInfo

    Source: https://bitcoin.stackexchange.com/a/12206

  7. russeree commented at 11:11 am on January 30, 2023: contributor

    I would look into the hardware you are using and the stability. Tested with your settings and I reached the chain tip without issue.

    Note maybe rm -rf the contents of the blocks and chainstate dirs and start from scratch.

  8. maflcko commented at 9:42 am on January 31, 2023: member
    Not sure what to do here. Let us know if you have any other questions.
  9. maflcko closed this on Jan 31, 2023

  10. bitcoin locked this on Jan 31, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-30 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me