New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault when compiling with libfuzzer and lto (x86_64) #25961
Comments
Likely unrelated, but interestingly, with clang-12 it always fails and prints
|
clang-13 seems to be working 🤷♂️ |
Going back to clang-14 and using different linkers:
lld error:
|
I think this might be a resource, or other local issue, as I can't reproduce the failure using the steps outlined in the op. One suggestion I'd make would be to use |
I was using 16 GB of RAM. Do you have more than that? |
The machine I'm using has 32GB, but docker should be limited to only using 15GB. Will test further. |
Still happening with 32GB of RAM and 128GB of swap. Let me try a different CPU ...
|
Have recreated the issue on x86_64 linux hardware, using LLVM 14, but still not on aarch64. |
Yes, this works on aarch64 for me as well. |
Trying a depends build seems to work fine as well:
Edit: The same command with Edit2: The same command with
|
clang-16 (16.0.0-++20220831042109+45c1ce321dce-1 |
Not sure what to do here. This is almost certainly a compiler bug, given that the behaviour is reproducible among some versions of clang, but not others. |
Steps to reproduce:
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:
The same does not happen when compiling "normally" (dropping
--with-sanitizers=fuzzer
).The text was updated successfully, but these errors were encountered: