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