Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
d2e7ccb1
Commit
d2e7ccb1
authored
Aug 23, 2017
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable LSAN and use-after-scope checks
The former is work in progress.
parent
cda8aa39
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
.travis.yml
.travis.yml
+2
-1
configure.ac
configure.ac
+3
-1
lsan.suppr
tools/lsan.suppr
+2
-0
No files found.
.travis.yml
View file @
d2e7ccb1
...
...
@@ -37,7 +37,8 @@ before_install:
sudo apt-get install -y clang-4.0 llvm-4.0;
export CC=clang-4.0;
export CONFIGURE_ARGS="--enable-developer-warnings --enable-debugging-symbols --enable-asan --enable-ubsan";
export ASAN_OPTIONS=detect_odr_violation=1,detect_leaks=0,detect_stack_use_after_return=1,detect_invalid_pointer_pairs=1,abort_on_error=1;
export ASAN_OPTIONS=abort_on_error=1,detect_odr_violation=1,detect_leaks=1,detect_stack_use_after_return=1,detect_invalid_pointer_pairs=1;
export LSAN_OPTIONS=suppressions=$(pwd)/tools/lsan.suppr;
export UBSAN_OPTIONS=halt_on_error=1,print_stacktrace=1,suppressions=$(pwd)/tools/ubsan.suppr;
fi
-
./autogen.sh
...
...
configure.ac
View file @
d2e7ccb1
...
...
@@ -249,7 +249,9 @@ ASAN_CFLAGS=
ASAN_LDFLAGS=
AC_ARG_ENABLE(asan,
AS_HELP_STRING([--enable-asan],[enable address sanitizer (default is NO)]),
ASAN_FLAGS="-fsanitize=address")
ASAN_FLAGS="-fsanitize=address"
AX_CHECK_COMPILE_FLAG([-fsanitize=address -fsanitize-address-use-after-scope],
[ASAN_FLAGS="${ASAN_FLAGS} -fsanitize-address-use-after-scope"]))
MSAN_CFLAGS=
MSAN_LDFLAGS=
...
...
tools/lsan.suppr
0 → 100644
View file @
d2e7ccb1
leak:varnishtest
leak:MCF_ParamConf
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment