From bad943da55b367158f5e080baea90754aa50c9a7 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Thu, 30 Jun 2022 18:36:52 +0000 Subject: [PATCH] valgrind: ingore plugin build with rust Ok this should be fixed the following stack trace ``` 2022-06-29T14:19:41.183Z DEBUG lightningd: Command returned result after jcon close ------------------------------- Valgrind errors -------------------------------- Valgrind error file: valgrind-errors.55581 ==55581== Syscall param statx(file_name) points to unaddressable byte(s) ==55581== at 0x4B0188E: statx (statx.c:29) ==55581== by 0x1133481: std::sys::unix::fs::try_statx (weak.rs:178) ==55581== by 0x11265E0: std::fs::buffer_capacity_required (fs.rs:851) ==55581== by 0x112675B: ::read_to_string (fs.rs:644) ==55581== by 0x10DACA8: num_cpus::linux::Cgroup::param (linux.rs:214) ==55581== by 0x10DAB39: num_cpus::linux::Cgroup::quota_us (linux.rs:203) ==55581== by 0x10DA9C2: num_cpus::linux::Cgroup::cpu_quota (linux.rs:188) ==55581== by 0x10DA5A1: num_cpus::linux::load_cgroups (linux.rs:149) ==55581== by 0x10DA23D: num_cpus::linux::init_cgroups (linux.rs:129) ==55581== by 0x10DCDC8: core::ops::function::FnOnce::call_once (function.rs:227) ==55581== by 0x10DC749: std::sync::once::Once::call_once::{{closure}} (once.rs:276) ==55581== by 0x21EE89: std::sync::once::Once::call_inner (once.rs:434) ==55581== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==55581== ==55581== Syscall param statx(buf) points to unaddressable byte(s) ==55581== at 0x4B0188E: statx (statx.c:29) ==55581== by 0x1133481: std::sys::unix::fs::try_statx (weak.rs:178) ==55581== by 0x11265E0: std::fs::buffer_capacity_required (fs.rs:851) ==55581== by 0x112675B: ::read_to_string (fs.rs:644) ==55581== by 0x10DACA8: num_cpus::linux::Cgroup::param (linux.rs:214) ==55581== by 0x10DAB39: num_cpus::linux::Cgroup::quota_us (linux.rs:203) ==55581== by 0x10DA9C2: num_cpus::linux::Cgroup::cpu_quota (linux.rs:188) ==55581== by 0x10DA5A1: num_cpus::linux::load_cgroups (linux.rs:149) ==55581== by 0x10DA23D: num_cpus::linux::init_cgroups (linux.rs:129) ==55581== by 0x10DCDC8: core::ops::function::FnOnce::call_once (function.rs:227) ==55581== by 0x10DC749: std::sync::once::Once::call_once::{{closure}} (once.rs:276) ==55581== by 0x21EE89: std::sync::once::Once::call_inner (once.rs:434) ==55581== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==55581== -------------------------------------------------------------------------------- Leaving base_dir /tmp/ltests-hzt9ppqp intact, it still has test sub-directories with failure details: ['test_peers_1'] ``` Signed-off-by: Vincenzo Palazzo --- contrib/pyln-testing/pyln/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index cc13e097e..899094c5f 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -732,7 +732,7 @@ class LightningNode(object): if dsn is not None: self.daemon.opts['wallet'] = dsn if valgrind: - trace_skip_pattern = '*python*,*bitcoin-cli*,*elements-cli*' + trace_skip_pattern = '*python*,*bitcoin-cli*,*elements-cli*,*cln-grpc' if not valgrind_plugins: trace_skip_pattern += ',*plugins*' self.daemon.cmd_prefix = [