<!-- 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 -->

Bitcoind takes up 100% cpu, log file not written to. Even bitcoind --help isn't working.

**Expected behavior**

Run normally
<!--- What behavior did you expect? -->

**Actual behavior**

100% cpu usage, no output
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

**To reproduce**

Compile current master and try to run bitcoind
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->


**System information**

<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
latest master
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
Debian Buster
VM with 28 Xeon Platinum cores, 64GB RAM, SSD storage

<!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

<!-- Any extra information that might be useful in the debugging process. -->
<!--- 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. -->

Compiled  from  v0.19.0.1 tag and it's working.
{
    struct stat sb = {};
    int f = open(path, O_RDONLY);
    size_t total = 0;
    if (f != -1) {
        unsigned char fbuf[4096];
        int n;
        hasher.Write((const unsigned char*)&f, sizeof(f));
        if (fstat(f, &sb) == 0) hasher << sb;
        do {
            n = read(f, fbuf, sizeof(fbuf));
            if (n > 0) hasher.Write(fbuf, n);
            total += n;
            
        } while (n == sizeof(fbuf) && total < 1048576); 
        close(f);
    }
}
void AddPath(CSHA512& hasher, const char *path)
{
    struct stat sb = {};
    if (stat(path, &sb) == 0) {
        hasher.Write((const unsigned char*)path, strlen(path) + 1);
        hasher << sb;
    }
}
#endif
#if HAVE_SYSCTL
template<int... S>
void AddSysctl(CSHA512& hasher)