-##----------------------------------------------------------------------##
-#
# Suppressions for Darwin 9.x / Mac OS X 10.5 Leopard
-#
+
+##----------------------------------------------------------------------##
+# Memcheck
+##----------------------------------------------------------------------##
{
mach_msg_trap-1
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.
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).
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 \
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
--- /dev/null
+// syslog() needs a suppression on Mac OS X (bug 191192). This tests that.
+
+#include <syslog.h>
+
+int main()
+{
+ syslog(LOG_USER|LOG_DEBUG, "valgrind/none/tests/syslog: test message");
+ return 0;
+}
--- /dev/null
+prog: syslog
+vgopts: -q