-
Notifications
You must be signed in to change notification settings - Fork 402
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
iox-#141 enable sanizier(-fsanitize=address) #400
iox-#141 enable sanizier(-fsanitize=address) #400
Conversation
Signed-off-by: Prasanna Bhat <[email protected]>
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.
nice, you will make @elfenpiff quite happy with this
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.
For resolving the memleaks in test_waitset.cpp do the following:
In Teardown extend the delete loop:
for (auto s : m_subscriber)
{
delete s->m_portData;
delete s;
}
Add delete sut2;
to line 115
Signed-off-by: Prasanna Bhat <[email protected]>
Signed-off-by: Prasanna Bhat <[email protected]>
Thanks for the hint @dkroenke. |
- Separate compiler flags for lsan & asan - Organise sanitizer blacklist files - Support sanitizer for mac Signed-off-by: Prasanna Bhat <[email protected]>
happiness doubled @elfenpiff 😉 (supported sanitization on macos as well) |
…on.cmake Signed-off-by: Prasanna Bhat <[email protected]>
…clipse-iceoryx#141-enable-sanitizer Signed-off-by: Prasanna Bhat <[email protected]>
Signed-off-by: Prasanna Bhat <[email protected]>
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.
The only thing left: there is one commit which has no iox tag in his name: 2183189
…er branch Signed-off-by: Prasanna Bhat <[email protected]>
…tformn Signed-off-by: Prasanna Bhat <[email protected]>
6073702
to
917f8c2
Compare
# NOTE : This works only when iceoryx is built standalone , in which case CMAKE_SOURCE_DIR point to iceoryx_meta | ||
set(ICEORYX_SANITIZER_BLACKLIST -fsanitize-blacklist=${CMAKE_SOURCE_DIR}/sanitizer_blacklist/asan_compile_time.txt) |
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.
why not just putting the blacklist right to this file, then it works all the time?
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.
there might be a beside
missing right of right
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.
why not just putting the blacklist right to this file, then it works all the time?
This is the method suggested to suppress errors
there might be a
beside
missing right ofright
I dint quite get that !
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.
sorry, the comment was a bit confusing. I meant why not putting the blacklist files next to the IceoryxPlatform.cmake then it would also work when the components are build separately ... on the other side, then these files would need to be installed. Maybe it's better to just make the files obsolete is the short/mid term by fixing the issues.
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.
okay ..now I understand what you meant.
I am not sure how do I get the path to IceoryxPlatform.cmake
(when this file is included in another cmake file)
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.
another possibility would be to use file({WRITE | APPEND} <filename> <content>...)
from cmake and create those files on the fly in e.g. CMAKE_BUILD_DIR
. It's up to you if you want to do the hassle
Signed-off-by: Prasanna Bhat <[email protected]>
# NOTE : This works only when iceoryx is built standalone , in which case CMAKE_SOURCE_DIR point to iceoryx_meta | ||
set(ICEORYX_SANITIZER_BLACKLIST -fsanitize-blacklist=${CMAKE_SOURCE_DIR}/sanitizer_blacklist/asan_compile_time.txt) |
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.
another possibility would be to use file({WRITE | APPEND} <filename> <content>...)
from cmake and create those files on the fly in e.g. CMAKE_BUILD_DIR
. It's up to you if you want to do the hassle
Pre-Review Checklist for the PR Author
iox-#123-this-is-a-branch
)iox-#123 commit text
)git commit -s
)Notes for Reviewer
What is done ?
iceoryx_meta/sanitizer_blacklist
)Which components are sanitized?
iceoryx_posh
&iceoryx_utils
)However
Next steps
iceoryx_posh
&iceoryx_utils
?More details on the sanitizer can be found here ( Clang , Google)
Checklist for the PR Reviewer
Post-review Checklist for the PR Author
Post-review Checklist for the Eclipse Committer
References