Blame SOURCES/valgrind-3.14.0-sigkill.patch

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