From 0ce0a0d39214d757198da929c1c882444818d322 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 5 Jun 2020 20:43:57 +0200 Subject: [PATCH 1/3] travis-ci: -fsanitize=address --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 371136e..c239a52 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,8 @@ compiler: before_install: - 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi' + - export CFLAGS="-fsanitize=address" + - export LDFLAGS="-fsanitize=address" script: - 'cd $TRAVIS_BUILD_DIR && cd $PROJECT' From 471c313f9dd8e97fd1d01f6dc141e32e4c72d235 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 5 Jun 2020 20:51:26 +0200 Subject: [PATCH 2/3] better params for sanitize=address --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c239a52..870b80d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,8 +45,8 @@ compiler: before_install: - 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi' - - export CFLAGS="-fsanitize=address" - - export LDFLAGS="-fsanitize=address" + - export CFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer" + - export LDFLAGS="-fsanitize=address -g" script: - 'cd $TRAVIS_BUILD_DIR && cd $PROJECT' From 87e818b7071c341b1a23e189a617cd9218ad5f57 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 5 Jun 2020 22:46:52 +0200 Subject: [PATCH 3/3] do not set -fsanitize=address when building miniupnpc for macOS --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 870b80d..6bfdcc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,8 +45,10 @@ compiler: before_install: - 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi' - - export CFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer" - - export LDFLAGS="-fsanitize=address -g" + - 'if [ "$TRAVIS_OS_NAME" != "osx" ] || [ "$PROJECT" != "miniupnpc" ] ; then + export CFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer" ; + export LDFLAGS="-fsanitize=address -g" ; + fi' script: - 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'