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