[WIP] test enabling UB sanitizer#1340
[WIP] test enabling UB sanitizer#1340lucafedeli88 wants to merge 16 commits intoHi-PACE:developmentfrom
Conversation
|
@AlexanderSinn , as an experiment, I've tried to enable sanitizers in CI. Like this the test is way too long, although if we use caching for the compilation of AMReX we may be able to keep it around 10 minutes. The UB/address sanitizer finds some issues with tests related to ionization. I've done some tests on my local machine and it seems that in the following code block |
|
Yes this looks like a real bug. Can you try with #1343 |
…e_atomic_number' into enable_sanitizer
|
@AlexanderSinn , @MaxThevenet , do you think that having a sanitizer check in CI could be a good idea? |
|
With the runtime being 14 minutes already, excluding compile time, to me that is already too long to do for every PR. I also don't expect this to find problems very frequently. Maybe it could be good to run manually every once in a while, maybe about once a year. |
|
@lucafedeli88 Just to test how much time the compilation would take with caching enabled, can you merge development into this branch and let the CI finish so the ccache will be set? Then do a very small change in one small cpp file so it will be able to use the ccache when compiling. |
|
@AlexanderSinn , I am facing some issues:
|
constisconst)