You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
885 B

commit 4d76d3e59d31aa690f148fc0c95cc0c581aed3e8
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Mar 29 11:42:24 2018 +0200
Linux i386: tst-bz21269 triggers SIGBUS on some kernels
In addition to SIGSEGV and SIGILL, SIGBUS is also a possible signal
generated by the kernel.
diff --git a/sysdeps/unix/sysv/linux/i386/tst-bz21269.c b/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
index 353e36507dce92ea..6ee3fc62be0d3312 100644
--- a/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
+++ b/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
@@ -177,6 +177,8 @@ do_test (void)
xsethandler (SIGSEGV, sigsegv_handler, 0);
/* 32-bit kernels send SIGILL instead of SIGSEGV on IRET faults. */
xsethandler (SIGILL, sigsegv_handler, 0);
+ /* Some kernels send SIGBUS instead. */
+ xsethandler (SIGBUS, sigsegv_handler, 0);
thread = xpthread_create (0, threadproc, 0);