diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-03-29 11:42:24 +0200 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-08-27 16:22:08 -0700 |
commit | 80153017d11b05c6d511951e19379a5942ee6b46 (patch) | |
tree | 67eb2d52766fa3948197b7a71004ff97a2a00ce3 | |
parent | ee056103a09813e888b42688ae873ce15dfcb3a2 (diff) | |
download | glibc-80153017d11b05c6d511951e19379a5942ee6b46.zip glibc-80153017d11b05c6d511951e19379a5942ee6b46.tar.gz glibc-80153017d11b05c6d511951e19379a5942ee6b46.tar.bz2 |
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.
(cherry picked from commit 4d76d3e59d31aa690f148fc0c95cc0c581aed3e8)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/tst-bz21269.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2018-03-29 Florian Weimer <fweimer@redhat.com> + + * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also + capture SIGBUS. + 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com> Max Horn <max@quendi.de> diff --git a/sysdeps/unix/sysv/linux/i386/tst-bz21269.c b/sysdeps/unix/sysv/linux/i386/tst-bz21269.c index 353e365..6ee3fc6 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); |