From da00accdd791471f50af4e2613ef6a77508859f0 Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Thu, 18 Apr 2019 20:40:37 +0200 Subject: [PATCH] Add missing outer argument when self-hosting valgrind. The outer valgrind tries to run libc and libcxx free res functions in the guest (which in case of self-hosting is a valgrind tool). And that fails. So, disable running such free res functions. --- perf/vg_perf.in | 3 ++- tests/vg_regtest.in | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/perf/vg_perf.in b/perf/vg_perf.in index d3e8ce9270..a55e227326 100644 --- a/perf/vg_perf.in +++ b/perf/vg_perf.in @@ -335,7 +335,8 @@ sub do_one_test($$) if ((not defined $outer_args) || ($outer_args =~ /^\+/)) { $run_outer_args = " -v --command-line-only=yes" - . " --run-libc-freeres=no --sim-hints=enable-outer" + . " --sim-hints=enable-outer" + . " --run-libc-freeres=no --run-cxx-freeres=no" . " --smc-check=all-non-file" . " --vgdb=no --trace-children=yes --read-var-info=no" . " --suppressions=../tests/outer_inner.supp" diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in index 2c323f9ed6..f03416e500 100755 --- a/tests/vg_regtest.in +++ b/tests/vg_regtest.in @@ -261,7 +261,8 @@ sub process_command_line() if ((not defined $outer_args) || ($outer_args =~ /^\+/)) { $run_outer_args = " --command-line-only=yes" - . " --run-libc-freeres=no --sim-hints=enable-outer" + . " --sim-hints=enable-outer" + . " --run-libc-freeres=no --run-cxx-freeres=no" . " --smc-check=all-non-file" . " --vgdb=no --trace-children=yes --read-var-info=no" . " --read-inline-info=yes" -- 2.47.2