diff --git a/Zend/tests/concat_003.phpt b/Zend/tests/concat_003.phpt index 13c6fdc087b..dc22bae1a72 100644 --- a/Zend/tests/concat_003.phpt +++ b/Zend/tests/concat_003.phpt @@ -1,7 +1,10 @@ --TEST-- Concatenating many small strings should not slowdown allocations --SKIPIF-- - + --FILE-- - + --enable-debug --enable-maintainer-zts + CFLAGS='-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC' + LDFLAGS='-fsanitize=undefined,address' + runTestsParameters: --asan + timeoutInMinutes: 120 diff --git a/azure/job.yml b/azure/job.yml index a7267f11c3a..646faed7559 100644 --- a/azure/job.yml +++ b/azure/job.yml @@ -1,9 +1,12 @@ parameters: configurationName: '' configurationParameters: '' + runTestsParameters: '' + timeoutInMinutes: 60 jobs: - job: ${{ parameters.configurationName }} + timeoutInMinutes: ${{ parameters.timeoutInMinutes }} pool: vmImage: 'ubuntu-latest' steps: @@ -80,8 +83,11 @@ jobs: - template: test.yml parameters: configurationName: ${{ parameters.configurationName }} + runTestsParameters: ${{ parameters.runTestsParameters }} - template: test.yml parameters: configurationName: ${{ parameters.configurationName }} runTestsName: 'OpCache' - runTestsParameters: -d zend_extension=opcache.so -d opcache.enable_cli=1 + runTestsParameters: >- + ${{ parameters.runTestsParameters }} + -d zend_extension=opcache.so -d opcache.enable_cli=1 diff --git a/azure/lsan-suppressions.txt b/azure/lsan-suppressions.txt new file mode 100644 index 00000000000..5c2ee76e460 --- /dev/null +++ b/azure/lsan-suppressions.txt @@ -0,0 +1 @@ +leak:acommon::DictInfoList::elements diff --git a/ext/fileinfo/tests/cve-2014-3538-nojit.phpt b/ext/fileinfo/tests/cve-2014-3538-nojit.phpt index 2dc5ddbc5ee..0072ab20470 100644 --- a/ext/fileinfo/tests/cve-2014-3538-nojit.phpt +++ b/ext/fileinfo/tests/cve-2014-3538-nojit.phpt @@ -4,6 +4,8 @@ Bug #66731: file: extensive backtraking, with pcre.jit=0 diff --git a/ext/opcache/tests/log_verbosity_bug.phpt b/ext/opcache/tests/log_verbosity_bug.phpt index e23bb8758f5..a2c2f4f30af 100644 --- a/ext/opcache/tests/log_verbosity_bug.phpt +++ b/ext/opcache/tests/log_verbosity_bug.phpt @@ -12,7 +12,10 @@ opcache.file_cache_fallback=0 opcache.memory_consumption=999999999 opcache.log_verbosity_level=-1 --SKIPIF-- - + --FILE-- + --FILE-- --FILE-- --FILE-- --FILE-- + --FILE-- --FILE-- --FILE-- --INI-- opcache.optimization_level=0 diff --git a/sapi/phpdbg/tests/watch_002.phpt b/sapi/phpdbg/tests/watch_002.phpt index 52336c08d0b..ba2cad1abee 100644 --- a/sapi/phpdbg/tests/watch_002.phpt +++ b/sapi/phpdbg/tests/watch_002.phpt @@ -5,6 +5,9 @@ Test simple array watchpoint with replace if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --PHPDBG-- b 6 diff --git a/sapi/phpdbg/tests/watch_003.phpt b/sapi/phpdbg/tests/watch_003.phpt index e054b6f324f..ab6dc317a87 100644 --- a/sapi/phpdbg/tests/watch_003.phpt +++ b/sapi/phpdbg/tests/watch_003.phpt @@ -5,6 +5,9 @@ Test simple watchpoint with replace if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --PHPDBG-- b 6 diff --git a/sapi/phpdbg/tests/watch_004.phpt b/sapi/phpdbg/tests/watch_004.phpt index dcb37a49595..42e3fd3b268 100644 --- a/sapi/phpdbg/tests/watch_004.phpt +++ b/sapi/phpdbg/tests/watch_004.phpt @@ -5,6 +5,9 @@ Test detection of inline string manipulations on zval watch if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --INI-- opcache.optimization_level=0 diff --git a/sapi/phpdbg/tests/watch_005.phpt b/sapi/phpdbg/tests/watch_005.phpt index 0bd44c9a012..aacc158f617 100644 --- a/sapi/phpdbg/tests/watch_005.phpt +++ b/sapi/phpdbg/tests/watch_005.phpt @@ -5,6 +5,9 @@ Test proper watch comparisons when having multiple levels of indirection from a if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --PHPDBG-- b 3 diff --git a/sapi/phpdbg/tests/watch_006.phpt b/sapi/phpdbg/tests/watch_006.phpt index fa292005a49..5b5ca9ee57c 100644 --- a/sapi/phpdbg/tests/watch_006.phpt +++ b/sapi/phpdbg/tests/watch_006.phpt @@ -5,6 +5,9 @@ Test multiple watch elements pointing to the same watchpoint if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --PHPDBG-- b 4