-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fixes #365 - Replace valgrind with sanitizers in Containerfile #366
Fixes #365 - Replace valgrind with sanitizers in Containerfile #366
Conversation
@@ -74,5 +74,10 @@ ARG version=latest | |||
ENV VERSION=${version} | |||
ENV QDROUTERD_HOME=/home/skrouterd | |||
|
|||
ENV ASAN_OPTIONS="disable_coredump=0 detect_odr_violation=0 strict_string_checks=1 detect_stack_use_after_return=1 check_initialization_order=1 strict_init_order=1 detect_invalid_pointer_pairs=2" | |||
ENV LSAN_OPTIONS="disable_coredump=0 suppressions=/lsan.supp" |
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.
lsan needs to use ptrace
, which requires capabilities, for which I tend to run container with --privileged
. Afaik this is no different from gdb, and therefore is not a problem.
one solution (to have asan without lsan) would be to define here detect_leaks=0
.
do_build "" OFF | ||
do_build "_asan" asan | ||
do_build "_tsan" tsan |
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 image build used to take 6 mins on GHA, this PR ran 14 minutes. Too bad. Each of these builds is different (different gcc options) so there is no space for any caching or such ways.
elif [[ $QDROUTERD_DEBUG = "valgrind" ]]; then | ||
exec valgrind skrouterd $ARGS | ||
exec skrouterd_asan $ARGS |
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.
backward compatibility ftw!
Contained in #372 |
No description provided.