Add a valgrind suppression for sendmsg (v2)
authorNils Carlson <nils.carlson@ericsson.com>
Mon, 11 Oct 2010 15:01:32 +0000 (17:01 +0200)
committerNils Carlson <nils.carlson@ericsson.com>
Tue, 12 Oct 2010 06:24:41 +0000 (08:24 +0200)
Changes since v1: Make the suppression match libc and
libpthread, multiple versions.

For some reason valgrind thinks the iov array in ustcomm_send_fd
is used uninitialised. Add a suppression so this won't show as
an error.

Signed-off-by: Nils Carlson <nils.carlson@ericsson.com>
Acked-by: David Goulet <david.goulet@polymtl.ca>
tests/valgrind_suppress.txt [new file with mode: 0644]
tests/valgrind_ustd.sh

diff --git a/tests/valgrind_suppress.txt b/tests/valgrind_suppress.txt
new file mode 100644 (file)
index 0000000..2a4ac36
--- /dev/null
@@ -0,0 +1,14 @@
+{
+   sendmsg-iov-errors-libpthread
+   Memcheck:Param
+   socketcall.sendmsg(msg.msg_iov[i])
+   obj:/lib/libpthread-2.*
+   fun:ustcomm_send_fd
+}
+{
+   sendmsg-iov-errors-libc
+   Memcheck:Param
+   socketcall.sendmsg(msg.msg_iov[i])
+   obj:/lib/libc-2.*
+   fun:ustcomm_send_fd
+}
index 532022d7db0f47239b2450d7f0aeb2bb5db1e9e8..541d8ca1cff605fc46915a413afd1c3094a25f43 100755 (executable)
@@ -34,7 +34,7 @@ pidfilepath="/tmp/ust-testsuite-$USER-$(date +%Y%m%d%H%M%S%N)-ustd-pid"
 mkfifo -m 0600 "$pidfilepath"
 
 VALG_OUT=/tmp/ust-testsuite-valg.txt
-valgrind -q ustd --pidfile "$pidfilepath" -o "$TRACE_DIR" >/dev/null 2>"$VALG_OUT" &
+valgrind --suppressions=$TESTDIR/valgrind_suppress.txt -q ustd --pidfile "$pidfilepath" -o "$TRACE_DIR" >/dev/null 2>"$VALG_OUT" &
 VALG_PID=$!
 USTD_PID="$(<$pidfilepath)"
 
This page took 0.024637 seconds and 4 git commands to generate.