Skip to content

Commit 6d90f6c

Browse files
YuriUfimtsevmrbean-bremen
authored andcommitted
Add sanitizers
1 parent c09d033 commit 6d90f6c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ jobs:
5353
echo ======= SYSTEM INFO ========
5454
uname -a; gcc --version | grep "gcc"; python3 --version; qmake --version
5555
echo ============================
56-
qmake -r PythonQt.pro CONFIG+=release CONFIG+=sanitizer CONFIG+=sanitize_undefined \
56+
qmake -r PythonQt.pro CONFIG+=release CONFIG+=force_debug_info \
57+
CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \
5758
PYTHON_VERSION=$(python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) \
5859
PYTHON_DIR=$(which python3 | xargs dirname | xargs dirname)
5960
make -j 2
60-
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
61+
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_leaks=0:detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
6162
make check TESTARGS="-platform offscreen"
6263
6364
- name: Generate Wrappers
@@ -66,6 +67,7 @@ jobs:
6667
mkdir /usr/include/qt5; ln -s /usr/include/x86_64-linux-gnu/qt5 /usr/include/qt5/include
6768
export QTDIR=/usr/include/qt5
6869
cd generator
70+
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_leaks=0:detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
6971
./pythonqt_generator
7072
7173
- name: Upload Wrappers
@@ -196,20 +198,21 @@ jobs:
196198
for i in "python${{ steps.versions.outputs.PYTHON_VERSION_SHORT }}-embed" "python${{ steps.versions.outputs.PYTHON_VERSION_SHORT }}" \
197199
"python${PYTHON_VERSION_MAJOR}-embed" "python${PYTHON_VERSION_MAJOR}"
198200
do if pkg-config --exists "$i"; then PYTHON_PKGCONFIG_NAME="$i"; break; fi; done
199-
qmake CONFIG+=${{ matrix.configuration }} CONFIG+=sanitizer CONFIG+=sanitize_undefined \
201+
qmake CONFIG+=${{ matrix.configuration }} CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \
200202
PYTHON_VERSION=${{ steps.versions.outputs.PYTHON_VERSION_SHORT }} \
201203
PYTHON_DIR="$pythonLocation" \
202204
PKGCONFIG+=$PYTHON_PKGCONFIG_NAME \
203205
-r PythonQt.pro
204206
make -j 2
205-
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
207+
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_leaks=0:detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
206208
make check TESTARGS="-platform offscreen"
207209
208210
- name: Generate Wrappers
209211
if: ${{ contains(matrix.configuration, 'release') }}
210212
run: |
211213
cd generator
212214
# workaround to allow to find the Qt include dirs for installed standard qt packages
215+
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_leaks=0:detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
213216
QTDIR=-UNDEFINED- ./pythonqt_generator --include-paths=$Qt5_Dir/lib
214217
215218
- name: Upload Wrappers

0 commit comments

Comments
 (0)