@@ -31,10 +31,12 @@ jobs:
3131 export ARCH="64"
3232 if [ ${{ matrix.pattern }} == 0 ]; then
3333 export SHARED="ON"
34+ export SAN="-fsanitize=address -fno-omit-frame-pointer"
3435 export CHAR_SIGN="unsigned"
3536 fi
3637 if [ ${{ matrix.pattern }} == 1 ]; then
3738 export SHARED="ON"
39+ export SAN="-fsanitize=address -fno-omit-frame-pointer"
3840 export CHAR_SIGN="signed"
3941 fi
4042 if [ ${{ matrix.pattern }} == 2 ]; then
6163 cd ..
6264
6365 # build and test
64- CMAKE_CXX_COMPILER="${CXX}" CMAKE_C_COMPILER="${CC}" GTEST_ROOT="${BASE}/usr" CFLAGS="-Werror -g -fsanitize=undefined" CXXFLAGS="-Werror -g -fsanitize=undefined" ${ACTION}
66+ CMAKE_CXX_COMPILER="${CXX}" CMAKE_C_COMPILER="${CC}" GTEST_ROOT="${BASE}/usr" CFLAGS="-Werror -g -fsanitize=undefined -fno-sanitize-recover=all " CXXFLAGS="-Werror -g -ggdb3 - fsanitize=undefined -fno-sanitize-recover=all " ${ACTION}
6567
6668 linux :
6769 runs-on : ubuntu-18.04
8789 ACTION="ci/build_cmake.sh"
8890 export ARCH="64"
8991 export SHARED="ON"
92+ export SAN="-fsanitize=address -fno-omit-frame-pointer"
9093 export CHAR_SIGN="unsigned"
9194 fi
9295 if [ ${{ matrix.pattern }} == 1 ]; then
9598 ACTION="ci/build_cmake.sh"
9699 export ARCH="32"
97100 export SHARED="ON"
101+ export SAN="-fsanitize=address -fno-omit-frame-pointer"
98102 export CHAR_SIGN="signed"
99103 fi
100104 if [ ${{ matrix.pattern }} == 2 ]; then
@@ -103,6 +107,7 @@ jobs:
103107 ACTION="ci/build_cmake.sh"
104108 export ARCH="64"
105109 export SHARED="ON"
110+ export SAN="-fsanitize=address -fno-omit-frame-pointer"
106111 export CHAR_SIGN="signed"
107112 fi
108113 if [ ${{ matrix.pattern }} == 3 ]; then
@@ -119,6 +124,7 @@ jobs:
119124 ACTION="ci/build_cmake.sh"
120125 export ARCH="64"
121126 export SHARED="ON"
127+ export SAN="-fsanitize=address -fno-omit-frame-pointer"
122128 export CHAR_SIGN="signed"
123129 fi
124130 if [ ${{ matrix.pattern }} == 5 ]; then
@@ -127,6 +133,7 @@ jobs:
127133 ACTION="ci/build_cmake.sh"
128134 export ARCH="32"
129135 export SHARED="ON"
136+ export SAN="-fsanitize=address -fno-omit-frame-pointer"
130137 export CHAR_SIGN="unsigned"
131138 fi
132139 if [ ${{ matrix.pattern }} == 6 ]; then
@@ -135,6 +142,7 @@ jobs:
135142 ACTION="ci/build_cmake.sh"
136143 export ARCH="64"
137144 export SHARED="ON"
145+ export SAN="-fsanitize=address -fno-omit-frame-pointer"
138146 export CHAR_SIGN="unsigned"
139147 fi
140148 if [ ${{ matrix.pattern }} == 7 ]; then
@@ -172,7 +180,7 @@ jobs:
172180 fi
173181
174182 # build and test
175- CMAKE_CXX_COMPILER="${CXX}" CMAKE_C_COMPILER="${CC}" GTEST_ROOT="${BASE}/usr" CFLAGS="-Werror -g -fsanitize=undefined" CXXFLAGS="-Werror -g -fsanitize=undefined" MSGPACK_SAN="${SAN} " ${ACTION}
183+ CMAKE_CXX_COMPILER="${CXX}" CMAKE_C_COMPILER="${CC}" GTEST_ROOT="${BASE}/usr" CFLAGS="-Werror -g -fsanitize=undefined -fno-sanitize-recover=all " CXXFLAGS="-Werror -g -ggdb3 - fsanitize=undefined -fno-sanitize-recover=all " ${ACTION}
176184
177185 windows :
178186 runs-on : windows-2019
0 commit comments