Skip to content

Commit

Permalink
bitcoin-core: Temporarily disable AFL, fix build (#12152)
Browse files Browse the repository at this point in the history
It's broken anyway, so might as well give
#12142 (comment)
a try.

---------

Co-authored-by: MarcoFalke <[email protected]>
  • Loading branch information
maflcko and maflcko authored Jul 5, 2024
1 parent 0b6ffae commit e4951ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions projects/bitcoin-core/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#
################################################################################

# Print date to embed it into build logs
date

if [ "$SANITIZER" != "introspector" ]; then
# Temporarily skip this under introspector
$SRC/build_cryptofuzz.sh
Expand All @@ -26,6 +29,11 @@ cd $SRC/bitcoin-core/
# This will also force static builds
if [ "$ARCHITECTURE" = "i386" ]; then
export BUILD_TRIPLET="i686-pc-linux-gnu"

# Temp workaround
mkdir /usr/local/lib/clang/18/lib/linux
ln -s /usr/local/lib/clang/18/lib/i386-unknown-linux-gnu/libclang_rt.asan_static.a /usr/local/lib/clang/18/lib/linux/libclang_rt.asan_static-i386.a
ln -s /usr/local/lib/clang/18/lib/i386-unknown-linux-gnu/libclang_rt.asan.a /usr/local/lib/clang/18/lib/linux/libclang_rt.asan-i386.a
else
export BUILD_TRIPLET="x86_64-pc-linux-gnu"
fi
Expand Down
4 changes: 2 additions & 2 deletions projects/bitcoin-core/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homepage: "https://github.com/bitcoin/bitcoin"
homepage: "https://bitcoincore.org/"
main_repo: 'https://github.com/bitcoin/bitcoin.git'
language: c++
primary_contact: "[email protected]"
Expand All @@ -16,7 +16,7 @@ architectures:
- x86_64
- i386
fuzzing_engines:
# - afl # temporarily disabled to debug https://github.com/google/oss-fuzz/issues/12142#issuecomment-2204027194
# - centipede # temporarily disabled due to spurious "Step #22 - "build-check-centipede-none-x86_64": OSError: [Errno 28] No space left on device"
- libfuzzer
- honggfuzz
- afl

0 comments on commit e4951ed

Please sign in to comment.