[gnutls-devel] valgrind test openpgp-certs woodo

Alon Bar-Lev alon.barlev at gmail.com
Mon Mar 13 11:46:10 CET 2017


On 13 March 2017 at 09:04, Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote:
> Hi,
>  That looks like something happening even before gnutls is loaded. You
> may need debugging symbols in libc and dynamic loader to figure out.

Well, I kinda give up... but narrowed it to the following... if
LD_LIBRARY_PATH contains absolute directory then it fails... libtool
uses absolute path.

In strace I could not find anything strange, it searches the shared
libraries absolute or relative as expected.

Many other tests that are expected to fail actually failed because of
this a false positive... we do not check for the valgrind exit code
explicitly.

I found those[1][2][3] and more.
Added this to suppression at [4] please consider.

Thanks!
Alon

[1] http://stackoverflow.com/questions/11506370/valgrind-reports-unitialized-values-on-empty-c-program
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623876
[3] http://stackoverflow.com/questions/23663008/valgrind-reports-conditional-jump-or-move-depends-on-uninitialised-values-on
[4] https://gitlab.com/gnutls/gnutls/merge_requests/304

---
$ LD_LIBRARY_PATH=$(cd ../../lib/.libs && pwd) valgrind -q
--leak-check=full
--suppressions=../../../gnutls-3.5.10/tests/cert-tests/suppressions.valgrind
--error-exitcode=15  ../../src/.libs/gnutls-cli --help > /dev/null;
echo $?
==32377== Conditional jump or move depends on uninitialised value(s)
==32377==    at 0x401A5D8: index (in /lib64/ld-2.23.so)
==32377==    by 0x4007DEF: expand_dynamic_string_token (in /lib64/ld-2.23.so)
==32377==    by 0x4007F84: fillin_rpath (in /lib64/ld-2.23.so)
==32377==    by 0x400874B: _dl_init_paths (in /lib64/ld-2.23.so)
==32377==    by 0x4002E21: dl_main (in /lib64/ld-2.23.so)
==32377==    by 0x401820B: _dl_sysdep_start (in /lib64/ld-2.23.so)
==32377==    by 0x4004EC8: _dl_start (in /lib64/ld-2.23.so)
==32377==    by 0x4000CB7: ??? (in /lib64/ld-2.23.so)
==32377==    by 0x1: ???
==32377==    by 0xFFEFFFE1E: ???
==32377==    by 0xFFEFFFE39: ???
==32377==
15
$ LD_LIBRARY_PATH=../../lib/.libs valgrind -q --leak-check=full
--suppressions=../../../gnutls-3.5.10/tests/cert-tests/suppressions.valgrind
--error-exitcode=15  ../../src/.libs/gnutls-cli --help > /dev/null;
echo $?
0
---



More information about the Gnutls-devel mailing list