@@ -548,6 +548,9 @@ jobs:
548
548
branch : ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
549
549
name : " ${{ matrix.branch.name }}_OPCACHE_VARIATION"
550
550
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
551
554
steps :
552
555
- name : git checkout
553
556
uses : actions/checkout@v4
@@ -562,6 +565,8 @@ jobs:
562
565
with :
563
566
configurationParameters : >-
564
567
--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"
565
570
- name : make
566
571
run : make -j$(/usr/bin/nproc) >/dev/null
567
572
- name : make install
@@ -575,13 +580,17 @@ jobs:
575
580
-d zend_extension=opcache.so
576
581
-d opcache.enable_cli=1
577
582
--file-cache-prime
583
+ --asan
584
+ Zend/tests/property_hooks
578
585
- name : Test File Cache (prime shm, use shm)
579
586
uses : ./.github/actions/test-linux
580
587
with :
581
588
runTestsParameters : >-
582
589
-d zend_extension=opcache.so
583
590
-d opcache.enable_cli=1
584
591
--file-cache-use
592
+ --asan
593
+ Zend/tests/property_hooks
585
594
- name : Test File Cache (prime shm, use file)
586
595
uses : ./.github/actions/test-linux
587
596
with :
@@ -590,6 +599,8 @@ jobs:
590
599
-d opcache.enable_cli=1
591
600
--file-cache-use
592
601
-d opcache.file_cache_only=1
602
+ --asan
603
+ Zend/tests/property_hooks
593
604
- name : Test File Cache Only (prime)
594
605
uses : ./.github/actions/test-linux
595
606
with :
@@ -598,6 +609,8 @@ jobs:
598
609
-d opcache.enable_cli=1
599
610
--file-cache-prime
600
611
-d opcache.file_cache_only=1
612
+ --asan
613
+ Zend/tests/property_hooks
601
614
- name : Test File Cache Only (use)
602
615
uses : ./.github/actions/test-linux
603
616
with :
@@ -606,6 +619,8 @@ jobs:
606
619
-d opcache.enable_cli=1
607
620
--file-cache-use
608
621
-d opcache.file_cache_only=1
622
+ --asan
623
+ Zend/tests/property_hooks
609
624
- name : Verify generated files are up to date
610
625
uses : ./.github/actions/verify-generated-files
611
626
- name : Notify Slack
0 commit comments