-
Notifications
You must be signed in to change notification settings - Fork 374
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
Enable Sanitizer in Debug Build and Unit Tests #141
Comments
Is this setting required only for CI build ? |
Yeah, I would recommend to use the settings only for the CI. @elfenpiff Opinions? |
Don't forget you also need to scan the output for the different types of errors that asan and ubsan output. UBSan usually uses the normal gcc/clang warning format but saying "runtime error" instead of "warning" or "error. ASan output looks a bit more like valgrind. You have the LeakSanitizer and AddressSanitizer failures to scan for. |
I would also suggest activating some additional ubsan flags:
|
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
…rrors Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
- Separate compiler flags for lsan & asan - Organise sanitizer blacklist files - Support sanitizer for mac Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
…on.cmake Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
…clipse-iceoryx#141-enable-sanitizer Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
…tformn Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
…er branch Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
…tformn Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
iox-#141 enable sanizier(-fsanitize=address)
Brief feature description
Add the following compiler flags for the Linux (and MacOS build, if possible)
-fsanitize=address -fsanitze=undefined
. All unit tests have to run without undefined behavior, memory leaks or other funky memory effects.Detailed information
We can a avoid a wide variety of bugs when this is activated in the github CI.
The text was updated successfully, but these errors were encountered: