Describe the issue
In src/rpc/blockchain.cpp, in getblockchaininfo(), there is a null pointer dereference accessing block->nHeight, since block is set to nullptr in case fPruneMode is true and chainActive.Tip() returns nullptr:
if (fPruneMode)
{
CBlockIndex *block = chainActive.Tip();
while (block && block->pprev && (block->pprev->nStatus & BLOCK_HAVE_DATA))
block = block->pprev;
obj.push_back(Pair("pruneheight", block->nHeight));
}
What version of bitcoin-core are you using?
commit 07c92b98e2a0a29d19b5ccdbbfa9addc1e80b306