Bugs 435732 and 403802 again

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.
This commit is contained in:
Paul Floyd 2021-11-13 12:31:41 +01:00
parent 2be719921e
commit 39b4bbe3a1
5 changed files with 13 additions and 16 deletions

View 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
--------------------------------------------------------------------------------

View 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

View 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
--------------------------------------------------------------------------------

View 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

View File

@ -52,26 +52,21 @@
# 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