From: Petar Jovanovic Date: Fri, 27 Jan 2017 18:20:50 +0000 (+0000) Subject: Adding new filter to memcheck/tests/filter_stderr X-Git-Tag: svn/VALGRIND_3_13_0~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f6e3a5cb5ee0de755e2a5a0fc86320127011cb9;p=thirdparty%2Fvalgrind.git Adding new filter to memcheck/tests/filter_stderr This should fix issue with sendmsg test and glibc 2.22. Glibc 2.22 introduced sysdeps/unix/sysv/linux/sendmsg.c that has __libc_sendmsg function implementation (in comparison to earlier implementation in syscall-template.S). So, test suite needs to filter out this case, otherwise we get test diffs such as: Syscall param sendmsg(msg) points to uninitialised byte(s) - at 0x........: sendmsg (in /...libc...) + at 0x........: sendmsg (sendmsg.c:28) which are false positives. This fixes memcheck/tests/sendmsg (stderr) on platforms with 2.22+ glibc. Patch by Aleksandra Karadzic. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16213 --- diff --git a/memcheck/tests/filter_stderr b/memcheck/tests/filter_stderr index b55f24a693..c6f6cd439f 100755 --- a/memcheck/tests/filter_stderr +++ b/memcheck/tests/filter_stderr @@ -24,6 +24,7 @@ perl -p -e "s/in loss record \d+ of \d+/in loss record ... of .../" | # Filter out glibc debuginfo if installed. perl -p -e "s/\(syscall-template.S:[0-9]*\)/(in \/...libc...)/" | +perl -p -e "s/sendmsg \(sendmsg.c:[0-9]*\)/sendmsg (in \/...libc...)/" | perl -p -e "s/\(socket.S:[0-9]*\)/(in \/...libc...)/" | # Newer architectures (aarch64) implement poll by calling ppoll directly.