summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-01-23 15:41:23 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-01-25 15:12:09 -0800
commit2768f54aea6449ad9367a4918adbd02fcc682f43 (patch)
treed379e738ef5f947f638d6ed6ca9de45da8e42ea5
parent164d156ccd67b14977431fb4919d9a8584765b2a (diff)
downloadqtlocation-mapboxgl-upstream/valgrind-debug.tar.gz
[linux] Run valgrind against debug build; trim supressionsupstream/valgrind-debug
-rw-r--r--.travis.yml10
-rwxr-xr-xscripts/valgrind.sh1
-rw-r--r--scripts/valgrind.sup117
3 files changed, 24 insertions, 104 deletions
diff --git a/.travis.yml b/.travis.yml
index 6e3bc85c9f..afdd90706b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,7 +7,7 @@ addons:
sources:
- &common_sources [ 'ubuntu-toolchain-r-test', 'george-edison55-precise-backports' ]
packages:
- - &common_packages [ 'libllvm3.8v4', 'cmake', 'cmake-data' ]
+ - &common_packages [ 'libllvm3.8v4', 'cmake', 'cmake-data', 'libc6-dbg' ]
- &clang38_packages [ 'clang-3.8', 'libstdc++-5-dev', 'libstdc++6' ]
- &gcc5_packages [ 'gcc-5', 'g++-5' ]
- &glfw_packages [ 'libxrandr-dev', 'libxcursor-dev', 'libxinerama-dev' ]
@@ -40,7 +40,7 @@ addons_shortcuts:
packages:
- *common_packages
- *gcc5_packages
- - [ 'mesa-utils', 'libc6-dbg', 'qt5-default', 'libqt5opengl5-dev', 'qtdeclarative5-dev', 'qtpositioning5-dev', 'qtlocation5-dev', 'libqt5sql5-sqlite' ]
+ - [ 'mesa-utils', 'qt5-default', 'libqt5opengl5-dev', 'qtdeclarative5-dev', 'qtpositioning5-dev', 'qtlocation5-dev', 'libqt5sql5-sqlite' ]
env:
global:
@@ -142,7 +142,7 @@ matrix:
- ccache --show-stats
- ./platform/linux/scripts/coveralls.sh
- # EGL - Clang 3.8 - Debug
+ # EGL - Clang 3.8 - Debug (Valgrind)
- os: linux
sudo: required
dist: trusty
@@ -153,6 +153,9 @@ matrix:
before_script:
- mapbox_start_xvfb
- mapbox_export_mesa_library_path
+ script:
+ - make test
+ - scripts/valgrind.sh build/linux-x86_64/Debug/mbgl-test --gtest_filter=-*.Load --gtest_filter=-API.RepeatedRender
# Qt 4 - GCC 5 - Release
- os: linux
@@ -184,7 +187,6 @@ matrix:
- make qt-app
- make qt-qml-app
- make qt-test
- - scripts/valgrind.sh build/qt-linux-x86_64/Release/mbgl-test --gtest_filter=-*.Load
cache:
directories:
diff --git a/scripts/valgrind.sh b/scripts/valgrind.sh
index c717fc2cb8..9d0eec6ce9 100755
--- a/scripts/valgrind.sh
+++ b/scripts/valgrind.sh
@@ -6,6 +6,7 @@ set -o pipefail
.mason/mason install valgrind 3.12.0
PARAMS="\
+ --track-origins=yes \
--leak-check=full \
--show-leak-kinds=definite \
--errors-for-leak-kinds=definite \
diff --git a/scripts/valgrind.sup b/scripts/valgrind.sup
index fc6bfaac58..5edc6381c9 100644
--- a/scripts/valgrind.sup
+++ b/scripts/valgrind.sup
@@ -140,130 +140,54 @@
...
}
{
- Ubuntu 16.04 - Mysterious leak when running utests
- Memcheck:Leak
- fun:calloc
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
-}
-{
- Ubuntu 16.04 - Mysterious leak when running utests
- Memcheck:Leak
- fun:malloc
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
-}
-{
- Ubuntu 14.04 - Travis CI bot using swrast
- Memcheck:Cond
- fun:do_stencil_test
- fun:_swrast_stencil_and_ztest_span
- fun:_swrast_write_rgba_span
- fun:draw_wide_line
- ...
-}
-{
- Ubuntu 14.04 - Travis + Qt5
- Memcheck:Leak
- ...
- obj:*/libQt5Core.*
- ...
-}
-{
- Ubuntu 14.04 - Travis + Qt5
+ https://bugs.freedesktop.org/show_bug.cgi?id=99527
Memcheck:Cond
- ...
- obj:*/libQt5Core.*
- ...
-}
-{
- Ubuntu 14.04 - Travis + Qt5
- Memcheck:Value8
- ...
- obj:*/libQt5Core.*
- ...
-}
-{
- Ubuntu 14.04 - Travis + Qt5
- Memcheck:Leak
- ...
- obj:*/libQt5Gui.*
- ...
-}
-{
- Ubuntu 14.04 - Travis + Qt5
- Memcheck:Cond
- ...
- obj:*/libQt5Gui.*
+ obj:*
+ fun:lp_rast_shade_quads_mask
...
}
{
- Ubuntu 14.04 - Travis + Qt5
+ https://bugs.freedesktop.org/show_bug.cgi?id=99527
Memcheck:Value8
...
- obj:*/libQt5Gui.*
+ fun:lp_rast_shade_quads_mask
...
}
{
- Ubuntu 14.04 - Travis + mesa 13.0.0-glx
+ https://bugs.freedesktop.org/show_bug.cgi?id=99527
Memcheck:Cond
- ...
- obj:*/mesa/libGL.so.*
+ obj:*
+ fun:lp_rast_shade_quads_all
...
}
{
- Ubuntu 14.04 - Travis + mesa 13.0.0-glx
+ https://bugs.freedesktop.org/show_bug.cgi?id=99527
Memcheck:Value8
...
- obj:*/mesa/libGL.so.*
+ fun:lp_rast_shade_quads_all
...
}
{
- Ubuntu 14.04 - Travis + mesa 13.0.0-glx
+ Anything under mbgl::test::checkImage tainted by mesa producing uninitialized pixels (?)
Memcheck:Cond
...
- fun:do_rasterize_bin
+ fun:_ZN4mbgl4test10checkImageERKSsRKNS_5ImageILNS_14ImageAlphaModeE1EEEdd
...
}
{
- Ubuntu 14.04 - Travis + mesa 13.0.0-glx
+ Anything under mbgl::test::checkImage tainted by mesa producing uninitialized pixels (?)
Memcheck:Value8
...
- fun:do_rasterize_bin
- ...
-}
-{
- Ubuntu 14.04 - Travis + mesa 13.0.0-glx
- Memcheck:Cond
- ...
- fun:_ZN6mapbox10pixelmatchEPKhS1_mmPhdb
+ fun:_ZN4mbgl4test10checkImageERKSsRKNS_5ImageILNS_14ImageAlphaModeE1EEEdd
...
}
{
- Ubuntu 14.04 - Travis + mesa 13.0.0-glx
+ Anything under mbgl::test::checkImage tainted by mesa producing uninitialized pixels (?)
Memcheck:Param
write(buf)
+ obj:/lib/x86_64-linux-gnu/libc-2.19.so
...
- obj:*/libc-*
- fun:_ZN4mbgl4util10write_fileERKSsS2_
+ fun:_ZN4mbgl4test10checkImageERKSsRKNS_5ImageILNS_14ImageAlphaModeE1EEEdd
...
}
{
@@ -330,10 +254,3 @@
fun:_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE
fun:_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE
}
-{
- Ubuntu 14.04 - Travis + mesa 13.0.3
- Memcheck:Leak
- match-leak-kinds: definite
- fun:_Znwm
- ...
-}