From: Nicholas Nethercote Date: Mon, 13 Jul 2009 07:02:26 +0000 (+0000) Subject: Suppress an error within syslog(). Patch from Dan Kegel. Fixes bug 191192. X-Git-Tag: svn/VALGRIND_3_5_0~409 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62851019a9db046ddaf20336a66d8f0a83c390db;p=thirdparty%2Fvalgrind.git Suppress an error within syslog(). Patch from Dan Kegel. Fixes bug 191192. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10438 --- diff --git a/darwin9.supp b/darwin9.supp index 12dce1bcb3..0689e5de5a 100644 --- a/darwin9.supp +++ b/darwin9.supp @@ -1,8 +1,9 @@ -##----------------------------------------------------------------------## -# # Suppressions for Darwin 9.x / Mac OS X 10.5 Leopard -# + +##----------------------------------------------------------------------## +# Memcheck +##----------------------------------------------------------------------## { mach_msg_trap-1 @@ -105,6 +106,14 @@ obj:/usr/lib/libSystem* } +{ + macos-vsyslog-hole + Memcheck:Param + socketcall.sendto(msg) + fun:sendto$NOCANCEL$UNIX2003 + fun:vsyslog +} + # Still-reachable memory. # I chopped this one off at libSystem_initializer, there were more frames. @@ -154,10 +163,9 @@ fun:setenv$UNIX2003 } - ##----------------------------------------------------------------------## -# -# Suppressions for Helgrind. +# Helgrind +##----------------------------------------------------------------------## # These ones were necessary to give no errors on a tiny non-threaded # program. I don't know if they're real problems or false positives (njn). diff --git a/none/tests/Makefile.am b/none/tests/Makefile.am index 061eab656c..e87a3d70a9 100644 --- a/none/tests/Makefile.am +++ b/none/tests/Makefile.am @@ -125,6 +125,7 @@ EXTRA_DIST = \ stackgrowth.stdout.exp stackgrowth.stderr.exp stackgrowth.vgtest \ syscall-restart1.vgtest syscall-restart1.stdout.exp syscall-restart1.stderr.exp \ syscall-restart2.vgtest syscall-restart2.stdout.exp syscall-restart2.stderr.exp \ + syslog.vgtest syslog.stderr.exp \ system.stderr.exp system.vgtest \ thread-exits.stderr.exp thread-exits.stdout.exp thread-exits.vgtest \ threaded-fork.stderr.exp threaded-fork.stdout.exp threaded-fork.vgtest \ @@ -153,7 +154,9 @@ check_PROGRAMS = \ rcrl readline1 res_search resolv \ rlimit_nofile selfrun sem semlimit sha1_test \ shortpush shorts stackgrowth sigstackgrowth \ - syscall-restart1 syscall-restart2 system \ + syscall-restart1 syscall-restart2 \ + syslog \ + system \ threaded-fork threadederrno \ tls tls.so tls2.so vgprintf \ coolo_sigaction gxx304 diff --git a/none/tests/syslog.c b/none/tests/syslog.c new file mode 100644 index 0000000000..0f21a811c0 --- /dev/null +++ b/none/tests/syslog.c @@ -0,0 +1,9 @@ +// syslog() needs a suppression on Mac OS X (bug 191192). This tests that. + +#include + +int main() +{ + syslog(LOG_USER|LOG_DEBUG, "valgrind/none/tests/syslog: test message"); + return 0; +} diff --git a/none/tests/syslog.stderr.exp b/none/tests/syslog.stderr.exp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/none/tests/syslog.vgtest b/none/tests/syslog.vgtest new file mode 100644 index 0000000000..fe0713c3bf --- /dev/null +++ b/none/tests/syslog.vgtest @@ -0,0 +1,2 @@ +prog: syslog +vgopts: -q