Skip to content
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

Closed

Conversation

jiridanek
Copy link
Contributor

No description provided.

@jiridanek jiridanek self-assigned this Apr 21, 2022
@jiridanek jiridanek linked an issue Apr 21, 2022 that may be closed by this pull request
@@ -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"
Copy link
Contributor Author

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.

Comment on lines +70 to +72
do_build "" OFF
do_build "_asan" asan
do_build "_tsan" tsan
Copy link
Contributor Author

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.

Comment on lines 35 to +36
elif [[ $QDROUTERD_DEBUG = "valgrind" ]]; then
exec valgrind skrouterd $ARGS
exec skrouterd_asan $ARGS
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backward compatibility ftw!

@jiridanek
Copy link
Contributor Author

Contained in #372

@jiridanek jiridanek closed this Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Valgrind dependency from Containerfile
1 participant