]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bugs 435732 and 403802 again
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 13 Nov 2021 11:31:41 +0000 (12:31 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 13 Nov 2021 11:31:41 +0000 (12:31 +0100)
This time with debuginfo removed.

Also update the vgtest files for a couple of massif tests
(and also the expected because of the commmand line change).
Not yet tested these two with debuginfo installed.

massif/tests/new-cpp.post.exp
massif/tests/new-cpp.vgtest
massif/tests/overloaded-new.post.exp
massif/tests/overloaded-new.vgtest
memcheck/tests/libstdc++.supp

index 9d90cf6c220fd52b9f6fefc9ecb39fc1bf98d89c..5935771617a2753b3b1f1d8d45dd85595b511ade 100644 (file)
@@ -1,6 +1,6 @@
 --------------------------------------------------------------------------------
 Command:            ./new-cpp
-Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
+Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0 --ignore-fn=call_init
 ms_print arguments: massif.out
 --------------------------------------------------------------------------------
 
index 88bdf939b99581c2dbb0bcc24c6d0df401bad43e..ebcef897a0adf09c3195a1767e55aaa3e247af96 100644 (file)
@@ -2,5 +2,6 @@ prog: new-cpp
 vgopts: --stacks=no --time-unit=B --massif-out-file=massif.out
 vgopts: --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook
 vgopts: --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
+vgopts: --ignore-fn=call_init
 post: perl ../../massif/ms_print massif.out | ../../tests/filter_addresses
 cleanup: rm massif.out
index e55885fc577055edc9cc3855f5d16ef2cfa12563..ae112710b7f8284e004eb250f4fe4f043422701e 100644 (file)
@@ -1,6 +1,6 @@
 --------------------------------------------------------------------------------
 Command:            ./overloaded-new
-Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
+Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0 --ignore-fn=call_init
 ms_print arguments: massif.out
 --------------------------------------------------------------------------------
 
index 20bcd97e62925d019ac8fa7917fc931133b969c9..fc95acc2f3fa4c1f79503e6f22373ddda6456430 100644 (file)
@@ -2,5 +2,6 @@ prog: overloaded-new
 vgopts: --stacks=no --time-unit=B --massif-out-file=massif.out
 vgopts: --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook
 vgopts: --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
+vgopts: --ignore-fn=call_init
 post: perl ../../massif/ms_print massif.out | ../../tests/filter_addresses
 cleanup: rm massif.out
index 3cd2e628dafe472c22ba12188801cf3809237645..852d8ab0b6ef3f59f143d3bbcf6f8a653909e734 100644 (file)
 # All the following suppressions are variants of
 # _dl_init -> call_init which calls the DT_INIT_ARRAY functions
 
+# These suppressions are sensitive to changes to GCC and libstdc++
+# in order to generate a suppression stanza run
+#
+# /vg-in-place --gen-suppressions=all --show-reachable=yes --leak-check=full --run-cxx-freeres=no  memcheck/tests/leak_cpp_interior
+#
+# since leaks are ordered by increasing size the stanza to look for is the last one
+
+
 {
    malloc-leaks-cxx-stl-string-classes
    Memcheck:Leak
    match-leak-kinds: reachable
    fun:malloc
    obj:*lib*/libstdc++.so*
-   fun:call_init.part.0
-   fun:call_init
-   fun:_dl_init
-   obj:*lib*/ld-2.*.so
-}
-{
-   malloc-leaks-cxx-stl-string-classes-2
-   Memcheck:Leak
-   match-leak-kinds: reachable
-   fun:malloc
-   obj:*lib*/libstdc++.so*
-   fun:call_init.part.0
-   fun:_dl_init
-   obj:*lib*/ld-2.*.so
+   fun:call_init*
 }
 {
   malloc-leaks-cxx-stl-string-classes-debug