From 3de715ee48f58fa1f53c9c0bbd73a1622a803e4f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 17 Mar 2020 07:36:25 -0500 Subject: [PATCH] valgrind: set OPENSSL_ia32cap to ~0x1000000000000000 This disables AVX instructions, which confuse valgrinda nd openssl. https://tracker.ceph.com/issues/44362 Signed-off-by: Sage Weil --- teuthology/misc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/teuthology/misc.py b/teuthology/misc.py index e4a3624369..d2b9bdf852 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -1057,6 +1057,12 @@ def get_valgrind_args(testdir, name, preamble, v): return preamble if not isinstance(v, list): v = [v] + + # https://tracker.ceph.com/issues/44362 + preamble.extend([ + 'env', 'OPENSSL_ia32cap=~0x1000000000000000', + ]) + val_path = '/var/log/ceph/valgrind'.format(tdir=testdir) if '--tool=memcheck' in v or '--tool=helgrind' in v: extra_args = [ -- 2.39.5