Skip to content

Commit

Permalink
Suppress memory leak in libunbound to get test 125 passing on Bionic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Hague committed Dec 18, 2019
1 parent 9c3321c commit 0226096
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/test/tpkg/125-valgrind-checks.tpkg/125-valgrind-checks.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,20 @@ localhost.
-S
-X
EOT
cat >125.supp <<EOT
{
<bionic_leak_nettle_ecc_point_init>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:__gmp_default_allocate
fun:_nettle_gmp_alloc_limbs
fun:nettle_ecc_point_init
obj:/usr/lib/x86_64-linux-gnu/libunbound.so.2.5.6
}
EOT
(
if ! valgrind -v --log-file=valgrind.log --leak-check=full --error-exitcode=1 --track-origins=yes "${GETDNS_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
if ! valgrind -v --log-file=valgrind.log --suppressions=125.supp --leak-check=full --error-exitcode=1 --track-origins=yes "${GETDNS_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
then
exit 1
fi
Expand Down

0 comments on commit 0226096

Please sign in to comment.