summaryrefslogtreecommitdiff
path: root/azure/msan_job.yml
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-05-20 15:21:01 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-05-20 16:46:28 +0200
commite852944f630a1e3df16148b308c116590057663d (patch)
tree0a44429740c66d4175ead76ca1c9e6a28aef4dd1 /azure/msan_job.yml
parentc85ded763222295f9d24f8550b9428259bc36e86 (diff)
downloadphp-git-e852944f630a1e3df16148b308c116590057663d.tar.gz
Add --enable-memory-sanitizer flag
This flag enabled msan late in the pipeline, so that it does not affect configure checks. Otherwise we get a false positive report for openpty availability without -lutil, which will then result in infinite recursion if actually called. This also sets origin tracking to 2, so bump the timeout to 90 minutes.
Diffstat (limited to 'azure/msan_job.yml')
-rw-r--r--azure/msan_job.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/azure/msan_job.yml b/azure/msan_job.yml
index 3c58fa7c7a..399a664f5e 100644
--- a/azure/msan_job.yml
+++ b/azure/msan_job.yml
@@ -14,8 +14,7 @@ jobs:
- script: |
export CC=clang
export CXX=clang++
- export CFLAGS="-fsanitize=memory -DZEND_TRACK_ARENA_ALLOC"
- export LDFLAGS="-fsanitize=memory"
+ export CFLAGS="-DZEND_TRACK_ARENA_ALLOC"
./buildconf --force
# msan requires all used libraries to be instrumented,
# so we should avoiding linking against anything but libc here
@@ -50,6 +49,7 @@ jobs:
--enable-ftp \
--enable-zend-test \
--enable-werror \
+ --enable-memory-sanitizer \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d
displayName: 'Configure Build'