From: Philippe Waroquiers Date: Thu, 18 Apr 2019 18:40:37 +0000 (+0200) Subject: Add missing outer argument when self-hosting valgrind. X-Git-Tag: VALGRIND_3_16_0~300 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da00accdd791471f50af4e2613ef6a77508859f0;p=thirdparty%2Fvalgrind.git 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. --- 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"