Skip to content

Commit f9534f4

Browse files
jbachorikclaude
andcommitted
Explicitly install sanitizer runtime libraries
The previous fix installed gcc/g++ but Ubuntu's base gcc package doesn't include sanitizer runtime libraries. This update explicitly installs: - libasan6/libasan5 (AddressSanitizer runtime) - libtsan2/libtsan0 (ThreadSanitizer runtime) Uses fallback for different Ubuntu versions (22.04 vs 24.04). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 1fbeee9 commit f9534f4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test_workflow.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ jobs:
6868
sudo apt-get install -y libc6-dbg
6969
# Install GCC with sanitizer support (provides libasan, libtsan for asan/tsan builds)
7070
# Even though clang is the primary compiler, the build falls back to gcc's sanitizer libs
71-
sudo apt-get install -y gcc g++
71+
# Install both gcc and the sanitizer runtime libraries explicitly
72+
sudo apt-get install -y gcc g++ libasan6 libtsan2 || sudo apt-get install -y gcc g++ libasan5 libtsan0
7273
if [[ ${{ matrix.java_version }} =~ "-zing" ]]; then
7374
sudo apt-get install -y g++-9 gcc-9
7475
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9
@@ -305,7 +306,8 @@ jobs:
305306
# Install debug symbols for system libraries
306307
sudo apt install -y libc6-dbg
307308
# Ensure gcc/g++ are installed for sanitizer support
308-
sudo apt install -y gcc g++
309+
# Install both gcc and the sanitizer runtime libraries explicitly
310+
sudo apt install -y gcc g++ libasan6 libtsan2 || sudo apt install -y gcc g++ libasan5 libtsan0
309311
if [[ ${{ matrix.java_version }} =~ "-zing" ]]; then
310312
sudo apt -y install g++-9 gcc-9
311313
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9

0 commit comments

Comments
 (0)