I had -reindex specified as a leftover from some tests with -txindex and because of the new db directory naming I cleaned my datadir to start an IDB. That case crashed my Qt client right after showing the UI.
Qt: specifiying -reindex with empty datadir leads to crash #2239
issue Diapolo opened this issue on January 30, 2013-
Diapolo commented at 1:02 PM on January 30, 2013: none
-
Diapolo commented at 2:36 PM on January 30, 2013: none
Cause is, that an empty data-dir contains no /blocks/ and no block-files at all but we set fReindex = false not till the import thread is running and fails calling
OpenBlockFile(). I guess this is not very nice for bitcoind also. -
gavinandresen commented at 7:38 PM on January 30, 2013: contributor
Can't reproduce in bitcoind.
In Bitcoin-Qt, the crash is pindexBest being null in:
49 QDateTime ClientModel::getLastBlockDate() const 50 { 51 return QDateTime::fromTime_t(pindexBest->GetBlockTime()); 52 }
-
gavinandresen commented at 11:33 PM on January 30, 2013: contributor
Fix pulled.
- gavinandresen closed this on Jan 30, 2013
- MarcoFalke locked this on Sep 8, 2021
Contributors
Labels
Milestone
0.8.0