Skip to content

Commit 395f0b4

Browse files
committed
Test opcache file cache with asan
1 parent 3ca0f5c commit 395f0b4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ jobs:
548548
branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
549549
name: "${{ matrix.branch.name }}_OPCACHE_VARIATION"
550550
runs-on: ubuntu-${{ matrix.branch.version.minor >= 3 && '22.04' || '20.04' }}
551+
env:
552+
ASAN_OPTIONS: exitcode=139
553+
UBSAN_OPTIONS: print_stacktrace=1
551554
steps:
552555
- name: git checkout
553556
uses: actions/checkout@v4
@@ -562,6 +565,8 @@ jobs:
562565
with:
563566
configurationParameters: >-
564567
--enable-debug --disable-zts
568+
CFLAGS="-fsanitize=undefined,address -fno-sanitize-recover -fno-omit-frame-pointer -DZEND_TRACK_ARENA_ALLOC"
569+
LDFLAGS="-fsanitize=undefined,address"
565570
- name: make
566571
run: make -j$(/usr/bin/nproc) >/dev/null
567572
- name: make install
@@ -575,13 +580,17 @@ jobs:
575580
-d zend_extension=opcache.so
576581
-d opcache.enable_cli=1
577582
--file-cache-prime
583+
--asan
584+
Zend/tests/property_hooks
578585
- name: Test File Cache (prime shm, use shm)
579586
uses: ./.github/actions/test-linux
580587
with:
581588
runTestsParameters: >-
582589
-d zend_extension=opcache.so
583590
-d opcache.enable_cli=1
584591
--file-cache-use
592+
--asan
593+
Zend/tests/property_hooks
585594
- name: Test File Cache (prime shm, use file)
586595
uses: ./.github/actions/test-linux
587596
with:
@@ -590,6 +599,8 @@ jobs:
590599
-d opcache.enable_cli=1
591600
--file-cache-use
592601
-d opcache.file_cache_only=1
602+
--asan
603+
Zend/tests/property_hooks
593604
- name: Test File Cache Only (prime)
594605
uses: ./.github/actions/test-linux
595606
with:
@@ -598,6 +609,8 @@ jobs:
598609
-d opcache.enable_cli=1
599610
--file-cache-prime
600611
-d opcache.file_cache_only=1
612+
--asan
613+
Zend/tests/property_hooks
601614
- name: Test File Cache Only (use)
602615
uses: ./.github/actions/test-linux
603616
with:
@@ -606,6 +619,8 @@ jobs:
606619
-d opcache.enable_cli=1
607620
--file-cache-use
608621
-d opcache.file_cache_only=1
622+
--asan
623+
Zend/tests/property_hooks
609624
- name: Verify generated files are up to date
610625
uses: ./.github/actions/verify-generated-files
611626
- name: Notify Slack

0 commit comments

Comments
 (0)