cb589a
commit 0c701ba2a4b10a5f6f3fae31cb0ec6ca034d51d9
cb589a
Author: Mark Wielaard <mark@klomp.org>
cb589a
Date:   Fri Dec 7 14:01:20 2018 +0100
cb589a
cb589a
    Fix sigkill.stderr.exp for glibc-2.28.
cb589a
    
cb589a
    glibc 2.28 filters out some bad signal numbers and returns
cb589a
    Invalid argument instead of passing such bad signal numbers
cb589a
    the kernel sigaction syscall. So we won't see such bad signal
cb589a
    numbers and won't print "bad signal number" ourselves.
cb589a
    
cb589a
    Add a new memcheck/tests/sigkill.stderr.exp-glibc-2.28 to catch
cb589a
    this case.
cb589a
cb589a
diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am
cb589a
index 76e0e90..2af4dd1 100644
cb589a
--- a/memcheck/tests/Makefile.am
cb589a
+++ b/memcheck/tests/Makefile.am
cb589a
@@ -260,7 +260,8 @@ EXTRA_DIST = \
cb589a
 	sh-mem-random.stdout.exp sh-mem-random.vgtest \
cb589a
 	sigaltstack.stderr.exp sigaltstack.vgtest \
cb589a
 	sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-mips32 \
cb589a
-	    sigkill.stderr.exp-solaris sigkill.vgtest \
cb589a
+	    sigkill.stderr.exp-solaris \
cb589a
+	    sigkill.stderr.exp-glibc-2.28 sigkill.vgtest \
cb589a
 	signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
cb589a
 	sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
cb589a
 	static_malloc.stderr.exp static_malloc.vgtest \
cb589a
diff --git a/memcheck/tests/sigkill.stderr.exp-glibc-2.28 b/memcheck/tests/sigkill.stderr.exp-glibc-2.28
cb589a
new file mode 100644
cb589a
index 0000000..0e5f0cb
cb589a
--- /dev/null
cb589a
+++ b/memcheck/tests/sigkill.stderr.exp-glibc-2.28
cb589a
@@ -0,0 +1,197 @@
cb589a
+
cb589a
+setting signal 1: Success
cb589a
+getting signal 1: Success
cb589a
+
cb589a
+setting signal 2: Success
cb589a
+getting signal 2: Success
cb589a
+
cb589a
+setting signal 3: Success
cb589a
+getting signal 3: Success
cb589a
+
cb589a
+setting signal 4: Success
cb589a
+getting signal 4: Success
cb589a
+
cb589a
+setting signal 5: Success
cb589a
+getting signal 5: Success
cb589a
+
cb589a
+setting signal 6: Success
cb589a
+getting signal 6: Success
cb589a
+
cb589a
+setting signal 7: Success
cb589a
+getting signal 7: Success
cb589a
+
cb589a
+setting signal 8: Success
cb589a
+getting signal 8: Success
cb589a
+
cb589a
+setting signal 9: Warning: ignored attempt to set SIGKILL handler in sigaction();
cb589a
+         the SIGKILL signal is uncatchable
cb589a
+Invalid argument
cb589a
+getting signal 9: Success
cb589a
+
cb589a
+setting signal 10: Success
cb589a
+getting signal 10: Success
cb589a
+
cb589a
+setting signal 11: Success
cb589a
+getting signal 11: Success
cb589a
+
cb589a
+setting signal 12: Success
cb589a
+getting signal 12: Success
cb589a
+
cb589a
+setting signal 13: Success
cb589a
+getting signal 13: Success
cb589a
+
cb589a
+setting signal 14: Success
cb589a
+getting signal 14: Success
cb589a
+
cb589a
+setting signal 15: Success
cb589a
+getting signal 15: Success
cb589a
+
cb589a
+setting signal 16: Success
cb589a
+getting signal 16: Success
cb589a
+
cb589a
+setting signal 17: Success
cb589a
+getting signal 17: Success
cb589a
+
cb589a
+setting signal 18: Success
cb589a
+getting signal 18: Success
cb589a
+
cb589a
+setting signal 19: Warning: ignored attempt to set SIGSTOP handler in sigaction();
cb589a
+         the SIGSTOP signal is uncatchable
cb589a
+Invalid argument
cb589a
+getting signal 19: Success
cb589a
+
cb589a
+setting signal 20: Success
cb589a
+getting signal 20: Success
cb589a
+
cb589a
+setting signal 21: Success
cb589a
+getting signal 21: Success
cb589a
+
cb589a
+setting signal 22: Success
cb589a
+getting signal 22: Success
cb589a
+
cb589a
+setting signal 23: Success
cb589a
+getting signal 23: Success
cb589a
+
cb589a
+setting signal 24: Success
cb589a
+getting signal 24: Success
cb589a
+
cb589a
+setting signal 25: Success
cb589a
+getting signal 25: Success
cb589a
+
cb589a
+setting signal 26: Success
cb589a
+getting signal 26: Success
cb589a
+
cb589a
+setting signal 27: Success
cb589a
+getting signal 27: Success
cb589a
+
cb589a
+setting signal 28: Success
cb589a
+getting signal 28: Success
cb589a
+
cb589a
+setting signal 29: Success
cb589a
+getting signal 29: Success
cb589a
+
cb589a
+setting signal 30: Success
cb589a
+getting signal 30: Success
cb589a
+
cb589a
+setting signal 31: Success
cb589a
+getting signal 31: Success
cb589a
+
cb589a
+setting signal 34: Success
cb589a
+getting signal 34: Success
cb589a
+
cb589a
+setting signal 35: Success
cb589a
+getting signal 35: Success
cb589a
+
cb589a
+setting signal 36: Success
cb589a
+getting signal 36: Success
cb589a
+
cb589a
+setting signal 37: Success
cb589a
+getting signal 37: Success
cb589a
+
cb589a
+setting signal 38: Success
cb589a
+getting signal 38: Success
cb589a
+
cb589a
+setting signal 39: Success
cb589a
+getting signal 39: Success
cb589a
+
cb589a
+setting signal 40: Success
cb589a
+getting signal 40: Success
cb589a
+
cb589a
+setting signal 41: Success
cb589a
+getting signal 41: Success
cb589a
+
cb589a
+setting signal 42: Success
cb589a
+getting signal 42: Success
cb589a
+
cb589a
+setting signal 43: Success
cb589a
+getting signal 43: Success
cb589a
+
cb589a
+setting signal 44: Success
cb589a
+getting signal 44: Success
cb589a
+
cb589a
+setting signal 45: Success
cb589a
+getting signal 45: Success
cb589a
+
cb589a
+setting signal 46: Success
cb589a
+getting signal 46: Success
cb589a
+
cb589a
+setting signal 47: Success
cb589a
+getting signal 47: Success
cb589a
+
cb589a
+setting signal 48: Success
cb589a
+getting signal 48: Success
cb589a
+
cb589a
+setting signal 49: Success
cb589a
+getting signal 49: Success
cb589a
+
cb589a
+setting signal 50: Success
cb589a
+getting signal 50: Success
cb589a
+
cb589a
+setting signal 51: Success
cb589a
+getting signal 51: Success
cb589a
+
cb589a
+setting signal 52: Success
cb589a
+getting signal 52: Success
cb589a
+
cb589a
+setting signal 53: Success
cb589a
+getting signal 53: Success
cb589a
+
cb589a
+setting signal 54: Success
cb589a
+getting signal 54: Success
cb589a
+
cb589a
+setting signal 55: Success
cb589a
+getting signal 55: Success
cb589a
+
cb589a
+setting signal 56: Success
cb589a
+getting signal 56: Success
cb589a
+
cb589a
+setting signal 57: Success
cb589a
+getting signal 57: Success
cb589a
+
cb589a
+setting signal 58: Success
cb589a
+getting signal 58: Success
cb589a
+
cb589a
+setting signal 59: Success
cb589a
+getting signal 59: Success
cb589a
+
cb589a
+setting signal 60: Success
cb589a
+getting signal 60: Success
cb589a
+
cb589a
+setting signal 61: Success
cb589a
+getting signal 61: Success
cb589a
+
cb589a
+setting signal 62: Success
cb589a
+getting signal 62: Success
cb589a
+
cb589a
+setting signal 65: Invalid argument
cb589a
+getting signal 65: Invalid argument
cb589a
+
cb589a
+
cb589a
+HEAP SUMMARY:
cb589a
+    in use at exit: ... bytes in ... blocks
cb589a
+  total heap usage: ... allocs, ... frees, ... bytes allocated
cb589a
+
cb589a
+For a detailed leak analysis, rerun with: --leak-check=full
cb589a
+
cb589a
+For counts of detected and suppressed errors, rerun with: -v
cb589a
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
cb589a
diff -ur valgrind-3.14.0.orig/memcheck/tests/Makefile.in valgrind-3.14.0/memcheck/tests/Makefile.in
cb589a
--- valgrind-3.14.0.orig/memcheck/tests/Makefile.in	2018-12-13 00:30:45.013839247 +0100
cb589a
+++ valgrind-3.14.0/memcheck/tests/Makefile.in	2018-12-13 00:30:54.242636002 +0100
cb589a
@@ -1573,7 +1573,8 @@
cb589a
 	sh-mem-random.stdout.exp sh-mem-random.vgtest \
cb589a
 	sigaltstack.stderr.exp sigaltstack.vgtest \
cb589a
 	sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-mips32 \
cb589a
-	    sigkill.stderr.exp-solaris sigkill.vgtest \
cb589a
+	    sigkill.stderr.exp-solaris \
cb589a
+	    sigkill.stderr.exp-glibc-2.28 sigkill.vgtest \
cb589a
 	signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
cb589a
 	sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
cb589a
 	static_malloc.stderr.exp static_malloc.vgtest \