]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add missing outer argument when self-hosting valgrind.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 18 Apr 2019 18:40:37 +0000 (20:40 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 18 Apr 2019 18:41:44 +0000 (20:41 +0200)
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
tests/vg_regtest.in

index d3e8ce9270e5c25b2631d93125e48121df7c0f68..a55e227326f844c464673a17a619cec2d8dc7011 100644 (file)
@@ -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"
index 2c323f9ed6c82185b1e13151a857ca0acd8580a9..f03416e50028c9c14bcf49e14e29c28b89b0c140 100755 (executable)
@@ -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"