-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[tests][ci] run cpp tests with sanitizers on Linux and macOS #4330
Conversation
Regarding to MemorySanitizer (MSAN,
|
@StrikerRUS I'll take a look on Ubuntu Focal + Clang 10.0.0. |
@StrikerRUS I tried clang-10.0.0 on both Ubuntu 18.04 and 20.04, only 20.04 can reproduce the problem. #4336 changes |
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.
Seems good to me, thank you for the detailed explanation.
Marking as |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Current way of running
testlightgbm.exe
on Windows doesn't return actual status code. Take a look at the logs inmaster
:https://dev.azure.com/lightgbm-ci/lightgbm-ci/_build/results?buildId=10169&view=logs&j=1f4df553-f999-5fff-c6fe-71123c872ae2&t=5236b51f-5710-5c9e-d20e-7548daf49042
Proposed call in this PR makes
master
Windows job red.Looks like AppleClang doesn't have
leak
sanitizer. So setSANITIZERS
to only"address;undefined"
for macOS.https://developer.apple.com/documentation/xcode/diagnosing-memory-thread-and-crash-issues-early
MSVC is just about getting support of ASan
https://devblogs.microsoft.com/cppblog/addresssanitizer-asan-for-windows-with-msvc/
https://devblogs.microsoft.com/cppblog/address-sanitizer-for-msvc-now-generally-available/
https://docs.microsoft.com/en-us/cpp/sanitizers/?view=msvc-160
I had to remove the following test because it fails with many setupsOS + compiler
@cyfdecyf Could you please take a look at this? For example, it fails on Windows + MSVC 19.16.27045.0; Ubuntu Focal + Clang 10.0.0.
Tested with swapped compilers: everything is OK.
Tested
thread
sanitizer: Linux is OK, macOS fails - issue created #4331.