|
From: Philippe W. <phi...@so...> - 2019-04-18 19:10:12
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=da00accdd791471f50af4e2613ef6a77508859f0 commit da00accdd791471f50af4e2613ef6a77508859f0 Author: Philippe Waroquiers <phi...@sk...> Date: Thu Apr 18 20:40:37 2019 +0200 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: --- 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 d3e8ce9..a55e227 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 2c323f9..f03416e 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" |