-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5868 from rouault/memleak_fixes_7_4
Backport of memory leak fixes
- Loading branch information
Showing
35 changed files
with
1,814 additions
and
1,641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ "$BUILD_NAME" != "PHP_7.2_WITH_ASAN" ]; then | ||
# Only run coverage when it is safe to do so (not on pull requests), and only on master branch | ||
echo "$TRAVIS_SECURE_ENV_VARS" | ||
echo "$TRAVIS_BRANCH" | ||
sh -c 'if test "$TRAVIS_SECURE_ENV_VARS" = "true" -a "$TRAVIS_BRANCH" = "master"; then echo "run coverage"; ./run_code_coverage_upload.sh; fi' | ||
coveralls --exclude renderers --exclude mapscript --exclude apache --exclude build/mapscript/mapscriptJAVA_wrap.c --exclude build/mapscript/mapscriptPYTHON_wrap.c --exclude shp2img.c --exclude legend.c --exclude scalebar.c --exclude msencrypt.c --exclude sortshp.c --exclude shptreevis.c --exclude shptree.c --exclude testexpr.c --exclude sym2img.c --exclude testcopy.c --exclude shptreetst.c --exclude tile4ms.c --extension .c --extension .cpp | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
sudo mv /etc/apt/sources.list.d/pgdg* /tmp | ||
dpkg -l | grep postgresql | ||
dpkg -l | grep postgis | ||
sudo apt-get remove postgresql* | ||
sudo add-apt-repository -y ppa:ubuntugis/ppa | ||
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-testing | ||
sudo apt-get update | ||
sudo apt-get install --allow-unauthenticated protobuf-c-compiler libprotobuf-c0-dev bison flex python-lxml libfribidi-dev cmake librsvg2-dev colordiff libpq-dev libpng12-dev libjpeg-dev libgif-dev libgeos-dev libgd2-xpm-dev libfreetype6-dev libfcgi-dev libcurl4-gnutls-dev libcairo2-dev libgdal1-dev libproj-dev libxml2-dev python-dev libexempi-dev lcov lftp postgis libharfbuzz-dev gdal-bin ccache | ||
sudo apt-get install --allow-unauthenticated libmono-system-drawing4.0-cil mono-mcs | ||
sudo apt-get install --allow-unauthenticated php5-dev || sudo apt-get install --allow-unauthenticated php7-dev | ||
sudo apt-get install --allow-unauthenticated libperl-dev | ||
sudo pip install git+git://github.com/tbonfort/cpp-coveralls.git@extensions | ||
# install swig 3.0.12 (defaults to 2.0.11 on trusty) | ||
wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz | ||
export CC="ccache gcc" | ||
export CXX="ccache g++" | ||
tar xf swig-3.0.12.tar.gz | ||
cd swig-3.0.12 && ./configure --prefix=/usr && make -j2 && sudo make install | ||
swig -version | ||
cd .. | ||
cd msautotest | ||
./create_postgis_test_data.sh | ||
python -m SimpleHTTPServer &> /dev/null & | ||
cd .. | ||
touch maplexer.l | ||
touch mapparser.y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ "$BUILD_NAME" = "PHP_7.2_WITH_ASAN" ]; then | ||
export CC="ccache clang" | ||
export CXX="ccache clang++" | ||
# -DNDEBUG to avoid issues with cairo cleanup | ||
make cmakebuild MFLAGS="-j2" CMAKE_C_FLAGS="-g -fsanitize=address -DNDEBUG" CMAKE_CXX_FLAGS="-g -fsanitize=address -DNDEBUG" EXTRA_CMAKEFLAGS="-DCMAKE_BUILD_TYPE=None -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address" | ||
export AUTOTEST_OPTS="-q -strict -run_under_asan" | ||
# Only run tests that only involve mapserv/shp2img binaries. mspython, etc would require LD_PREOLOAD'ing the asan shared object | ||
make -j4 asan_compatible_tests | ||
else | ||
export CC="ccache gcc" | ||
export CXX="ccache g++" | ||
make cmakebuild MFLAGS="-j2" | ||
make mspython-wheel | ||
make -j4 test | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.