-
Notifications
You must be signed in to change notification settings - Fork 536
Use -fsanitize=address,undefined in debug builds on CI #9397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
@@ -111,9 +111,14 @@ build_executorch_runner_cmake() { | |||
mkdir "${CMAKE_OUTPUT_DIR}" | |||
|
|||
pushd "${CMAKE_OUTPUT_DIR}" || return | |||
if [[ $1 == "Debug" ]]; then | |||
CXXFLAGS="-fsanitize=address,undefined" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you want CXXFLAGS="-fsanitize=address,undefined -g"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I'm not mistaken, CXXFLAGS merely adds to the flags. I will check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.