Skip to content

Commit 4e0be13

Browse files
nielsdosiluuu1994
authored andcommitted
Use Clang 16 to work around LSAN TLS crashes
Backport from master. Closes GH-14569
1 parent bc32a6b commit 4e0be13

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/push.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ jobs:
8181
uses: actions/checkout@v4
8282
- name: apt
8383
uses: ./.github/actions/apt-x64
84+
- name: LLVM 16 (ASAN-only)
85+
if: ${{ matrix.asan }}
86+
run: |
87+
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y lsb-release wget software-properties-common gnupg
88+
wget https://apt.llvm.org/llvm.sh
89+
chmod u+x llvm.sh
90+
sudo ./llvm.sh 16
8491
- name: System info
8592
run: |
8693
echo "::group::Show host CPU info"
@@ -112,7 +119,7 @@ jobs:
112119
configurationParameters: >-
113120
--${{ matrix.debug && 'enable' || 'disable' }}-debug
114121
--${{ matrix.zts && 'enable' || 'disable' }}-zts
115-
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address" CC=clang CXX=clang++ --disable-opcache-jit' || '' }}
122+
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address" CC=clang-16 CXX=clang++-16 --disable-opcache-jit' || '' }}
116123
skipSlow: ${{ matrix.asan }}
117124
- name: make
118125
run: make -j$(/usr/bin/nproc) >/dev/null

0 commit comments

Comments
 (0)