mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Use Clang 16 to work around LSAN TLS crashes (#12496)
This commit is contained in:
10
.github/workflows/push.yml
vendored
10
.github/workflows/push.yml
vendored
@@ -73,13 +73,17 @@ jobs:
|
|||||||
asan: true
|
asan: true
|
||||||
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}"
|
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}"
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
container:
|
|
||||||
image: ${{ matrix.asan && 'ubuntu:23.04' || null }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: apt
|
- name: apt
|
||||||
uses: ./.github/actions/apt-x64
|
uses: ./.github/actions/apt-x64
|
||||||
|
- name: LLVM 16 (ASAN-only)
|
||||||
|
if: ${{ matrix.asan }}
|
||||||
|
run: |
|
||||||
|
wget https://apt.llvm.org/llvm.sh
|
||||||
|
chmod u+x llvm.sh
|
||||||
|
sudo ./llvm.sh 16
|
||||||
- name: System info
|
- name: System info
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Show host CPU info"
|
echo "::group::Show host CPU info"
|
||||||
@@ -110,7 +114,7 @@ jobs:
|
|||||||
configurationParameters: >-
|
configurationParameters: >-
|
||||||
--${{ matrix.debug && 'enable' || 'disable' }}-debug
|
--${{ matrix.debug && 'enable' || 'disable' }}-debug
|
||||||
--${{ matrix.zts && 'enable' || 'disable' }}-zts
|
--${{ matrix.zts && 'enable' || 'disable' }}-zts
|
||||||
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address" CC=clang CXX=clang++ --disable-opcache-jit' || '' }}
|
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address" CC=clang-16 CXX=clang++-16 --disable-opcache-jit' || '' }}
|
||||||
skipSlow: ${{ matrix.asan }}
|
skipSlow: ${{ matrix.asan }}
|
||||||
- name: make
|
- name: make
|
||||||
run: make -j$(/usr/bin/nproc) >/dev/null
|
run: make -j$(/usr/bin/nproc) >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user