Use -fsanitize=address,undefined in debug builds on CI#9397
Conversation
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9397
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Unrelated FailureAs of commit 75d3886 with merge base 01a22b6 ( NEW FAILURES - The following jobs have failed:
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Great idea. On top of asan and ubsan, it'd be great to have tsan too, especially with thread pool enabled. But you can't enable all three at the same time. You might have to have a dedicated tsan job version (with thread pool enabled) for the unittest. |
|
|
||
| pushd "${CMAKE_OUTPUT_DIR}" || return | ||
| if [[ $1 == "Debug" ]]; then | ||
| CXXFLAGS="-fsanitize=address,undefined" |
There was a problem hiding this comment.
Don't you want CXXFLAGS="-fsanitize=address,undefined -g"?
There was a problem hiding this comment.
if I'm not mistaken, CXXFLAGS merely adds to the flags. I will check.
There was a problem hiding this comment.
I checked and -g is still present (and there appear to be no other optimization/debug flags added in CMAKE_BUILD_TYPE=Debug)
that one needs to go on the backlog, I haven't got time right now and I suspect we have extant-but-benign TSAN problems |
|
unittest-release failure is a known flake. test-arm-backend-delegation has been having problems lately and is unlikely to be unlikely broken by this change. merging. |
These sanitizers help catch bugs. AIUI, they only affect a few unittest jobs.
These sanitizers help catch bugs. AIUI, they only affect a few unittest jobs.
These sanitizers help catch bugs. AIUI, they only affect a few unittest jobs.