|
From: Philippe W. <phi...@so...> - 2018-09-01 16:53:18
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=a214595daed7830a091dcd0f52c5b8073bfd04dd commit a214595daed7830a091dcd0f52c5b8073bfd04dd Author: Philippe Waroquiers <phi...@sk...> Date: Sat Sep 1 18:51:21 2018 +0200 Change filter_memcheck_monitor as glibc 2.27 seems to keep some more memory There is no real need to verify how much memory is still in use at exit, so filter this in filter_memcheck_monitor. Analysis by Dimitrije Nikolic Diff: --- gdbserver_tests/filter_memcheck_monitor | 1 + gdbserver_tests/mcclean_after_fork.stderr.exp | 2 +- gdbserver_tests/mcmain_pic.stderr.exp | 2 +- gdbserver_tests/mcsignopass.stderr.exp | 2 +- gdbserver_tests/mcsigpass.stderr.exp | 2 +- gdbserver_tests/mcwatchpoints.stderr.exp | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gdbserver_tests/filter_memcheck_monitor b/gdbserver_tests/filter_memcheck_monitor index 431352b..f5a2e51 100755 --- a/gdbserver_tests/filter_memcheck_monitor +++ b/gdbserver_tests/filter_memcheck_monitor @@ -31,4 +31,5 @@ sed -e '/Cannot access memory at address 0x......../d' \ -e '/^Missing separate debuginfo/d' \ -e '/^Try: zypper install -C/d' \ -e 's/Test 3: FAIL: expected si_code==2, not 128/Test 3: PASS/' \ + -e 's/in use at exit: [0-9][0-9]* bytes in [0-9][0-9]* blocks/in use at exit: ... bytes in ... blocks/' \ -e '/^ total heap usage: /d' diff --git a/gdbserver_tests/mcclean_after_fork.stderr.exp b/gdbserver_tests/mcclean_after_fork.stderr.exp index 3bb7944..9107182 100644 --- a/gdbserver_tests/mcclean_after_fork.stderr.exp +++ b/gdbserver_tests/mcclean_after_fork.stderr.exp @@ -1,6 +1,6 @@ (action at startup) vgdb me ... HEAP SUMMARY: - in use at exit: 0 bytes in 0 blocks + in use at exit: ... bytes in ... blocks For a detailed leak analysis, rerun with: --leak-check=full For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff --git a/gdbserver_tests/mcmain_pic.stderr.exp b/gdbserver_tests/mcmain_pic.stderr.exp index d82a7ee..546bc37 100644 --- a/gdbserver_tests/mcmain_pic.stderr.exp +++ b/gdbserver_tests/mcmain_pic.stderr.exp @@ -1,6 +1,6 @@ (action at startup) vgdb me ... HEAP SUMMARY: - in use at exit: 16 bytes in 1 blocks + in use at exit: ... bytes in ... blocks For a detailed leak analysis, rerun with: --leak-check=full For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff --git a/gdbserver_tests/mcsignopass.stderr.exp b/gdbserver_tests/mcsignopass.stderr.exp index 7dbc9ee..4055b97 100644 --- a/gdbserver_tests/mcsignopass.stderr.exp +++ b/gdbserver_tests/mcsignopass.stderr.exp @@ -8,7 +8,7 @@ Test 2: PASS Test 3: PASS Test 4: PASS HEAP SUMMARY: - in use at exit: 0 bytes in 0 blocks + in use at exit: ... bytes in ... blocks For a detailed leak analysis, rerun with: --leak-check=full For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 11 errors from 1 contexts (suppressed: 0 from 0) diff --git a/gdbserver_tests/mcsigpass.stderr.exp b/gdbserver_tests/mcsigpass.stderr.exp index 7a754fd..e35e38a 100644 --- a/gdbserver_tests/mcsigpass.stderr.exp +++ b/gdbserver_tests/mcsigpass.stderr.exp @@ -8,7 +8,7 @@ Test 2: PASS Test 3: PASS Test 4: PASS HEAP SUMMARY: - in use at exit: 0 bytes in 0 blocks + in use at exit: ... bytes in ... blocks For a detailed leak analysis, rerun with: --leak-check=full For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) diff --git a/gdbserver_tests/mcwatchpoints.stderr.exp b/gdbserver_tests/mcwatchpoints.stderr.exp index 319547c..8d04da0 100644 --- a/gdbserver_tests/mcwatchpoints.stderr.exp +++ b/gdbserver_tests/mcwatchpoints.stderr.exp @@ -15,7 +15,7 @@ before rewriting 8 value 0nde4ine8 value of k50[1000] p HEAP SUMMARY: - in use at exit: 0 bytes in 0 blocks + in use at exit: ... bytes in ... blocks For a detailed leak analysis, rerun with: --leak-check=full For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) |