[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnutls-dev
Subject:    Re: [gnutls-devel] valgrind test openpgp-certs woodo
From:       Alon Bar-Lev <alon.barlev () gmail ! com>
Date:       2017-03-13 10:46:10
Message-ID: CAOazyz2ouuxx=v1sVybE+1sA_RaYFSTxkDQSiBaCEAE=seWGTw () mail ! gmail ! com
[Download RAW message or body]

On 13 March 2017 at 09:04, Nikos Mavrogiannopoulos <nmav@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
---

_______________________________________________
Gnutls-devel mailing list
Gnutls-devel@lists.gnutls.org
http://lists.gnupg.org/mailman/listinfo/gnutls-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic