forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbd82928
committed
ci: Use -fsanitize=undefined,alignment,address in linux tasks
We have coverage of the various sanitizers in the buildfarm. The sanitizershowever particularly interesting during the development of patches, where thelikelihood of bugs is even higher. There also have been complaints about onlyseeing such failures on the buildfarm, rather than before commit.This commit enables a reasonable set of sanitizers in CI. Use the linux taskfor that, as it currently is one of the fastests tasks. Also several of thesanitizers work best on linux.The overhead of alignment sanitizer is low, undefined behaviour has moderateoverhead. Test alignment sanitizer in the meson task, as it does both 32 and64 bit builds and is thus more likely to expose alignment bugs.Address sanitizer in contrast somewhat expensive. Enable it in the autoconftask, as the meson task tests both 32 and 64bit which would exacerbate thecost.Reviewed-by: Justin Pryzby <pryzby@telsasoft.com>Discussion:https://postgr.es/m/20220323173537.ll7klrglnp4gn2um@alap3.anarazel.deDiscussion:https://postgr.es/m/20221121220903.kf5u7rokfzbmqskm@alap3.anarazel.de1 parent94a3e02 commitbd82928
1 file changed
+26
-2
lines changedLines changed: 26 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
238 |
| - | |
239 |
| - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
240 | 260 |
| |
241 | 261 |
| |
242 | 262 |
| |
| |||
280 | 300 |
| |
281 | 301 |
| |
282 | 302 |
| |
| 303 | + | |
| 304 | + | |
| 305 | + | |
283 | 306 |
| |
284 | 307 |
| |
285 | 308 |
| |
| |||
306 | 329 |
| |
307 | 330 |
| |
308 | 331 |
| |
| 332 | + | |
309 | 333 |
| |
310 | 334 |
| |
311 | 335 |
| |
|
0 commit comments
Comments
(0)