Steps to reproduce:
- Install fresh Ubuntu Jammy operating system
export DEBIAN_FRONTEND=noninteractive && apt update && apt install curl wget htop git vim ccache -y && git clone https://github.com/bitcoin/bitcoin.git bitcoin-core && cd bitcoin-core && apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq libevent-dev libboost-dev libsqlite3-dev libdb++-dev clang llvm libc++-dev libc++abi-dev -y && ./autogen.sh && ./configure CC='clang -flto' CXX='clang++ -flto' --enable-fuzz --with-sanitizers=fuzzer && make -j$(nproc)
Output:
0 AR minisketch/libminisketch.a
1 AR libbitcoin_wallet.a
2 CXXLD test/fuzz/fuzz
3clang: error: unable to execute command: Segmentation fault (core dumped)
The same does not happen when compiling “normally” (dropping --with-sanitizers=fuzzer
).