<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
Bitcoin Core crashed while trying to roll back blocks.
<!--- What behavior did you expect? -->
Not a crash.
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
2019-08-20T03:41:29Z UpdateTip: new best=000000000000000000183765072911fb00b2fd72d176f475a94af7c4c1699f4a height=590902 version=0x2000e000 log2_work=90.98411 tx=446793093 date='2019-08-20T03:41:46Z' progress=1.000000 cache=34.9MiB(53286txo) warning='46 of last 100 blocks have unexpected version' 2019-08-20T03:41:57Z Unable to open file E:\Bitcoin\blocks\rev01763.dat 2019-08-20T03:41:57Z ERROR: UndoWriteToDisk: OpenUndoFile failed 2019-08-20T03:41:57Z *** Failed to write undo data 2019-08-20T03:41:57Z Error: Error: A fatal internal error occurred, see debug.log for details
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
Can't reliably reproduce.
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
Github - 0.18.0
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
Windows - hard drive
<!-- For the GUI-related issue on Linux provide names and versions of a distro, a desktop environment and a graphical shell (if relevant). -->
<!-- Any extra information that might be useful in the debugging process. -->
This was after running a full node for a few hours to around a day.
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->
2019-08-20T03:28:55Z Pre-allocating up to position 0xb00000 in rev01763.dat 2019-08-20T03:28:55Z UpdateTip: new best=000000000000000000185852aa4776072a1c49c8c0f9bdb44f487be6d4991853 height=590901 version=0x3fffe000 log2_work=90.984084 tx=446790525 date='2019-08-20T03:28:38Z' progress=1.000000 cache=33.9MiB(44694txo) warning='45 of last 100 blocks have unexpected version' 2019-08-20T03:41:29Z UpdateTip: new best=000000000000000000183765072911fb00b2fd72d176f475a94af7c4c1699f4a height=590902 version=0x2000e000 log2_work=90.98411 tx=446793093 date='2019-08-20T03:41:46Z' progress=1.000000 cache=34.9MiB(53286txo) warning='46 of last 100 blocks have unexpected version' 2019-08-20T03:41:57Z Unable to open file E:\Bitcoin\blocks\rev01763.dat 2019-08-20T03:41:57Z ERROR: UndoWriteToDisk: OpenUndoFile failed 2019-08-20T03:41:57Z *** Failed to write undo data 2019-08-20T03:41:57Z Error: Error: A fatal internal error occurred, see debug.log for details 2019-08-20T04:01:56Z socket sending timeout: 1201s 2019-08-20T04:01:58Z socket sending timeout: 1201s 2019-08-20T12:32:12Z ERROR: ConnectTip: ConnectBlock 000000000000000000107e5f02c81dfef51b81afff607c806213e7a855aca94d failed, Failed to write undo data (code 0) 2019-08-20T12:32:12Z ERROR: ProcessNewBlock: ActivateBestChain failed (Failed to write undo data (code 0)) 2019-08-20T12:32:12Z Potential stale tip detected, will try using extra outbound peer (last tip update: 31843 seconds ago) 2019-08-20T12:32:12Z tor: Thread interrupt 2019-08-20T12:32:12Z opencon thread exit 2019-08-20T12:32:12Z addcon thread exit 2019-08-20T12:32:12Z Shutdown: In progress... 2019-08-20T12:32:12Z torcontrol thread exit 2019-08-20T12:32:12Z msghand thread exit 2019-08-20T12:32:12Z net thread exit 2019-08-20T12:32:13Z scheduler thread interrupt 2019-08-20T12:32:14Z Dumped mempool: 0.001s to copy, 0.161999s to dump 2019-08-20T12:32:15Z [default wallet] Releasing wallet 2019-08-20T12:32:15Z Shutdown: done 2019-08-20T19:59:24Z