From: Philippe Waroquiers Date: Wed, 25 Jun 2014 23:27:08 +0000 (+0000) Subject: Activate --read-inline-info=yes for the outer/inner setup regtest run X-Git-Tag: svn/VALGRIND_3_10_0~336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f96b38bf1de0d45ed758cb778c78b60f6ca272e5;p=thirdparty%2Fvalgrind.git Activate --read-inline-info=yes for the outer/inner setup regtest run as this makes the inner stacktraces easier to understand and also it exercises the inline unwinding somewhat already, waiting for a (possible) activation by default of --read-inline-info git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14101 --- diff --git a/tests/outer_inner.supp b/tests/outer_inner.supp index afca03acef..2e548d2154 100644 --- a/tests/outer_inner.supp +++ b/tests/outer_inner.supp @@ -1,46 +1,56 @@ # errors to suppress when an outer runs an inner. +# The below suppressions are assuming --read-inline-info=yes is used. -# ==31040== 16 bytes in 1 blocks are definitely lost in loss record 10 of 106 -# ==31040== at 0x2803A367: vgPlain_arena_malloc (m_mallocfree.c:1599) -# ==31040== by 0x2803ADE3: vgPlain_strdup (m_mallocfree.c:2140) -# ==31040== by 0x2803208A: valgrind_main (m_main.c:437) -# ==31040== by 0x28035F3C: _start_in_C_linux (m_main.c:2799) -# ==31040== by 0x28030B4B: ??? (in install/lib/valgrind/memcheck-x86-linux) +#==4649== 16 bytes in 1 blocks are definitely lost in loss record 6 of 131 +#==4649== at 0x2804262C: vgPlain_arena_malloc (m_mallocfree.c:1771) +#==4649== by 0x28042CB2: vgPlain_arena_strdup (m_mallocfree.c:2325) +#==4649== by 0x28042CB2: vgPlain_strdup (m_mallocfree.c:2391) +#==4649== by 0x280391D9: main_process_cmd_line_options (m_main.c:484) +#==4649== by 0x280391D9: valgrind_main (m_main.c:1965) +#==4649== by 0x2803DB32: _start_in_C_linux (m_main.c:3107) +#==4649== by 0x2803794B: ??? (in /home/philippe/valgrind/inner_trunk_untouched/memcheck/memcheck-x86-linux) { "keep duplicated args forever as tools can make copies" Memcheck:Leak fun:vgPlain_arena_malloc + fun:vgPlain_arena_strdup fun:vgPlain_strdup + fun:main_process_cmd_line_options fun:valgrind_main } -# ==31040== 392 bytes in 1 blocks are definitely lost in loss record 58 of 106 -# ==31040== at 0x2803A367: vgPlain_arena_malloc (m_mallocfree.c:1599) -# ==31040== by 0x2803A9CF: vgPlain_malloc (m_mallocfree.c:2156) -# ==31040== by 0x280738F0: vgPlain_ii_create_image (initimg-linux.c:202) -# ==31040== by 0x280327CF: valgrind_main (m_main.c:1718) -# ==31040== by 0x28035F3C: _start_in_C_linux (m_main.c:2799) -# ==31040== by 0x28030B4B: ??? (in install/lib/valgrind/memcheck-x86-linux) +#==4649== 344 bytes in 1 blocks are definitely lost in loss record 75 of 131 +#==4649== at 0x2804262C: vgPlain_arena_malloc (m_mallocfree.c:1771) +#==4649== by 0x28042B3E: vgPlain_malloc (m_mallocfree.c:2371) +#==4649== by 0x2808A893: setup_client_env (initimg-linux.c:202) +#==4649== by 0x2808A893: vgPlain_ii_create_image (initimg-linux.c:885) +#==4649== by 0x2803A538: valgrind_main (m_main.c:1839) +#==4649== by 0x2803DB32: _start_in_C_linux (m_main.c:3107) +#==4649== by 0x2803794B: ??? (in /home/philippe/valgrind/inner_trunk_untouched/memcheck/memcheck-x86-linux) { "LD_PRELOAD_STRING inserted in env, difficult to free" Memcheck:Leak fun:vgPlain_arena_malloc fun:vgPlain_malloc + fun:setup_client_env fun:vgPlain_ii_create_image fun:valgrind_main } -# ==32749== 400 bytes in 1 blocks are definitely lost in loss record 47 of 96 -# ==32749== at 0x2803D0D7: vgPlain_arena_malloc (m_mallocfree.c:1599) -# ==32749== by 0x28072DAB: vgPlain_ii_create_image (initimg-linux.c:202) -# ==32749== by 0x28036264: valgrind_main (m_main.c:1718) -# ==32749== by 0x280392FC: _start_in_C_linux (m_main.c:2799) -# ==32749== by 0x28034920: ??? (in install/lib/valgrind/memcheck-amd64-linux) +#==14848== 368 bytes in 1 blocks are definitely lost in loss record 69 of 122 +#==14848== at 0x280452C4: vgPlain_arena_malloc (m_mallocfree.c:1771) +#==14848== by 0x28085D7B: setup_client_env (initimg-linux.c:202) +#==14848== by 0x28085D7B: vgPlain_ii_create_image (initimg-linux.c:885) +#==14848== by 0x2803DDF6: valgrind_main (m_main.c:1839) +#==14848== by 0x28040DDB: _start_in_C_linux (m_main.c:3107) +#==14848== by 0x2803B7D0: ??? (in /home/philippe/valgrind/inner_trunk_untouched/memcheck/memcheck-amd64-linux) { "LD_PRELOAD_STRING inserted in env, difficult to free" Memcheck:Leak fun:vgPlain_arena_malloc +#??????? unclear why this is not in the stacktrace on amd64/gcc20 fun:vgPlain_malloc + fun:setup_client_env fun:vgPlain_ii_create_image fun:valgrind_main } diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in index 4aa6fea448..d77916ff19 100755 --- a/tests/vg_regtest.in +++ b/tests/vg_regtest.in @@ -243,6 +243,7 @@ sub process_command_line() . " --run-libc-freeres=no --sim-hints=enable-outer" . " --smc-check=all-non-file" . " --vgdb=no --trace-children=yes --read-var-info=no" + . " --read-inline-info=yes" . " --suppressions=" . validate_program($tests_dir,"./tests/outer_inner.supp",1,0) . " --memcheck:leak-check=full --memcheck:show-reachable=no"