Bug 1359328 - Updates for fuzzing taskcluster build
MozReview-Commit-ID: 1RDQYnGTE2s
--- a/browser/config/mozconfigs/linux64/nightly-fuzzing-asan
+++ b/browser/config/mozconfigs/linux64/nightly-fuzzing-asan
@@ -1,16 +1,16 @@
# We still need to build with debug symbols
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O2 -gline-tables-only"
# ASan specific options on Linux
ac_add_options --enable-valgrind
-. $topsrcdir/build/unix/mozconfig.asan
+. $topsrcdir/build/unix/mozconfig.fuzzing
ac_add_options --enable-fuzzing
export PKG_CONFIG_LIBDIR=/usr/lib64/pkgconfig:/usr/share/pkgconfig
. $topsrcdir/build/unix/mozconfig.gtk
# Package js shell.
export MOZ_PACKAGE_JSSHELL=1
new file mode 100644
--- /dev/null
+++ b/build/unix/mozconfig.fuzzing
@@ -0,0 +1,28 @@
+MOZ_AUTOMATION_L10N_CHECK=0
+
+. "$topsrcdir/build/mozconfig.common"
+
+# Use Clang as specified in manifest
+export CC="$topsrcdir/clang/bin/clang -fgnu89-inline -fsanitize-coverage=edge"
+export CXX="$topsrcdir/clang/bin/clang++ -fsanitize-coverage=edge"
+export LLVM_SYMBOLIZER="$topsrcdir/clang/bin/llvm-symbolizer"
+
+# Use a newer binutils, from the tooltool gcc package, if it's there
+if [ -e "$topsrcdir/gcc/bin/ld" ]; then
+ export CC="$CC -B $topsrcdir/gcc/bin"
+ export CXX="$CXX -B $topsrcdir/gcc/bin"
+fi
+
+# Enable ASan specific code and build workarounds
+ac_add_options --enable-address-sanitizer
+
+# Mandatory options required for ASan builds (both on Linux and Mac)
+export MOZ_DEBUG_SYMBOLS=1
+ac_add_options --enable-debug-symbols
+ac_add_options --disable-install-strip
+ac_add_options --disable-jemalloc
+ac_add_options --disable-crashreporter
+ac_add_options --disable-elf-hack
+ac_add_options --disable-profiling
+
+. "$topsrcdir/build/unix/mozconfig.stdcxx"
--- a/taskcluster/ci/build/linux.yml
+++ b/taskcluster/ci/build/linux.yml
@@ -257,17 +257,17 @@ linux64-asan/opt:
linux64-asan-fuzzing/opt:
description: "Linux64 Fuzzing Opt ASAN"
index:
product: firefox
job-name: linux64-fuzzing-asan-opt
treeherder:
platform: linux64/asan
- symbol: tc(Bo)
+ symbol: tc(Bof)
worker-type: aws-provisioner-v1/gecko-{level}-b-linux
worker:
implementation: docker-worker
max-run-time: 36000
run:
using: mozharness
actions: [get-secrets build generate-build-stats check-test update]
config: