|
63 | 63 | - env: {BUILD: distcheck, WITH_VALGRIND: no, CTIMETEST: no, BENCH: no} |
64 | 64 | - env: {CPPFLAGS: -DDETERMINISTIC} |
65 | 65 | - env: {CFLAGS: -O0, CTIMETEST: no} |
66 | | - - env: |
67 | | - CFLAGS: "-fsanitize=undefined -fno-omit-frame-pointer" |
68 | | - LDFLAGS: "-fsanitize=undefined -fno-omit-frame-pointer" |
69 | | - UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1" |
70 | | - ASM: x86_64 |
71 | | - ECDH: yes |
72 | | - RECOVERY: yes |
73 | | - EXPERIMENTAL: yes |
74 | | - SCHNORRSIG: yes |
75 | | - CTIMETEST: no |
76 | 66 | - env: { ECMULTGENPRECISION: 2 } |
77 | 67 | - env: { ECMULTGENPRECISION: 8 } |
78 | | - - env: |
79 | | - RUN_VALGRIND: yes |
80 | | - ASM: x86_64 |
81 | | - ECDH: yes |
82 | | - RECOVERY: yes |
83 | | - EXPERIMENTAL: yes |
84 | | - SCHNORRSIG: yes |
85 | | - EXTRAFLAGS: "--disable-openssl-tests" |
86 | | - BUILD: |
87 | 68 | matrix: |
88 | 69 | - env: |
89 | 70 | CC: gcc |
@@ -262,3 +243,48 @@ task: |
262 | 243 | test_script: |
263 | 244 | - ./ci/cirrus.sh |
264 | 245 | << : *CAT_LOGS |
| 246 | + |
| 247 | +# Sanitizers |
| 248 | +task: |
| 249 | + container: |
| 250 | + dockerfile: ci/linux-debian.Dockerfile |
| 251 | + cpu: 1 |
| 252 | + memory: 1G |
| 253 | + env: |
| 254 | + ECDH: yes |
| 255 | + RECOVERY: yes |
| 256 | + EXPERIMENTAL: yes |
| 257 | + SCHNORRSIG: yes |
| 258 | + CTIMETEST: no |
| 259 | + EXTRAFLAGS: "--disable-openssl-tests" |
| 260 | + matrix: |
| 261 | + - name: "Valgrind (memcheck)" |
| 262 | + env: |
| 263 | + RUN_VALGRIND: yes |
| 264 | + - name: "UBSan, ASan, LSan" |
| 265 | + env: |
| 266 | + CFLAGS: "-fsanitize=undefined,address" |
| 267 | + CFLAGS_FOR_BUILD: "-fsanitize=undefined,address" |
| 268 | + UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1" |
| 269 | + ASAN_OPTIONS: "strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1" |
| 270 | + LSAN_OPTIONS: "use_unaligned=1" |
| 271 | + # Try to cover many configurations with just a tiny matrix. |
| 272 | + matrix: |
| 273 | + - env: |
| 274 | + ASM: auto |
| 275 | + STATICPRECOMPUTATION: yes |
| 276 | + - env: |
| 277 | + ASM: no |
| 278 | + STATICPRECOMPUTATION: no |
| 279 | + ECMULTGENPRECISION: 2 |
| 280 | + matrix: |
| 281 | + - env: |
| 282 | + CC: clang |
| 283 | + - env: |
| 284 | + HOST: i686-linux-gnu |
| 285 | + CC: i686-linux-gnu-gcc |
| 286 | + << : *MERGE_BASE |
| 287 | + test_script: |
| 288 | + - ./ci/cirrus.sh |
| 289 | + << : *CAT_LOGS |
| 290 | + |
0 commit comments